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

Issue 2888773003: Do not create CRWWebUIManager for non-WebUI URLs. (Closed)

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

Description

Do not create CRWWebUIManager for non-WebUI URLs. This will prevent web controller from loading WebUI for chrome:// URLs that neither have WebUI nor NativeContent. CL should fix the issue with loading WebUI for chrome://crash and chrome://newtab (New Architecture only). There are no new tests because this case is covered by various existing tests, so simple |DCHECK(HTML.length);| in |loadHTML:forURL:| is sufficient. BUG=None Review-Url: https://codereview.chromium.org/2888773003 Cr-Commit-Position: refs/heads/master@{#472547} Committed: https://chromium.googlesource.com/chromium/src/+/b3bc86ce3f500cb9db8e4eb01af089cf0654bf2b

Patch Set 1 #

Patch Set 2 : Self review #

Total comments: 2

Patch Set 3 : Fixed tests; Updated comments; #

Total comments: 4

Patch Set 4 : Updated comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -4 lines) Patch
M ios/chrome/browser/autofill/form_suggestion_controller_unittest.mm View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M ios/web/web_state/ui/crw_web_controller.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ios/web/web_state/ui/crw_web_controller.mm View 1 2 3 2 chunks +8 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 21 (13 generated)
PL
https://codereview.chromium.org/2888773003/diff/20001/ios/web/web_state/ui/crw_web_controller.mm File ios/web/web_state/ui/crw_web_controller.mm (right): https://codereview.chromium.org/2888773003/diff/20001/ios/web/web_state/ui/crw_web_controller.mm#newcode3165 ios/web/web_state/ui/crw_web_controller.mm:3165: _webStateImpl->CreateWebUI(URL); For chrome://crash we would still run CreateWebUI even ...
3 years, 7 months ago (2017-05-17 00:04:26 UTC) #3
Eugene But (OOO till 7-30)
https://codereview.chromium.org/2888773003/diff/20001/ios/web/web_state/ui/crw_web_controller.mm File ios/web/web_state/ui/crw_web_controller.mm (right): https://codereview.chromium.org/2888773003/diff/20001/ios/web/web_state/ui/crw_web_controller.mm#newcode3165 ios/web/web_state/ui/crw_web_controller.mm:3165: _webStateImpl->CreateWebUI(URL); On 2017/05/17 00:04:26, PL wrote: > For chrome://crash ...
3 years, 7 months ago (2017-05-17 14:49:26 UTC) #6
Eugene But (OOO till 7-30)
michaeldo@ for WebUI owner review peterlaurens@ FYI, change should fix chrome://crash issue sczs@ FYI, change ...
3 years, 7 months ago (2017-05-17 14:51:50 UTC) #10
michaeldo
lgtm https://codereview.chromium.org/2888773003/diff/40001/ios/web/web_state/ui/crw_web_controller.mm File ios/web/web_state/ui/crw_web_controller.mm (right): https://codereview.chromium.org/2888773003/diff/40001/ios/web/web_state/ui/crw_web_controller.mm#newcode3165 ios/web/web_state/ui/crw_web_controller.mm:3165: // |CreateWebUI| will do nothing if |URL| is ...
3 years, 7 months ago (2017-05-17 15:17:31 UTC) #13
Eugene But (OOO till 7-30)
Thanks! https://codereview.chromium.org/2888773003/diff/40001/ios/web/web_state/ui/crw_web_controller.mm File ios/web/web_state/ui/crw_web_controller.mm (right): https://codereview.chromium.org/2888773003/diff/40001/ios/web/web_state/ui/crw_web_controller.mm#newcode3165 ios/web/web_state/ui/crw_web_controller.mm:3165: // |CreateWebUI| will do nothing if |URL| is ...
3 years, 7 months ago (2017-05-17 18:36:41 UTC) #14
michaeldo
On 2017/05/17 18:36:41, Eugene But wrote: > Thanks! > > https://codereview.chromium.org/2888773003/diff/40001/ios/web/web_state/ui/crw_web_controller.mm > File ios/web/web_state/ui/crw_web_controller.mm (right): ...
3 years, 7 months ago (2017-05-17 18:43:46 UTC) #15
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/2888773003/60001
3 years, 7 months ago (2017-05-17 20:05:56 UTC) #18
commit-bot: I haz the power
3 years, 7 months ago (2017-05-17 20:23:31 UTC) #21
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/b3bc86ce3f500cb9db8e4eb01af0...

Powered by Google App Engine
This is Rietveld 408576698