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

Issue 2630783003: PlzNavigate: Fix the http/tests/security/cross-frame-access-parent-isolated-world.html and http/tes… (Closed)

Created:
3 years, 11 months ago by ananta
Modified:
3 years, 11 months ago
CC:
chromium-reviews, blink-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

PlzNavigate: Fix the http/tests/security/cross-frame-access-parent-isolated-world.html and http/tests/security/cross-frame-access-parent-explicit-domain-isolated-world.html layout tests. These tests instantiate an iframe with the following src "data:text/html," and then later on switch the iframe src to a different URL to run the security tests. With PlzNavigate when the iframe is instantiated, we send the navigation off to the browser via RenderFrameImpl::BeginNavigation. This function gets called in the decidePolicyForNavigation code path. When this returns blink eventually schedules a task for switching the navigation src url for the iframe via a call to the NavigationScheduler::scheduleLocationChange which is called in the LocalFrame::navigate function. Before this scheduled task runs, the CommitNavigation IPC comes back from the browser and the original load completes for the iframe which cancels pending navigations on the iframe. As a result the task never runs and the test times out. Without PlzNavigate this does not happen as the original load on the iframe is completed by the time the task runs. It looks like fixing the layout test itself to switch the src on the iframe after it finishes loading is one approach. Alternatively we could avoid cancelling pending navigations for plznavigate. Exceptions being user initiated navigations. BUG=673748 Review-Url: https://codereview.chromium.org/2630783003 Cr-Commit-Position: refs/heads/master@{#445174} Committed: https://chromium.googlesource.com/chromium/src/+/f59dc823911d1e7fca195b638638e8458c631491

Patch Set 1 #

Total comments: 2

Patch Set 2 : Don't cancel navigations pending in the NavigationScheduler when a PlzNavigate navigation is commit… #

Total comments: 6

Patch Set 3 : Address review comments #

Patch Set 4 : Remove check for user gesture #

Patch Set 5 : Remove user gesture check #

Patch Set 6 : Rebased to tip #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -9 lines) Patch
M third_party/WebKit/LayoutTests/FlagExpectations/enable-browser-side-navigation View 1 2 3 4 5 1 chunk +0 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoader.cpp View 1 2 3 4 5 3 chunks +18 lines, -3 lines 0 comments Download

Messages

Total messages: 47 (27 generated)
ananta
3 years, 11 months ago (2017-01-14 02:09:48 UTC) #2
ananta
+jam
3 years, 11 months ago (2017-01-14 02:10:12 UTC) #5
ananta
https://codereview.chromium.org/2630783003/diff/1/third_party/WebKit/LayoutTests/http/tests/security/cross-frame-access-parent-explicit-domain-isolated-world.html File third_party/WebKit/LayoutTests/http/tests/security/cross-frame-access-parent-explicit-domain-isolated-world.html (right): https://codereview.chromium.org/2630783003/diff/1/third_party/WebKit/LayoutTests/http/tests/security/cross-frame-access-parent-explicit-domain-isolated-world.html#newcode12 third_party/WebKit/LayoutTests/http/tests/security/cross-frame-access-parent-explicit-domain-isolated-world.html:12: var srcChanged = false; Should this function be moved ...
3 years, 11 months ago (2017-01-14 02:24:55 UTC) #8
Charlie Reis
[+clamy,nasko to CC] I'll defer to Nate on most of the CL, but a few ...
3 years, 11 months ago (2017-01-17 19:22:31 UTC) #12
clamy
On 2017/01/17 19:22:31, Charlie Reis wrote: > [+clamy,nasko to CC] > > I'll defer to ...
3 years, 11 months ago (2017-01-18 14:48:09 UTC) #13
ananta
On 2017/01/18 14:48:09, clamy wrote: > On 2017/01/17 19:22:31, Charlie Reis wrote: > > [+clamy,nasko ...
3 years, 11 months ago (2017-01-18 19:59:36 UTC) #14
Nate Chapin
lgtm https://codereview.chromium.org/2630783003/diff/1/third_party/WebKit/LayoutTests/http/tests/security/cross-frame-access-parent-explicit-domain-isolated-world.html File third_party/WebKit/LayoutTests/http/tests/security/cross-frame-access-parent-explicit-domain-isolated-world.html (right): https://codereview.chromium.org/2630783003/diff/1/third_party/WebKit/LayoutTests/http/tests/security/cross-frame-access-parent-explicit-domain-isolated-world.html#newcode12 third_party/WebKit/LayoutTests/http/tests/security/cross-frame-access-parent-explicit-domain-isolated-world.html:12: var srcChanged = false; On 2017/01/14 02:24:55, ananta ...
3 years, 11 months ago (2017-01-18 22:14:11 UTC) #15
Charlie Reis
On 2017/01/18 19:59:36, ananta wrote: > On 2017/01/18 14:48:09, clamy wrote: > > On 2017/01/17 ...
3 years, 11 months ago (2017-01-18 23:07:21 UTC) #16
nasko
On 2017/01/18 23:07:21, Charlie Reis wrote: > On 2017/01/18 19:59:36, ananta wrote: > > On ...
3 years, 11 months ago (2017-01-19 00:04:24 UTC) #17
ananta
On 2017/01/19 00:04:24, nasko wrote: > On 2017/01/18 23:07:21, Charlie Reis wrote: > > On ...
3 years, 11 months ago (2017-01-19 00:47:19 UTC) #18
ananta
On 2017/01/19 00:47:19, ananta wrote: > On 2017/01/19 00:04:24, nasko wrote: > > On 2017/01/18 ...
3 years, 11 months ago (2017-01-19 00:54:19 UTC) #20
Nate Chapin
https://codereview.chromium.org/2630783003/diff/20001/third_party/WebKit/Source/core/loader/FrameLoader.cpp File third_party/WebKit/Source/core/loader/FrameLoader.cpp (right): https://codereview.chromium.org/2630783003/diff/20001/third_party/WebKit/Source/core/loader/FrameLoader.cpp#newcode1362 third_party/WebKit/Source/core/loader/FrameLoader.cpp:1362: UserGestureIndicator::processingUserGesture()) { Is this user gesture check necessary to ...
3 years, 11 months ago (2017-01-19 21:02:59 UTC) #25
ananta
https://codereview.chromium.org/2630783003/diff/20001/third_party/WebKit/Source/core/loader/FrameLoader.cpp File third_party/WebKit/Source/core/loader/FrameLoader.cpp (right): https://codereview.chromium.org/2630783003/diff/20001/third_party/WebKit/Source/core/loader/FrameLoader.cpp#newcode1362 third_party/WebKit/Source/core/loader/FrameLoader.cpp:1362: UserGestureIndicator::processingUserGesture()) { On 2017/01/19 21:02:59, Nate Chapin wrote: > ...
3 years, 11 months ago (2017-01-19 21:38:08 UTC) #26
Nate Chapin
https://codereview.chromium.org/2630783003/diff/20001/third_party/WebKit/Source/core/loader/FrameLoader.cpp File third_party/WebKit/Source/core/loader/FrameLoader.cpp (right): https://codereview.chromium.org/2630783003/diff/20001/third_party/WebKit/Source/core/loader/FrameLoader.cpp#newcode1362 third_party/WebKit/Source/core/loader/FrameLoader.cpp:1362: UserGestureIndicator::processingUserGesture()) { On 2017/01/19 21:38:08, ananta wrote: > On ...
3 years, 11 months ago (2017-01-19 23:33:51 UTC) #29
ananta
https://codereview.chromium.org/2630783003/diff/20001/third_party/WebKit/Source/core/loader/FrameLoader.cpp File third_party/WebKit/Source/core/loader/FrameLoader.cpp (right): https://codereview.chromium.org/2630783003/diff/20001/third_party/WebKit/Source/core/loader/FrameLoader.cpp#newcode1362 third_party/WebKit/Source/core/loader/FrameLoader.cpp:1362: UserGestureIndicator::processingUserGesture()) { On 2017/01/19 23:33:50, Nate Chapin wrote: > ...
3 years, 11 months ago (2017-01-20 00:00:33 UTC) #32
Nate Chapin
LGTM. Coming up with something better for m_navigationHandledByClient is on my list of things to ...
3 years, 11 months ago (2017-01-20 00:08:08 UTC) #35
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/2630783003/80001
3 years, 11 months ago (2017-01-20 19:41:16 UTC) #39
commit-bot: I haz the power
Failed to apply patch for third_party/WebKit/LayoutTests/FlagExpectations/enable-browser-side-navigation: While running git apply --index -p1; error: patch failed: ...
3 years, 11 months ago (2017-01-20 19:45:01 UTC) #41
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/2630783003/100001
3 years, 11 months ago (2017-01-20 20:10:47 UTC) #44
commit-bot: I haz the power
3 years, 11 months ago (2017-01-20 21:36:26 UTC) #47
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/f59dc823911d1e7fca195b638638...

Powered by Google App Engine
This is Rietveld 408576698