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

Issue 2918013002: Do not rewrite about urls to chrome:// for cetain renderer-initated loads (Closed)

Created:
3 years, 6 months ago by Eugene But (OOO till 7-30)
Modified:
3 years, 6 months ago
Reviewers:
kkhorimoto
CC:
chromium-reviews, ios-reviews+chrome_chromium.org, ios-reviews_chromium.org, Eugene But (OOO till 7-30), ios-reviews+web_chromium.org, noyau+watch_chromium.org, marq+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Do not rewrite about urls to chrome:// for cetain renderer-initated loads This fixes the bug where about:newtab gets rewritten to chrome://newtab and it corrupts omnibox UI. Chrome layer expects that chrome://newtab will be NTP, but about:newtab can be loaded as a regular web page as proven in crbug.com/687863 POS. This CL also enables testWindowOpenWithAboutNewTabScript, adds tests for URLRewriting and allows |currentURLWithTrustLevel:| to return all kinds of about:// urls (old workaround was put in place for UIWebView which used JS overrides for window.open). BUG=687863 Review-Url: https://codereview.chromium.org/2918013002 Cr-Commit-Position: refs/heads/master@{#476716} Committed: https://chromium.googlesource.com/chromium/src/+/657495c5b5591a13ca826a373ada0c0038d79b61

Patch Set 1 #

Patch Set 2 : Self review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -11 lines) Patch
M ios/chrome/browser/web/window_open_by_dom_egtest.mm View 1 chunk +1 line, -2 lines 0 comments Download
M ios/web/navigation/crw_session_controller.mm View 1 1 chunk +14 lines, -0 lines 0 comments Download
M ios/web/navigation/navigation_manager_impl_unittest.mm View 4 chunks +64 lines, -0 lines 0 comments Download
M ios/web/web_state/ui/crw_web_controller.mm View 2 chunks +5 lines, -9 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 14 (9 generated)
Eugene But (OOO till 7-30)
PTAL
3 years, 6 months ago (2017-06-02 04:24:25 UTC) #7
kkhorimoto
lgtm!
3 years, 6 months ago (2017-06-02 17:12:57 UTC) #8
Eugene But (OOO till 7-30)
Thanks for a quick review!
3 years, 6 months ago (2017-06-02 17:40:54 UTC) #9
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/2918013002/20001
3 years, 6 months ago (2017-06-02 17:41:15 UTC) #11
commit-bot: I haz the power
3 years, 6 months ago (2017-06-02 18:00:57 UTC) #14
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/657495c5b5591a13ca826a373ada...

Powered by Google App Engine
This is Rietveld 408576698