<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>255774</bug_id>
          
          <creation_ts>2023-04-21 02:46:37 -0700</creation_ts>
          <short_desc>REGRESSION(263118@main): [GLIB] Always layout if needed after setting the web page size</short_desc>
          <delta_ts>2023-04-21 03:00:21 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Diego Pino">dpino</reporter>
          <assigned_to name="Diego Pino">dpino</assigned_to>
          <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1950286</commentid>
    <comment_count>0</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2023-04-21 02:46:37 -0700</bug_when>
    <thetext>We were informed several Playwright tests were failing after a recent update.

```
Running 8 tests using 8 workers
  1) [webkit] › library/browsercontext-device.spec.ts:62:5 › device › should scroll twice when emulated 

    Error: expect(received).toBe(expected) // Object.is equality

    Expected: 100
    Received: 99

      70 |   `);
      71 |     await page.evaluate(() =&gt; window.scroll(0, 100));
    &gt; 72 |     expect(await page.evaluate(() =&gt; window.scrollY)).toBe(100);
         |                                                       ^
      73 |
      74 |     await page.evaluate(() =&gt; window.scroll(0, 200));
      75 |     expect(await page.evaluate(() =&gt; window.scrollY)).toBe(200);

        at /home/dpino/playwright/tests/library/browsercontext-device.spec.ts:72:55

  2) [webkit] › library/browsercontext-device.spec.ts:107:5 › device › should emulate viewport and screen size 

    Error: expect(received).toEqual(expected) // deep equality

    - Expected  - 2
    + Received  + 2

      Object {
    -   &quot;height&quot;: 664,
    -   &quot;width&quot;: 390,
    +   &quot;height&quot;: 780,
    +   &quot;width&quot;: 458,
      }

      119 |       width: window.innerWidth,
      120 |       height: window.innerHeight
    &gt; 121 |     }))).toEqual({ width: 390, height: 664 });
          |          ^
      122 |
      123 |     await context.close();
      124 |   });

        at /home/dpino/playwright/tests/library/browsercontext-device.spec.ts:121:10

  3) [webkit] › library/browsercontext-device.spec.ts:126:5 › device › should emulate viewport without screen size 

    Error: expect(received).toEqual(expected) // deep equality

    - Expected  - 2
    + Received  + 2

      Object {
    -   &quot;height&quot;: 667,
    -   &quot;width&quot;: 375,
    +   &quot;height&quot;: 777,
    +   &quot;width&quot;: 437,
      }

      138 |       width: window.innerWidth,
      139 |       height: window.innerHeight
    &gt; 140 |     }))).toEqual({ width: 375, height: 667 });
          |          ^
      141 |
      142 |     await context.close();
      143 |   });

        at /home/dpino/playwright/tests/library/browsercontext-device.spec.ts:140:10

  3 failed
    [webkit] › library/browsercontext-device.spec.ts:62:5 › device › should scroll twice when emulated 
    [webkit] › library/browsercontext-device.spec.ts:107:5 › device › should emulate viewport and screen size 
    [webkit] › library/browsercontext-device.spec.ts:126:5 › device › should emulate viewport without screen size 
  2 skipped
  3 passed (1.1s)
```

After investigating the tests failures, it seems these tests started failing in 263118@main.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1950287</commentid>
    <comment_count>1</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2023-04-21 02:51:44 -0700</bug_when>
    <thetext>Pull request: https://github.com/webkit/webkit/pull/13016</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1950291</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-04-21 02:59:48 -0700</bug_when>
    <thetext>Committed 263225@main (cce770c3864a): &lt;https://commits.webkit.org/263225@main&gt;

Reviewed commits have been landed. Closing PR #13016 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1950292</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-04-21 03:00:21 -0700</bug_when>
    <thetext>&lt;rdar://problem/108361831&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>