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

Issue 1806043004: [ios] Refactored dialogs suppression. (Closed)

Created:
4 years, 9 months ago by Eugene But (OOO till 7-30)
Modified:
4 years, 9 months ago
Reviewers:
Jackie Quinn
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[ios] Refactored dialogs suppression. 1.) Added |suppressDialogs| property to CRWWebController, which should be used instead of |setPageDialogOpenPolicy|. 2.) Suppress all dialogs in native code instead of JavaScript (except navigation dialogs which can not be suppressed w/o JS override). 3.) Suppress HTTP Auth dialog if |suppressDialogs| is YES. BUG=595463 TEST=window.open, window.prompt, window.confirm, window.alert, geolocation and http auth dialogs should be blocked for preload pages. All these dialogs should work normally for regular pages. Committed: https://crrev.com/45bfe025690492eeafe4f1a689cab5c2bcb91b2a Cr-Commit-Position: refs/heads/master@{#381759}

Patch Set 1 #

Patch Set 2 : Self review #

Total comments: 6

Patch Set 3 : Addressed review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -89 lines) Patch
M ios/web/public/web_state/ui/crw_web_delegate.h View 1 chunk +3 lines, -2 lines 0 comments Download
M ios/web/web_state/js/resources/dialog_overrides.js View 1 2 2 chunks +19 lines, -33 lines 0 comments Download
M ios/web/web_state/ui/crw_web_controller.h View 2 chunks +7 lines, -0 lines 0 comments Download
M ios/web/web_state/ui/crw_web_controller.mm View 1 2 9 chunks +30 lines, -36 lines 0 comments Download
M ios/web/web_state/ui/crw_web_controller+protected.h View 2 chunks +4 lines, -7 lines 0 comments Download
M ios/web/web_state/ui/crw_web_controller_unittest.mm View 1 chunk +1 line, -1 line 0 comments Download
M ios/web/web_state/ui/crw_wk_web_view_web_controller.mm View 7 chunks +29 lines, -10 lines 0 comments Download

Messages

Total messages: 16 (8 generated)
Eugene But (OOO till 7-30)
4 years, 9 months ago (2016-03-17 01:51:28 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1806043004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1806043004/20001
4 years, 9 months ago (2016-03-17 01:51:48 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-17 02:36:26 UTC) #6
Jackie Quinn
lgtm, with a couple nits/questions. https://codereview.chromium.org/1806043004/diff/20001/ios/web/web_state/js/resources/dialog_overrides.js File ios/web/web_state/js/resources/dialog_overrides.js (right): https://codereview.chromium.org/1806043004/diff/20001/ios/web/web_state/js/resources/dialog_overrides.js#newcode27 ios/web/web_state/js/resources/dialog_overrides.js:27: // may suppress the ...
4 years, 9 months ago (2016-03-17 17:46:42 UTC) #8
Eugene But (OOO till 7-30)
Thanks! https://codereview.chromium.org/1806043004/diff/20001/ios/web/web_state/js/resources/dialog_overrides.js File ios/web/web_state/js/resources/dialog_overrides.js (right): https://codereview.chromium.org/1806043004/diff/20001/ios/web/web_state/js/resources/dialog_overrides.js#newcode27 ios/web/web_state/js/resources/dialog_overrides.js:27: // may suppress the dialog and notify host ...
4 years, 9 months ago (2016-03-17 17:53:21 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1806043004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1806043004/40001
4 years, 9 months ago (2016-03-17 17:53:45 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 9 months ago (2016-03-17 18:44:57 UTC) #14
commit-bot: I haz the power
4 years, 9 months ago (2016-03-17 18:46:28 UTC) #16
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/45bfe025690492eeafe4f1a689cab5c2bcb91b2a
Cr-Commit-Position: refs/heads/master@{#381759}

Powered by Google App Engine
This is Rietveld 408576698