-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "CDP: fix Page.addScriptToEvaluateOnNewDocument in iframes"
This reverts commit f9fe901204382c43273aa46d0cd3d7382d014f43. Reason for revert: None results are generated on jetstream benchmark. More details in crbug/1263067 Original change's description: > CDP: fix Page.addScriptToEvaluateOnNewDocument in iframes > > When iframe cancels the initial navigation by document.open, > we did not create isolated worlds and did not evaluate scripts > on new document. > > Ideally, we would force a context and evaluate/create worlds > in the initial empty document, because it could be actually > become the real document in multiple circumstances (e.g. window.stop). > Unfortunately, this breaks assumptions in random places > like GuestView (see Patchset 4). > > For now, only cover document.open path. > > Change-Id: I1651196526c23dec1f8c25dd79926e0ae5ff8887 > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3236032 > Reviewed-by: Andrey Kosyakov <caseq@chromium.org> > Commit-Queue: Dmitry Gozman <dgozman@chromium.org> > Cr-Commit-Position: refs/heads/main@{#934240} Change-Id: Ibb16f4c3ea8ff4662e5cdb4bed04160dbd71d1ca Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3248283 Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> Reviewed-by: John Chen <johnchen@chromium.org> Reviewed-by: Dmitry Gozman <dgozman@chromium.org> Commit-Queue: Wenbin Zhang <wenbinzhang@google.com> Cr-Commit-Position: refs/heads/main@{#936027} NOKEYCHECK=True GitOrigin-RevId: a88cb8a4d819217aead181948e2a6d9a40d555c4
- Loading branch information
1 parent
b57db58
commit 1b7de78
Showing
6 changed files
with
16 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 5 additions & 22 deletions
27
blink/web_tests/inspector-protocol/page/add-script-to-evaluate-in-world-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,14 @@ | ||
Tests that Page.addScriptToEvaluateOnNewDocument is executed in the given world | ||
Adding scripts | ||
<main world> in main frame | ||
<main world> in main frame | ||
world#0 in main frame | ||
world#0 | ||
message from 0 | ||
world#1 in main frame | ||
world#1 | ||
message from 1 | ||
world#2 in main frame | ||
world#2 | ||
message from 2 | ||
world#3 in main frame | ||
world#3 | ||
message from 3 | ||
world#4 in main frame | ||
world#4 | ||
message from 4 | ||
added iframe | ||
<main world> in subframe | ||
world#0 in subframe | ||
message from 0 | ||
world#1 in subframe | ||
message from 1 | ||
world#2 in subframe | ||
message from 2 | ||
world#3 in subframe | ||
message from 3 | ||
world#4 in subframe | ||
message from 4 | ||
written to iframe <head></head><body>hello</body> | ||
Removing scripts | ||
Navigating cross-process | ||
<main world> in main frame | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters