[Webkit-unassigned] [Bug 255774] New: REGRESSION(263118 at main): [GLIB] Always layout if needed after setting the web page size

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Apr 21 02:46:37 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=255774

            Bug ID: 255774
           Summary: REGRESSION(263118 at main): [GLIB] Always layout if
                    needed after setting the web page size
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: New Bugs
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: dpino at igalia.com

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(() => window.scroll(0, 100));
    > 72 |     expect(await page.evaluate(() => window.scrollY)).toBe(100);
         |                                                       ^
      73 |
      74 |     await page.evaluate(() => window.scroll(0, 200));
      75 |     expect(await page.evaluate(() => 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 {
    -   "height": 664,
    -   "width": 390,
    +   "height": 780,
    +   "width": 458,
      }

      119 |       width: window.innerWidth,
      120 |       height: window.innerHeight
    > 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 {
    -   "height": 667,
    -   "width": 375,
    +   "height": 777,
    +   "width": 437,
      }

      138 |       width: window.innerWidth,
      139 |       height: window.innerHeight
    > 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 at main.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230421/ea4cdf33/attachment-0001.htm>


More information about the webkit-unassigned mailing list