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

Issue 2706293007: [DevTools] Fix Dialog's close button to properly close dialog. (Closed)

Created:
3 years, 10 months ago by dgozman
Modified:
3 years, 10 months ago
Reviewers:
caseq
CC:
chromium-reviews, caseq+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, blink-reviews, pfeldman, kozyatinskiy+blink_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[DevTools] Fix Dialog's close button to properly close dialog. Recently regressed in crrev.com/3e3774f369e1e642d06e895276b08814b279c20c. BUG=694130 Review-Url: https://codereview.chromium.org/2706293007 Cr-Commit-Position: refs/heads/master@{#452319} Committed: https://chromium.googlesource.com/chromium/src/+/169beb0367bc0ca03c4cb0baa18d183740f157d0

Patch Set 1 #

Total comments: 2

Patch Set 2 : Encapsulate the widget! #

Patch Set 3 : rebased #

Patch Set 4 : test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -45 lines) Patch
M third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-go-to-file-dialog.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/main/Main.js View 1 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/network/NetworkLogViewColumns.js View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/perf_ui/FilmStripView.js View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/quick_open/FilteredListWidget.js View 1 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/settings/SettingsScreen.js View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sources/AddSourceMapURLDialog.js View 1 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/ui/Dialog.js View 1 4 chunks +13 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/ui/GlassPane.js View 1 5 chunks +34 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/ui/SuggestBox.js View 1 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/ui/Toolbar.js View 1 2 chunks +7 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js View 1 3 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 22 (9 generated)
dgozman
Take a look please.
3 years, 10 months ago (2017-02-21 22:29:27 UTC) #2
caseq
https://codereview.chromium.org/2706293007/diff/1/third_party/WebKit/Source/devtools/front_end/ui/Dialog.js File third_party/WebKit/Source/devtools/front_end/ui/Dialog.js (right): https://codereview.chromium.org/2706293007/diff/1/third_party/WebKit/Source/devtools/front_end/ui/Dialog.js#newcode80 third_party/WebKit/Source/devtools/front_end/ui/Dialog.js:80: closeButton.addEventListener('click', () => this.hideDialog(), false); So it looks like ...
3 years, 10 months ago (2017-02-21 22:56:29 UTC) #3
dgozman
https://codereview.chromium.org/2706293007/diff/1/third_party/WebKit/Source/devtools/front_end/ui/Dialog.js File third_party/WebKit/Source/devtools/front_end/ui/Dialog.js (right): https://codereview.chromium.org/2706293007/diff/1/third_party/WebKit/Source/devtools/front_end/ui/Dialog.js#newcode80 third_party/WebKit/Source/devtools/front_end/ui/Dialog.js:80: closeButton.addEventListener('click', () => this.hideDialog(), false); On 2017/02/21 22:56:29, caseq ...
3 years, 10 months ago (2017-02-21 23:01:48 UTC) #4
caseq
Another option for you is just to override detach(), this should be fine, too.
3 years, 10 months ago (2017-02-21 23:13:09 UTC) #5
dgozman
On 2017/02/21 23:13:09, caseq wrote: > Another option for you is just to override detach(), ...
3 years, 10 months ago (2017-02-22 00:03:53 UTC) #6
dgozman
PTAL, new approach.
3 years, 10 months ago (2017-02-22 02:50:41 UTC) #7
caseq
lgtm
3 years, 10 months ago (2017-02-22 03:15:18 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/2706293007/20001
3 years, 10 months ago (2017-02-22 04:22:23 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/392962)
3 years, 10 months ago (2017-02-22 06:04:01 UTC) #12
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/2706293007/20001
3 years, 10 months ago (2017-02-22 19:00:06 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/387595)
3 years, 10 months ago (2017-02-22 20:54:17 UTC) #16
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/2706293007/60001
3 years, 10 months ago (2017-02-22 21:58:07 UTC) #19
commit-bot: I haz the power
3 years, 10 months ago (2017-02-23 00:57:15 UTC) #22
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/169beb0367bc0ca03c4cb0baa18d...

Powered by Google App Engine
This is Rietveld 408576698