Description<webview>: Resolve relative paths as chrome-extension: URLs
The CL performs URL resolution in the browser process out of convenience. If this was done in the embedder process in web_view.js then URL resolution would need to be done on both attribute mutation and initialization. BrowserPluginGuest::OnNavigateGuest gets called either way.
When updating the src attribute on loadcommit, we can no longer do a simple string comparison, as the resolved URL may not match the developer-assigned URL.
BUG=308114
Test=<webview src='guest.html'></webview> will attempt to resolve to
chrome-extension://appID/guest.html.
R=creis@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=232203
Patch Set 1 #Patch Set 2 : Patch #Patch Set 3 : Don't update src attribute with resolved URL. #
Total comments: 9
Patch Set 4 : Addressed creis's comments #
Total comments: 8
Patch Set 5 : Refactor + addressed creis' comments #
Total comments: 12
Patch Set 6 : New diff #Patch Set 7 : Merge with ToT #
Messages
Total messages: 11 (0 generated)
|