|
|
Chromium Code Reviews|
Created:
4 years, 2 months ago by kkhorimoto Modified:
4 years, 2 months ago CC:
chromium-reviews Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionDon't allow link navigations for invalid URLs.
This CL cancels navigation actions for invalid URLs, loading about:blank
instead. This matches the behavior in content/.
BUG=627581, 651854
Committed: https://crrev.com/8ad7f5ffc393f808323dd1d286cc00cc82161fc0
Cr-Commit-Position: refs/heads/master@{#423085}
Patch Set 1 #
Total comments: 4
Patch Set 2 : kAboutBlankURL #Patch Set 3 : compilation fix #Messages
Total messages: 29 (17 generated)
kkhorimoto@chromium.org changed reviewers: + eugenebut@chromium.org, marq@chromium.org
https://codereview.chromium.org/2397623002/diff/1/ios/web/web_state/ui/crw_we... File ios/web/web_state/ui/crw_web_controller.mm (right): https://codereview.chromium.org/2397623002/diff/1/ios/web/web_state/ui/crw_we... ios/web/web_state/ui/crw_web_controller.mm:4970: if (!requestURL.is_valid()) { What |requestURL.is_valid()| would return for "about:blank" URLs? If the result is false, then we can get into infinite loading loop.
https://codereview.chromium.org/2397623002/diff/1/ios/web/web_state/ui/crw_we... File ios/web/web_state/ui/crw_web_controller.mm (right): https://codereview.chromium.org/2397623002/diff/1/ios/web/web_state/ui/crw_we... ios/web/web_state/ui/crw_web_controller.mm:4970: if (!requestURL.is_valid()) { On 2016/10/05 00:58:39, Eugene But wrote: > What |requestURL.is_valid()| would return for "about:blank" URLs? If the result > is false, then we can get into infinite loading loop. GURL("about:blank").is_valid() is true, so that's not an issue here.
lgtm https://codereview.chromium.org/2397623002/diff/1/ios/web/web_state/ui/crw_we... File ios/web/web_state/ui/crw_web_controller.mm (right): https://codereview.chromium.org/2397623002/diff/1/ios/web/web_state/ui/crw_we... ios/web/web_state/ui/crw_web_controller.mm:4972: web::NavigationManager::WebLoadParams loadParams(GURL("about:blank")); s/"about:blank"/kAboutBlankURL
https://codereview.chromium.org/2397623002/diff/1/ios/web/web_state/ui/crw_we... File ios/web/web_state/ui/crw_web_controller.mm (right): https://codereview.chromium.org/2397623002/diff/1/ios/web/web_state/ui/crw_we... ios/web/web_state/ui/crw_web_controller.mm:4972: web::NavigationManager::WebLoadParams loadParams(GURL("about:blank")); On 2016/10/05 01:41:44, Eugene But wrote: > s/"about:blank"/kAboutBlankURL Done.
Description was changed from ========== Don't allow link navigations for invalid URLs. This CL cancels navigation actions for invalid URLs, loading about:blank instead. This matches the behavior in content/. BUG=627581 ========== to ========== Don't allow link navigations for invalid URLs. This CL cancels navigation actions for invalid URLs, loading about:blank instead. This matches the behavior in content/. BUG=627581, 651854 ==========
The CQ bit was checked by kkhorimoto@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from eugenebut@chromium.org Link to the patchset: https://codereview.chromium.org/2397623002/#ps20001 (title: "kAboutBlankURL")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by kkhorimoto@chromium.org
The CQ bit was checked by kkhorimoto@chromium.org
The CQ bit was unchecked by kkhorimoto@chromium.org
Description was changed from ========== Don't allow link navigations for invalid URLs. This CL cancels navigation actions for invalid URLs, loading about:blank instead. This matches the behavior in content/. BUG=627581, 651854 ========== to ========== Don't allow link navigations for invalid URLs. This CL cancels navigation actions for invalid URLs, loading about:blank instead. This matches the behavior in content/. BUG=627581 ==========
The CQ bit was checked by kkhorimoto@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by kkhorimoto@chromium.org
Description was changed from ========== Don't allow link navigations for invalid URLs. This CL cancels navigation actions for invalid URLs, loading about:blank instead. This matches the behavior in content/. BUG=627581 ========== to ========== Don't allow link navigations for invalid URLs. This CL cancels navigation actions for invalid URLs, loading about:blank instead. This matches the behavior in content/. BUG=627581, 651854 ==========
The CQ bit was checked by kkhorimoto@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/bui...)
The CQ bit was checked by kkhorimoto@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from eugenebut@chromium.org Link to the patchset: https://codereview.chromium.org/2397623002/#ps40001 (title: "compilation fix")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== Don't allow link navigations for invalid URLs. This CL cancels navigation actions for invalid URLs, loading about:blank instead. This matches the behavior in content/. BUG=627581, 651854 ========== to ========== Don't allow link navigations for invalid URLs. This CL cancels navigation actions for invalid URLs, loading about:blank instead. This matches the behavior in content/. BUG=627581, 651854 ==========
Message was sent while issue was closed.
Committed patchset #3 (id:40001)
Message was sent while issue was closed.
Description was changed from ========== Don't allow link navigations for invalid URLs. This CL cancels navigation actions for invalid URLs, loading about:blank instead. This matches the behavior in content/. BUG=627581, 651854 ========== to ========== Don't allow link navigations for invalid URLs. This CL cancels navigation actions for invalid URLs, loading about:blank instead. This matches the behavior in content/. BUG=627581, 651854 Committed: https://crrev.com/8ad7f5ffc393f808323dd1d286cc00cc82161fc0 Cr-Commit-Position: refs/heads/master@{#423085} ==========
Message was sent while issue was closed.
Patchset 3 (id:??) landed as https://crrev.com/8ad7f5ffc393f808323dd1d286cc00cc82161fc0 Cr-Commit-Position: refs/heads/master@{#423085} |
