Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upScript iframe intial load replaces about blank #18587
Conversation
highfive
commented
Sep 21, 2017
|
r? @cbrewster |
|
I did a first pass of updating the test expectations, but it's not perfect. |
|
@bors-servo try |
…about-blank, r=<try> Script iframe intial load replaces about blank <!-- Please describe your changes on the following line: --> When navigating from the initial about:blank, do it with replacement enabled. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #18564 - [X] These changes do not require tests because the existing tests do the job <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18587) <!-- Reviewable:end -->
|
|
|
Only five failures! |
|
Hmm... fun with document loading:
The document loader for |
e527d7f
to
00af5ba
|
IRC conversation with @cbrewster: http://logs.glob.uno/?c=mozilla%23servo&s=21+Sep+2017&e=21+Sep+2017#c756805 TL;DR: servo/components/script/dom/htmliframeelement.rs Lines 307 to 312 in 581f0bf Dubious, as an experiment I'm removing it, but @cbrewster reports that @jdm might not be happy about this. @bors-servo: try |
…about-blank, r=<try> Script iframe intial load replaces about blank <!-- Please describe your changes on the following line: --> When navigating from the initial about:blank, do it with replacement enabled. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #18564 - [X] These changes do not require tests because the existing tests do the job <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18587) <!-- Reviewable:end -->
|
|
00af5ba
to
c6e2460
|
We were sending a mozbrowserlocationchange event when changing the session history: servo/components/constellation/constellation.rs Line 2507 in 29517d5 even though we were traversing the history in the case of a navigation with replacement enabled: servo/components/constellation/constellation.rs Line 2467 in 29517d5 which already triggered a location change event: servo/components/constellation/constellation.rs Line 2370 in 29517d5 This was triggering 2 mozbrowserlocationchange events. |
|
@bors-servo try |
…about-blank, r=<try> Script iframe intial load replaces about blank <!-- Please describe your changes on the following line: --> When navigating from the initial about:blank, do it with replacement enabled. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #18564 - [X] These changes do not require tests because the existing tests do the job <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18587) <!-- Reviewable:end -->
|
|
| @@ -2504,7 +2504,10 @@ impl<Message, LTF, STF> Constellation<Message, LTF, STF> | |||
|
|
|||
| // If the navigation is for a top-level browsing context, inform mozbrowser | |||
| if change.browsing_context_id == change.top_level_browsing_context_id { | |||
| self.trigger_mozbrowserlocationchange(change.top_level_browsing_context_id); | |||
| // If this is a replacement then we've already triggered the event in traverse_to_entry | |||
This comment has been minimized.
This comment has been minimized.
|
On thinking about it, it seems like this PR is just a band-aid, and really we need to have a good look at our whole iframe loading story, with an eye to trying to align it better to the spec. |
asajeffrey commentedSep 21, 2017
•
edited by SimonSapin
When navigating from the initial about:blank, do it with replacement enabled.
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is