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

Issue 2472253002: Fix navigation requests starting too early and not getting associated with the <webview>. (Closed)

Created:
4 years, 1 month ago by jam
Modified:
4 years, 1 month ago
Reviewers:
Fady Samuel, nasko
CC:
chromium-reviews, jam, nasko+codewatch_chromium.org, darin-cc_chromium.org, creis+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix navigation requests starting too early and not getting associated with the <webview>. The problem is for PlzNavigate, the ExtensionNavigationUIData is created when the NavigationHandle is created. We have to ensure it's not created before the relevant guestview structures are set up, which happens later for renderer created windows. So we have to wait until the RFH is ready (i.e. when it unblocks request through ResourceDispatcherHost) to create the NavigationHandle. This fixes WebViewInteractiveTests_WebViewNewWindowInteractiveTest.NewWindow_DeclarativeWebRequest_0 WebViewInteractiveTests_WebViewNewWindowInteractiveTest.NewWindow_DeclarativeWebRequest_1 WebViewInteractiveTests_WebViewNewWindowInteractiveTest.NewWindow_WebRequest_0 WebViewInteractiveTests_WebViewNewWindowInteractiveTest.NewWindow_WebRequest_1 WebViewInteractiveTests_WebViewNewWindowInteractiveTest.NewWindow_WebRequestRemoveElement_0 WebViewInteractiveTests_WebViewNewWindowInteractiveTest.NewWindow_WebRequestRemoveElement_1 with PlzNavigate. BUG=661811 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/baaab3a22a5bf6d98be978a962361787d86aabdc Cr-Commit-Position: refs/heads/master@{#430099}

Patch Set 1 #

Patch Set 2 : fix NewWindow_DeclarativeWebRequest/1 #

Patch Set 3 : fix AppBackgroundPageApiTest test failures #

Patch Set 4 : keep only one pending navigation #

Total comments: 4

Patch Set 5 : nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -32 lines) Patch
M components/guest_view/browser/guest_view_message_filter.cc View 1 2 chunks +8 lines, -6 lines 0 comments Download
M content/browser/frame_host/frame_tree_node.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/frame_host/interstitial_page_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/frame_host/render_frame_host_factory.h View 2 chunks +4 lines, -2 lines 0 comments Download
M content/browser/frame_host/render_frame_host_factory.cc View 1 chunk +6 lines, -3 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.h View 1 2 3 4 2 chunks +11 lines, -1 line 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 4 chunks +20 lines, -1 line 0 comments Download
M content/browser/frame_host/render_frame_host_manager.h View 2 chunks +4 lines, -2 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager.cc View 5 chunks +14 lines, -9 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 2 chunks +9 lines, -3 lines 0 comments Download
M content/test/test_render_frame_host.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M content/test/test_render_frame_host_factory.h View 1 chunk +2 lines, -1 line 0 comments Download
M content/test/test_render_frame_host_factory.cc View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 37 (29 generated)
jam
Fady: components/guest_view/browser/guest_view_message_filter.cc Nasko: the rest
4 years, 1 month ago (2016-11-04 15:03:15 UTC) #22
Fady Samuel
lgtm
4 years, 1 month ago (2016-11-04 17:31:51 UTC) #23
nasko
LGTM with a couple of nits. https://codereview.chromium.org/2472253002/diff/100001/content/browser/frame_host/render_frame_host_impl.h File content/browser/frame_host/render_frame_host_impl.h (right): https://codereview.chromium.org/2472253002/diff/100001/content/browser/frame_host/render_frame_host_impl.h#newcode1045 content/browser/frame_host/render_frame_host_impl.h:1045: // initiated request. ...
4 years, 1 month ago (2016-11-04 21:47:29 UTC) #28
jam
https://codereview.chromium.org/2472253002/diff/100001/content/browser/frame_host/render_frame_host_impl.h File content/browser/frame_host/render_frame_host_impl.h (right): https://codereview.chromium.org/2472253002/diff/100001/content/browser/frame_host/render_frame_host_impl.h#newcode1045 content/browser/frame_host/render_frame_host_impl.h:1045: // initiated request. Init() will be called, and until ...
4 years, 1 month ago (2016-11-04 22:14:01 UTC) #29
jam
https://codereview.chromium.org/2472253002/diff/100001/content/browser/frame_host/render_frame_host_impl.h File content/browser/frame_host/render_frame_host_impl.h (right): https://codereview.chromium.org/2472253002/diff/100001/content/browser/frame_host/render_frame_host_impl.h#newcode1050 content/browser/frame_host/render_frame_host_impl.h:1050: PendingNavigate; On 2016/11/04 21:47:29, nasko wrote: > nit: PendingNavigation ...
4 years, 1 month ago (2016-11-04 22:14:25 UTC) #30
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/2472253002/70016
4 years, 1 month ago (2016-11-04 22:15:45 UTC) #33
commit-bot: I haz the power
Committed patchset #5 (id:70016)
4 years, 1 month ago (2016-11-05 00:46:46 UTC) #35
commit-bot: I haz the power
4 years, 1 month ago (2016-11-05 00:50:46 UTC) #37
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/baaab3a22a5bf6d98be978a962361787d86aabdc
Cr-Commit-Position: refs/heads/master@{#430099}

Powered by Google App Engine
This is Rietveld 408576698