Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(554)

Issue 2628153002: PlzNavigate: Fix anchor-no-multiple-windows.html layout test. (Closed)

Created:
3 years, 11 months ago by ananta
Modified:
3 years, 11 months ago
Reviewers:
Nate Chapin, jam
CC:
chromium-reviews, tyoshino+watch_chromium.org, sof, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, gavinp+loader_chromium.org, blink-reviews, loading-reviews_chromium.org, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

PlzNavigate: Fix anchor-no-multiple-windows.html layout test. This layouttest turns off the WebKitSupportsMultipleWindows property which means that popups open in the same window. It then initiates a navigation to a data URL by clicking on the corresponding href. It then compares the window counts and expects the window counts to remain unchanged. Without PlzNavigate the data URL navigation creates a provisional loader in blink which is then cancelled when data is written to the main document, via Document::writeln. With PlzNavigate the top level navigation for the data URL is sent to the browser. The provisional loader is created when the navigation is committed via the FrameMsg_CommitNavigation IPC. This is too late and hence the data written to the page via the Document::writeln calls never shows up. Fix is to add a check for whether there is a client side navigation in process for PlzNavigate and if yes stop ongoing loaders. BUG=673744, 673742 Review-Url: https://codereview.chromium.org/2628153002 Cr-Commit-Position: refs/heads/master@{#443458} Committed: https://chromium.googlesource.com/chromium/src/+/683cb912ff3612c5ec943e4d45d1426452ebb596

Patch Set 1 #

Patch Set 2 : Revert changes to the layout test #

Total comments: 2

Patch Set 3 : Add a function hasProvisionalNavigation() to FrameLoader. #

Patch Set 4 : Update the shouldSendCompleteNotification() function to use the hasProvisionalNavigation() function #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -7 lines) Patch
M third_party/WebKit/LayoutTests/FlagExpectations/enable-browser-side-navigation View 1 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoader.h View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoader.cpp View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 20 (13 generated)
ananta
3 years, 11 months ago (2017-01-12 04:33:10 UTC) #2
Nate Chapin
https://codereview.chromium.org/2628153002/diff/20001/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/2628153002/diff/20001/third_party/WebKit/Source/core/dom/Document.cpp#newcode2667 third_party/WebKit/Source/core/dom/Document.cpp:2667: m_frame->loader().navigationHandledByClient())) { Do you have any sense how many ...
3 years, 11 months ago (2017-01-12 19:59:26 UTC) #8
ananta
https://codereview.chromium.org/2628153002/diff/20001/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/2628153002/diff/20001/third_party/WebKit/Source/core/dom/Document.cpp#newcode2667 third_party/WebKit/Source/core/dom/Document.cpp:2667: m_frame->loader().navigationHandledByClient())) { On 2017/01/12 19:59:26, Nate Chapin wrote: > ...
3 years, 11 months ago (2017-01-12 20:36:55 UTC) #9
Nate Chapin
On 2017/01/12 20:36:55, ananta wrote: > https://codereview.chromium.org/2628153002/diff/20001/third_party/WebKit/Source/core/dom/Document.cpp > File third_party/WebKit/Source/core/dom/Document.cpp (right): > > https://codereview.chromium.org/2628153002/diff/20001/third_party/WebKit/Source/core/dom/Document.cpp#newcode2667 > ...
3 years, 11 months ago (2017-01-12 20:43:44 UTC) #12
ananta
On 2017/01/12 20:43:44, Nate Chapin wrote: > On 2017/01/12 20:36:55, ananta wrote: > > > ...
3 years, 11 months ago (2017-01-12 22:21:37 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2628153002/60001
3 years, 11 months ago (2017-01-12 22:22:59 UTC) #16
commit-bot: I haz the power
3 years, 11 months ago (2017-01-13 02:00:02 UTC) #20
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/683cb912ff3612c5ec943e4d45d1...

Powered by Google App Engine
This is Rietveld 408576698