DescriptionProvide default implementation for WebContentsDelegate::OpenURLFromTab.
With OOPIF, when a frame in a background page is navigated cross-site
from the renderer, the cross-process transfer involves using
WebContentsDelegate::OpenURLFromTab to reissue the navigation, but the
delegate in this case is extensions::ExtensionHost, which doesn't
implement that method. As a result, the default delegate
implementation is used, which just returns nullptr and drops the
request.
This CL provides a better default implementation for
WebContentsDelegate::OpenURLFromTab, borrowing it from
Shell::OpenURLFromTab. This fixes the issue with background pages and
will hopefully prevent this type of issue from happening in other
contexts.
BUG=560510
TEST=ExtensionApiTest.(WindowOpenPopupIframe|ContentScriptExtensionProcess|DontInjectContentScriptsInBackgroundPages) with --isolate-extensions or --site-per-process
Committed: https://crrev.com/35229c1ac03fd2707c8612973f6dd54a5150e9c4
Cr-Commit-Position: refs/heads/master@{#361724}
Patch Set 1 #Patch Set 2 : #Patch Set 3 : #
Total comments: 8
Patch Set 4 : Address Charlie's comments #Patch Set 5 : Fix typo #
Dependent Patchsets: Messages
Total messages: 11 (3 generated)
|