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

Issue 12091075: Fix the issue introduced by hooking window.onbeforeunload in WebDialogView which breaks WebDialogUI… (Closed)

Created:
7 years, 10 months ago by jennyz
Modified:
7 years, 10 months ago
CC:
chromium-reviews, tfarina
Visibility:
Public.

Description

Fix the issue introduced by hooking window.onbeforeunload in WebDialogView which breaks the way WebDialogUI closing the dialog via "DialogClose" message from js. This is broken by my svn landed yesterday. https://src.chromium.org/viewvc/chrome?view=rev&revision=179427 Since we fire window.onbeforeunload event in WebDialogView, which makes dialog closing async now, we can't have WebDialogUI calls WebDialogDelegate::OnDialogClosed directly in response to "DialogClose" message. I added a new callback WebDialogDelegate::OnDialogCloseFromWebUI to support this case. While WebDialogDelegate is still used by WebDialogGtk, I provided a default WebDialogDelegate::OnDialogClosedFromWebUI implementation, which just calls WebDialogDelegate::OnDialogClosedFromWebUI, so that the gtk code flow should still work the same as before. BUG=172067 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=179771

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -3 lines) Patch
M ui/views/controls/webview/web_dialog_view.h View 2 chunks +9 lines, -0 lines 0 comments Download
M ui/views/controls/webview/web_dialog_view.cc View 3 chunks +10 lines, -2 lines 0 comments Download
M ui/web_dialogs/web_dialog_delegate.h View 1 chunk +4 lines, -0 lines 0 comments Download
M ui/web_dialogs/web_dialog_delegate.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M ui/web_dialogs/web_dialog_ui.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
jennyz
7 years, 10 months ago (2013-01-30 22:41:15 UTC) #1
Ben Goodger (Google)
lgtm
7 years, 10 months ago (2013-01-30 22:48:44 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jennyz@chromium.org/12091075/1
7 years, 10 months ago (2013-01-30 23:03:16 UTC) #3
commit-bot: I haz the power
7 years, 10 months ago (2013-01-31 02:09:50 UTC) #4
Message was sent while issue was closed.
Change committed as 179771

Powered by Google App Engine
This is Rietveld 408576698