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

Issue 2755013002: Removed webControllerDidSuppressDialog: callback. (Closed)

Created:
3 years, 9 months ago by Eugene But (OOO till 7-30)
Modified:
3 years, 9 months ago
Reviewers:
sdefresne
CC:
chromium-reviews, ios-reviews+chrome_chromium.org, ios-reviews_chromium.org, Eugene But (OOO till 7-30), baxley+watch_chromium.org, pkl (ping after 24h if needed), ios-reviews+web_chromium.org, noyau+watch_chromium.org, marq+watch_chromium.org, huangml+watch_chromium.org, liaoyuke+watch_chromium.org, sdefresne+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Removed webControllerDidSuppressDialog: callback. Replaced with WebStateObserver::DidSuppressDialog callback. In content dialogs suppression is implemented via a single callback: WebContentsDelegate::ShouldSuppressDialogs. This callback is called before showing a dialog. On iOS implementing the same API would require a roundtrip (JS->Native->JS). This is because WKWebView does not provide any callbacks for showing geolocation dialogs. So on iOS dialogs blocking is implemented in JS as a boolean flag which is set by WebState::SetShouldSuppressDialogs. Embedder still needs a callback to know if the dialog was suppressed which is implemented as WebStateObserver::DidSuppressDialog and require only one JS->Native message. BUG=674991 Review-Url: https://codereview.chromium.org/2755013002 Cr-Commit-Position: refs/heads/master@{#457764} Committed: https://chromium.googlesource.com/chromium/src/+/e1886452ae27293d06b04655ccae3a25811d62e6

Patch Set 1 #

Patch Set 2 : Self review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+150 lines, -76 lines) Patch
M ios/chrome/browser/tabs/tab.mm View 1 chunk +1 line, -1 line 0 comments Download
M ios/web/public/test/fakes/crw_test_web_state_observer.h View 1 chunk +3 lines, -0 lines 0 comments Download
M ios/web/public/test/fakes/crw_test_web_state_observer.mm View 3 chunks +11 lines, -0 lines 0 comments Download
M ios/web/public/test/fakes/test_web_state_observer.h View 3 chunks +6 lines, -0 lines 0 comments Download
M ios/web/public/test/fakes/test_web_state_observer.mm View 1 chunk +6 lines, -0 lines 0 comments Download
M ios/web/public/test/fakes/test_web_state_observer_util.h View 1 chunk +5 lines, -0 lines 0 comments Download
M ios/web/public/web_state/ui/crw_web_delegate.h View 1 chunk +0 lines, -5 lines 0 comments Download
M ios/web/public/web_state/web_state.h View 1 chunk +3 lines, -2 lines 0 comments Download
M ios/web/public/web_state/web_state_observer.h View 1 chunk +6 lines, -0 lines 0 comments Download
M ios/web/public/web_state/web_state_observer_bridge.h View 2 chunks +4 lines, -0 lines 0 comments Download
M ios/web/web_state/ui/crw_web_controller.h View 1 chunk +1 line, -1 line 0 comments Download
M ios/web/web_state/ui/crw_web_controller.mm View 6 chunks +6 lines, -12 lines 0 comments Download
M ios/web/web_state/ui/crw_web_controller_unittest.mm View 6 chunks +68 lines, -55 lines 0 comments Download
M ios/web/web_state/web_state_impl.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M ios/web/web_state/web_state_impl.mm View 1 chunk +6 lines, -0 lines 0 comments Download
M ios/web/web_state/web_state_impl_unittest.mm View 1 chunk +7 lines, -0 lines 0 comments Download
M ios/web/web_state/web_state_observer_bridge.mm View 1 chunk +5 lines, -0 lines 0 comments Download
M ios/web/web_state/web_state_observer_bridge_unittest.mm View 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (9 generated)
Eugene But (OOO till 7-30)
3 years, 9 months ago (2017-03-17 00:19:06 UTC) #6
sdefresne
lgtm
3 years, 9 months ago (2017-03-17 12:00:45 UTC) #7
Eugene But (OOO till 7-30)
Thanks!
3 years, 9 months ago (2017-03-17 14:34:29 UTC) #8
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/2755013002/20001
3 years, 9 months ago (2017-03-17 14:34:59 UTC) #10
commit-bot: I haz the power
3 years, 9 months ago (2017-03-17 14:46:39 UTC) #14
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/e1886452ae27293d06b04655ccae...

Powered by Google App Engine
This is Rietveld 408576698