Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(chromium): roll Chromium to r705776 #5058

Merged
merged 5 commits into from Oct 23, 2019
Merged

Conversation

mathiasbynens
Copy link
Member

WIP

This corresponds to Chromium 79.0.3942.0.

This roll includes:

- Support CSS media feature emulation in CDP
  https://chromium-review.googlesource.com/c/chromium/src/+/1821608
- Implement timezone ID verification
  https://chromium-review.googlesource.com/c/chromium/src/+/1822557
- Allow aria-hidden objects into the browser-side ax tree
  https://chromium-review.googlesource.com/c/chromium/src/+/1760862
r706915 corresponds to 79.0.3945.1.
@mathiasbynens mathiasbynens changed the title Roll Chromium to version 79 feat(chromium): roll Chromium to r705776 Oct 21, 2019
@mathiasbynens
Copy link
Member Author

Failures:
1) Chromium Browser Page Page.screenshot should work for offscreen clip (
screenshot.spec.js:42:5
)
  Message:
expect.toBeGolden failed: screenshot-offscreen-clip.png mismatch! Output is saved in "output-chromium" directory
  Stack:
    Error: expect.toBeGolden failed: screenshot-offscreen-clip.png mismatch! Output is saved in "output-chromium" directory
        at applyMatcher (/tmp/cirrus-ci-build/utils/testrunner/Matchers.js:48:15)
        at /tmp/cirrus-ci-build
        at /tmp/cirrus-ci-build
        at /tmp/cirrus-ci-build/test/screenshot.spec.js:53:26
        at processTicksAndRejections (internal/process/task_queues.js:85:5)

@JoelEinbinder @aslushnikov any ideas on what might be going on here?

@mathiasbynens
Copy link
Member Author

mathiasbynens commented Oct 22, 2019

The Page.screenshot offscreen clip failure points to this range:

You are probably looking for a change made after 686608 (known good), but no later than 686617 (first known bad).
https://chromium.googlesource.com/chromium/src/+log/694ff61577da64e0eed8e97eae241e5f484256a9..700c510bbc0ab20b6e2e2ef5684d84d0a885283b

The CL that jumps out is: https://chromium-review.googlesource.com/c/chromium/src/+/1752244 I've left a comment here: https://bugs.chromium.org/p/chromium/issues/detail?id=989251#c21

Per upstream Chromium changes, page.screenshot now clips elements
to the viewport.

This matches the clipping behavior of elements in inner scrollers
(i.e., document and overflow scroll clipping now work the same).

https://bugs.chromium.org/p/chromium/issues/detail?id=937609
@@ -189,7 +182,8 @@ module.exports.addTests = function({testRunner, expect, product, puppeteer}) {
await page.evaluate(() => window.__injected = true);
await watchdog;
});
it('should survive cross-process navigation', async({page, server}) => {
// https://chromium-review.googlesource.com/c/chromium/src/+/1766001/21#message-a6a61261b97ffca6ecb180c0a2303b538f7a6476
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't look too closely, but I'd guess you need to catch this new error string in the navigation watcher.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the hint. I think you meant ExecutionContext, and I'll add the check there. Let me know if I misunderstood!

@mathiasbynens mathiasbynens merged this pull request into master Oct 23, 2019
@mathiasbynens mathiasbynens deleted the roll-chromium-79 branch October 23, 2019 09:41
mathiasbynens added a commit that referenced this pull request Oct 23, 2019
This corresponds to Chromium 79.0.3942.0.

This roll includes:

- Support CSS media feature emulation in CDP
  https://chromium-review.googlesource.com/c/chromium/src/+/1821608
- Implement timezone ID verification
  https://chromium-review.googlesource.com/c/chromium/src/+/1822557
- Allow aria-hidden objects into the browser-side ax tree
  https://chromium-review.googlesource.com/c/chromium/src/+/1760862
- Remove pre-BlinkGenPropertyTrees codepaths (affects screenshot clipping)
  https://chromium-review.googlesource.com/c/chromium/src/+/1752244
- Terminate some asynchronous waiting commands on cross-process navigation
  https://chromium-review.googlesource.com/c/chromium/src/+/1766001/21#message-a6a61261b97ffca6ecb180c0a2303b538f7a6476

Per upstream Chromium changes, `page.screenshot` now clips elements to the viewport. This matches the clipping behavior of elements in inner scrollers (i.e., document and overflow scroll clipping now work the same).
@JoelEinbinder
Copy link
Collaborator

Was this supposed to be merged? It just says WIP.

@mathiasbynens
Copy link
Member Author

Was this supposed to be merged? It just says WIP.

Yes. The WIP comment is from earlier this week.

For context, this roll was blocking several outstanding PRs + the new v2.0.0 release.

rfojtik pushed a commit to rfojtik/puppeteer that referenced this pull request Dec 21, 2019
This corresponds to Chromium 79.0.3942.0.

This roll includes:

- Support CSS media feature emulation in CDP
  https://chromium-review.googlesource.com/c/chromium/src/+/1821608
- Implement timezone ID verification
  https://chromium-review.googlesource.com/c/chromium/src/+/1822557
- Allow aria-hidden objects into the browser-side ax tree
  https://chromium-review.googlesource.com/c/chromium/src/+/1760862
- Remove pre-BlinkGenPropertyTrees codepaths (affects screenshot clipping)
  https://chromium-review.googlesource.com/c/chromium/src/+/1752244
- Terminate some asynchronous waiting commands on cross-process navigation
  https://chromium-review.googlesource.com/c/chromium/src/+/1766001/21#message-a6a61261b97ffca6ecb180c0a2303b538f7a6476

Per upstream Chromium changes, `page.screenshot` now clips elements to the viewport. This matches the clipping behavior of elements in inner scrollers (i.e., document and overflow scroll clipping now work the same).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants