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

Issue 888563003: <webview>: Navigate to about:blank if attempting to navigate to bad URL (Closed)

Created:
5 years, 10 months ago by Fady Samuel
Modified:
5 years, 10 months ago
Reviewers:
Charlie Reis, lazyboy
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

<webview>: Navigate to about:blank if attempting to navigate to bad URL If <webview> attempts to navigate to a URL that is invalid or it cannot access, it will fire a loadabort message. However, a loadstop will not fire and <webview> may remain in an unnavigated state despite having a set src attribute. This causes various APIs such as executeScript to fail. This CL navigates <webview> to about:blank in the case of a bad navigation. This puts <webview> back to a sane state. BUG=450125 Committed: https://crrev.com/fb12824b8b2caf76dbb341ef53f3225d09f0ca86 Cr-Commit-Position: refs/heads/master@{#314517}

Patch Set 1 #

Patch Set 2 : Updated tess #

Total comments: 1

Patch Set 3 : Addressed lazyboy's comment #

Total comments: 3

Patch Set 4 : Addressed nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -24 lines) Patch
M chrome/test/data/extensions/platform_apps/web_view/shim/main.js View 1 5 chunks +21 lines, -12 lines 0 comments Download
M extensions/browser/guest_view/web_view/web_view_guest.cc View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M extensions/test/data/web_view/apitest/main.js View 1 5 chunks +21 lines, -12 lines 0 comments Download

Messages

Total messages: 13 (3 generated)
Fady Samuel
5 years, 10 months ago (2015-02-03 08:34:37 UTC) #2
lazyboy
It is unclear to me how this fixes crbug.com/450125, can you explain? Also possibly add ...
5 years, 10 months ago (2015-02-03 09:07:46 UTC) #3
Fady Samuel
PTAL
5 years, 10 months ago (2015-02-03 10:27:26 UTC) #5
lazyboy
lgtm https://chromiumcodereview.appspot.com/888563003/diff/40001/extensions/browser/guest_view/web_view/web_view_guest.cc File extensions/browser/guest_view/web_view/web_view_guest.cc (right): https://chromiumcodereview.appspot.com/888563003/diff/40001/extensions/browser/guest_view/web_view/web_view_guest.cc#newcode882 extensions/browser/guest_view/web_view/web_view_guest.cc:882: NavigateGuest(webview::kAboutBlankURL, true /* force_navigation */); Sorry for being ...
5 years, 10 months ago (2015-02-03 17:36:40 UTC) #6
Charlie Reis
I agree that this is an improvement over the current <webview> blocked URL behavior, so ...
5 years, 10 months ago (2015-02-03 18:14:57 UTC) #7
Charlie Reis
(In other words, Language Settings should *not* fire a newwindow event. It's a browser-initiated event ...
5 years, 10 months ago (2015-02-03 18:16:31 UTC) #8
Fady Samuel
On 2015/02/03 18:16:31, Charlie Reis wrote: > (In other words, Language Settings should *not* fire ...
5 years, 10 months ago (2015-02-04 06:32:03 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/888563003/60001
5 years, 10 months ago (2015-02-04 06:33:35 UTC) #11
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 10 months ago (2015-02-04 07:28:46 UTC) #12
commit-bot: I haz the power
5 years, 10 months ago (2015-02-04 07:29:44 UTC) #13
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/fb12824b8b2caf76dbb341ef53f3225d09f0ca86
Cr-Commit-Position: refs/heads/master@{#314517}

Powered by Google App Engine
This is Rietveld 408576698