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

Issue 2921783003: WebUI: Fix/suppress some existing violations of no-restricted-globals. (Closed)

Created:
3 years, 6 months ago by dpapad
Modified:
3 years, 6 months ago
Reviewers:
Dan Beam
CC:
arv+watch_chromium.org, chromium-reviews, michaelpg, rlp+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

WebUI: Fix/suppress some existing violations of no-restricted-globals. Adding suppressions for cases where util.js document.getElementById can't be used because the code runs on an extension or content_script, or just because a dependency to util.js is unwanted. For remaining cases, actually replacing document.getElementById() with $(). BUG=720034 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2921783003 Cr-Commit-Position: refs/heads/master@{#477419} Committed: https://chromium.googlesource.com/chromium/src/+/4bcb1a848a99744f64f48301f5f797fb09b30e2c

Patch Set 1 #

Patch Set 2 : more #

Patch Set 3 : Undo #

Patch Set 4 : More #

Total comments: 2

Patch Set 5 : Address comment. #

Total comments: 5

Patch Set 6 : Fix svg #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -6 lines) Patch
A chrome/browser/resources/chromeos/chromevox/.eslintrc.js View 1 1 chunk +15 lines, -0 lines 0 comments Download
M chrome/browser/resources/chromeos/keyboard/keyboard_utils.js View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
A chrome/browser/resources/chromeos/select_to_speak/.eslintrc.js View 1 1 chunk +15 lines, -0 lines 0 comments Download
M chrome/browser/resources/chromeos/switch_access/options.js View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/hotword/audio_client.js View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/resources/instant/instant.js View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/print_preview/print_preview_animations.js View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/print_preview/settings/other_options_settings.js View 1 chunk +1 line, -2 lines 0 comments Download
M ui/webui/resources/js/cr.js View 1 2 3 4 1 chunk +6 lines, -2 lines 0 comments Download
M ui/webui/resources/js/util.js View 1 2 3 4 5 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 40 (22 generated)
dpapad
The amount of exceptions needed for this rule is a bit unsatisfactory, but fortunately we ...
3 years, 6 months ago (2017-06-02 22:27:08 UTC) #8
Dan Beam
https://codereview.chromium.org/2921783003/diff/60001/ui/webui/resources/js/util.js File ui/webui/resources/js/util.js (right): https://codereview.chromium.org/2921783003/diff/60001/ui/webui/resources/js/util.js#newcode15 ui/webui/resources/js/util.js:15: /* eslint-disable no-restricted-properties */ why not var el = ...
3 years, 6 months ago (2017-06-02 23:01:59 UTC) #12
dpapad
https://codereview.chromium.org/2921783003/diff/60001/ui/webui/resources/js/util.js File ui/webui/resources/js/util.js (right): https://codereview.chromium.org/2921783003/diff/60001/ui/webui/resources/js/util.js#newcode15 ui/webui/resources/js/util.js:15: /* eslint-disable no-restricted-properties */ On 2017/06/02 at 23:01:58, Dan ...
3 years, 6 months ago (2017-06-02 23:30:03 UTC) #15
michaelpg
I must've missed a prior CL, but what's wrong with document.getElementById?
3 years, 6 months ago (2017-06-03 00:04:49 UTC) #16
dpapad
On 2017/06/03 at 00:04:49, michaelpg wrote: > I must've missed a prior CL, but what's ...
3 years, 6 months ago (2017-06-03 00:08:18 UTC) #17
Dan Beam
On 2017/06/03 00:08:18, dpapad wrote: > On 2017/06/03 at 00:04:49, michaelpg wrote: > > I ...
3 years, 6 months ago (2017-06-03 00:08:49 UTC) #18
dpapad
On 2017/06/03 at 00:08:49, dbeam wrote: > On 2017/06/03 00:08:18, dpapad wrote: > > On ...
3 years, 6 months ago (2017-06-05 19:01:07 UTC) #19
Dan Beam
https://codereview.chromium.org/2921783003/diff/80001/chrome/browser/resources/chromeos/chromevox/.eslintrc.js File chrome/browser/resources/chromeos/chromevox/.eslintrc.js (right): https://codereview.chromium.org/2921783003/diff/80001/chrome/browser/resources/chromeos/chromevox/.eslintrc.js#newcode13 chrome/browser/resources/chromeos/chromevox/.eslintrc.js:13: 'no-restricted-properties': 'off', what if we write other checked based ...
3 years, 6 months ago (2017-06-05 19:04:01 UTC) #20
dpapad
https://codereview.chromium.org/2921783003/diff/80001/chrome/browser/resources/chromeos/chromevox/.eslintrc.js File chrome/browser/resources/chromeos/chromevox/.eslintrc.js (right): https://codereview.chromium.org/2921783003/diff/80001/chrome/browser/resources/chromeos/chromevox/.eslintrc.js#newcode13 chrome/browser/resources/chromeos/chromevox/.eslintrc.js:13: 'no-restricted-properties': 'off', On 2017/06/05 at 19:04:01, Dan Beam wrote: ...
3 years, 6 months ago (2017-06-05 19:11:58 UTC) #21
Dan Beam
lgtm https://codereview.chromium.org/2921783003/diff/80001/chrome/browser/resources/chromeos/chromevox/.eslintrc.js File chrome/browser/resources/chromeos/chromevox/.eslintrc.js (right): https://codereview.chromium.org/2921783003/diff/80001/chrome/browser/resources/chromeos/chromevox/.eslintrc.js#newcode13 chrome/browser/resources/chromeos/chromevox/.eslintrc.js:13: 'no-restricted-properties': 'off', On 2017/06/05 19:11:58, dpapad wrote: > ...
3 years, 6 months ago (2017-06-05 19:23:10 UTC) #22
dpapad
https://codereview.chromium.org/2921783003/diff/80001/chrome/browser/resources/chromeos/chromevox/.eslintrc.js File chrome/browser/resources/chromeos/chromevox/.eslintrc.js (right): https://codereview.chromium.org/2921783003/diff/80001/chrome/browser/resources/chromeos/chromevox/.eslintrc.js#newcode13 chrome/browser/resources/chromeos/chromevox/.eslintrc.js:13: 'no-restricted-properties': 'off', > i was mainly asking to see ...
3 years, 6 months ago (2017-06-05 19:32:40 UTC) #23
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/2921783003/80001
3 years, 6 months ago (2017-06-05 21:07:16 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/441664) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 6 months ago (2017-06-05 21:54:58 UTC) #29
dpapad
https://codereview.chromium.org/2921783003/diff/80001/ui/webui/resources/js/util.js File ui/webui/resources/js/util.js (right): https://codereview.chromium.org/2921783003/diff/80001/ui/webui/resources/js/util.js#newcode28 ui/webui/resources/js/util.js:28: var el = $(id); Well, that was the culprit ...
3 years, 6 months ago (2017-06-06 19:25:51 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/2921783003/100001
3 years, 6 months ago (2017-06-06 19:28:26 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/231752)
3 years, 6 months ago (2017-06-06 20:52:51 UTC) #35
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/2921783003/100001
3 years, 6 months ago (2017-06-06 21:07:35 UTC) #37
commit-bot: I haz the power
3 years, 6 months ago (2017-06-06 21:41:19 UTC) #40
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/4bcb1a848a99744f64f48301f5f7...

Powered by Google App Engine
This is Rietveld 408576698