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

Issue 2184123003: Use event path to detect if anchor has been clicked in WebUIs. (Closed)

Created:
4 years, 4 months ago by calamity
Modified:
4 years, 4 months ago
Reviewers:
tsergeant, Dan Beam
CC:
chromium-reviews, oshima+watch_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@close_dialog_on_query
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use event path to detect if anchor has been clicked in WebUIs. This CL fixes an issue where MD History could not open file URLs due to the way the global anchor click listener for WebUIs worked. This has been fixed by checking the event path, as is done in iron-location's global click handler. BUG=621260 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/0684a6f3db61f973734e654292e00ade79e8bd5d Cr-Commit-Position: refs/heads/master@{#410972}

Patch Set 1 : #

Patch Set 2 : add test to util_test.html #

Total comments: 16

Patch Set 3 : address comments #

Total comments: 6

Patch Set 4 : address comments #

Total comments: 2

Patch Set 5 : add <b> test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -14 lines) Patch
M chrome/test/data/webui/md_history/history_list_test.js View 1 2 1 chunk +19 lines, -0 lines 0 comments Download
M chrome/test/data/webui/util_test.html View 1 2 3 4 2 chunks +19 lines, -0 lines 0 comments Download
M ui/webui/resources/js/util.js View 1 2 3 1 chunk +32 lines, -14 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 36 (20 generated)
calamity
+tsergeant for initial review.
4 years, 4 months ago (2016-07-28 04:41:46 UTC) #13
tsergeant
It would be nice to verify in util_test.html that none of the existing behavior has ...
4 years, 4 months ago (2016-07-28 05:58:54 UTC) #14
calamity
On 2016/07/28 05:58:54, tsergeant wrote: > It would be nice to verify in util_test.html that ...
4 years, 4 months ago (2016-07-29 05:49:57 UTC) #15
tsergeant
lgtm
4 years, 4 months ago (2016-07-29 06:21:44 UTC) #16
calamity
+dbeam for util.js
4 years, 4 months ago (2016-08-02 01:42:32 UTC) #18
Dan Beam
https://codereview.chromium.org/2184123003/diff/60001/chrome/test/data/webui/md_history/history_list_test.js File chrome/test/data/webui/md_history/history_list_test.js (right): https://codereview.chromium.org/2184123003/diff/60001/chrome/test/data/webui/md_history/history_list_test.js#newcode279 chrome/test/data/webui/md_history/history_list_test.js:279: registerMessageCallback('navigateToUrl', this, function(info) { registerMessageCallback() is a bummer. didn't ...
4 years, 4 months ago (2016-08-02 06:02:44 UTC) #19
calamity
https://codereview.chromium.org/2184123003/diff/60001/chrome/test/data/webui/md_history/history_list_test.js File chrome/test/data/webui/md_history/history_list_test.js (right): https://codereview.chromium.org/2184123003/diff/60001/chrome/test/data/webui/md_history/history_list_test.js#newcode279 chrome/test/data/webui/md_history/history_list_test.js:279: registerMessageCallback('navigateToUrl', this, function(info) { On 2016/08/02 06:02:43, Dan Beam ...
4 years, 4 months ago (2016-08-08 05:06:43 UTC) #20
Dan Beam
https://codereview.chromium.org/2184123003/diff/80001/ui/webui/resources/js/util.js File ui/webui/resources/js/util.js (right): https://codereview.chromium.org/2184123003/diff/80001/ui/webui/resources/js/util.js#newcode215 ui/webui/resources/js/util.js:215: document.addEventListener('click', function(e) { can we make this a static ...
4 years, 4 months ago (2016-08-08 19:29:48 UTC) #21
Dan Beam
https://codereview.chromium.org/2184123003/diff/60001/chrome/test/data/webui/md_history/history_list_test.js File chrome/test/data/webui/md_history/history_list_test.js (right): https://codereview.chromium.org/2184123003/diff/60001/chrome/test/data/webui/md_history/history_list_test.js#newcode279 chrome/test/data/webui/md_history/history_list_test.js:279: registerMessageCallback('navigateToUrl', this, function(info) { On 2016/08/08 05:06:43, calamity wrote: ...
4 years, 4 months ago (2016-08-08 21:28:00 UTC) #22
calamity
https://codereview.chromium.org/2184123003/diff/80001/ui/webui/resources/js/util.js File ui/webui/resources/js/util.js (right): https://codereview.chromium.org/2184123003/diff/80001/ui/webui/resources/js/util.js#newcode215 ui/webui/resources/js/util.js:215: document.addEventListener('click', function(e) { On 2016/08/08 19:29:47, Dan Beam wrote: ...
4 years, 4 months ago (2016-08-09 08:39:07 UTC) #27
Dan Beam
i thought of a few ways to golf this code smaller, but not sure if ...
4 years, 4 months ago (2016-08-09 17:13:23 UTC) #28
calamity
https://codereview.chromium.org/2184123003/diff/100001/chrome/test/data/webui/util_test.html File chrome/test/data/webui/util_test.html (right): https://codereview.chromium.org/2184123003/diff/100001/chrome/test/data/webui/util_test.html#newcode5 chrome/test/data/webui/util_test.html:5: <a id="chrome" href="about:chrome">Chrome</a> On 2016/08/09 17:13:22, Dan Beam wrote: ...
4 years, 4 months ago (2016-08-10 03:42:55 UTC) #29
Dan Beam
lgtm++
4 years, 4 months ago (2016-08-10 03:49:17 UTC) #30
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/2184123003/120001
4 years, 4 months ago (2016-08-10 04:44:44 UTC) #33
commit-bot: I haz the power
Committed patchset #5 (id:120001)
4 years, 4 months ago (2016-08-10 05:49:14 UTC) #34
commit-bot: I haz the power
4 years, 4 months ago (2016-08-10 05:51:30 UTC) #36
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/0684a6f3db61f973734e654292e00ade79e8bd5d
Cr-Commit-Position: refs/heads/master@{#410972}

Powered by Google App Engine
This is Rietveld 408576698