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

Issue 443553002: Typecheck chrome://help using CompilerPass.java, everything except dependency to options (Closed)

Created:
6 years, 4 months ago by Vitaly Pavlenko
Modified:
6 years, 3 months ago
Reviewers:
Dan Beam
CC:
chromium-reviews, arv+watch_chromium.org, oshima+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@true_master
Project:
chromium
Visibility:
Public.

Description

Typecheck chrome://help using CompilerPass.java, everything except dependency to options and Element.prototype.contains(Node) R=dbeam@chromium.org BUG=393873 TEST=GYP_GENERATORS=ninja gyp --depth . chrome/browser/resources/help/compiled_resources.gyp && ninja -C out/Default Committed: https://crrev.com/2ee4e3d7fa891c4aee1b3462f7caa0f5cde07c72 Cr-Commit-Position: refs/heads/master@{#293645}

Patch Set 1 #

Total comments: 8

Patch Set 2 : HTMLDivElement -> HTMLElement #

Patch Set 3 : reference to github issue for enums #

Patch Set 4 : rebase to master, compile everything but dependency to options #

Total comments: 19

Patch Set 5 : fixes after comments #

Total comments: 5

Patch Set 6 : added gyp #

Patch Set 7 : rebase #

Patch Set 8 : rebase, fix interaction with EventTracker #

Patch Set 9 : restored assertInstanceof() #

Total comments: 14

Patch Set 10 : yet another attempt #

Total comments: 1

Patch Set 11 : fixed one nit #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+113 lines, -94 lines) Patch
M chrome/browser/resources/help/channel_change_page.js View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
A + chrome/browser/resources/help/compiled_resources.gyp View 1 2 3 4 5 6 7 8 9 1 chunk +7 lines, -9 lines 0 comments Download
M chrome/browser/resources/help/help_page.js View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/uber/uber_page_manager_observer.js View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/resources/uber/uber_utils.js View 1 2 3 4 5 6 7 2 chunks +4 lines, -4 lines 0 comments Download
M ui/webui/resources/js/cr/ui/bubble.js View 1 2 3 4 5 6 7 8 9 10 11 chunks +82 lines, -64 lines 3 comments Download
M ui/webui/resources/js/cr/ui/page_manager/page.js View 1 2 3 4 3 chunks +3 lines, -2 lines 0 comments Download
M ui/webui/resources/js/cr/ui/page_manager/page_manager.js View 1 2 3 4 5 6 7 7 chunks +10 lines, -9 lines 0 comments Download
M ui/webui/resources/js/event_tracker.js View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 23 (1 generated)
Vitaly Pavlenko
6 years, 4 months ago (2014-08-05 01:59:10 UTC) #1
Dan Beam
https://codereview.chromium.org/443553002/diff/1/chrome/browser/resources/help/help_base_page.js File chrome/browser/resources/help/help_base_page.js (right): https://codereview.chromium.org/443553002/diff/1/chrome/browser/resources/help/help_base_page.js#newcode204 chrome/browser/resources/help/help_base_page.js:204: return /** @type {HTMLDivElement} */(this.pageDiv.parentNode); why don't you make ...
6 years, 4 months ago (2014-08-05 18:49:27 UTC) #2
Vitaly Pavlenko
https://codereview.chromium.org/443553002/diff/1/chrome/browser/resources/help/help_base_page.js File chrome/browser/resources/help/help_base_page.js (right): https://codereview.chromium.org/443553002/diff/1/chrome/browser/resources/help/help_base_page.js#newcode204 chrome/browser/resources/help/help_base_page.js:204: return /** @type {HTMLDivElement} */(this.pageDiv.parentNode); On 2014/08/05 18:49:27, Dan ...
6 years, 4 months ago (2014-08-05 23:00:54 UTC) #3
Dan Beam
lgtm https://codereview.chromium.org/443553002/diff/1/ui/webui/resources/js/cr/ui/bubble.js File ui/webui/resources/js/cr/ui/bubble.js (right): https://codereview.chromium.org/443553002/diff/1/ui/webui/resources/js/cr/ui/bubble.js#newcode53 ui/webui/resources/js/cr/ui/bubble.js:53: }; On 2014/08/05 23:00:54, Vitaly Pavlenko wrote: > ...
6 years, 4 months ago (2014-08-05 23:09:29 UTC) #4
Vitaly Pavlenko
https://codereview.chromium.org/443553002/diff/1/ui/webui/resources/js/cr/ui/bubble.js File ui/webui/resources/js/cr/ui/bubble.js (right): https://codereview.chromium.org/443553002/diff/1/ui/webui/resources/js/cr/ui/bubble.js#newcode53 ui/webui/resources/js/cr/ui/bubble.js:53: }; On 2014/08/05 23:09:29, Dan Beam wrote: > On ...
6 years, 4 months ago (2014-08-06 00:16:42 UTC) #5
Vitaly Pavlenko
I rebased these fixes onto master. In the meantime HelpPage was changed, so I have ...
6 years, 4 months ago (2014-08-12 20:25:25 UTC) #6
Dan Beam
https://chromiumcodereview.appspot.com/443553002/diff/60001/chrome/browser/resources/help/help_page.js File chrome/browser/resources/help/help_page.js (right): https://chromiumcodereview.appspot.com/443553002/diff/60001/chrome/browser/resources/help/help_page.js#newcode165 chrome/browser/resources/help/help_page.js:165: * @param {function()} method The click handler. nit: Function ...
6 years, 4 months ago (2014-08-13 22:20:08 UTC) #7
Vitaly Pavlenko
https://chromiumcodereview.appspot.com/443553002/diff/60001/chrome/browser/resources/help/help_page.js File chrome/browser/resources/help/help_page.js (right): https://chromiumcodereview.appspot.com/443553002/diff/60001/chrome/browser/resources/help/help_page.js#newcode165 chrome/browser/resources/help/help_page.js:165: * @param {function()} method The click handler. On 2014/08/13 ...
6 years, 4 months ago (2014-08-14 00:01:03 UTC) #8
Dan Beam
lgtm https://chromiumcodereview.appspot.com/443553002/diff/60001/ui/webui/resources/js/cr/ui/bubble.js File ui/webui/resources/js/cr/ui/bubble.js (right): https://chromiumcodereview.appspot.com/443553002/diff/60001/ui/webui/resources/js/cr/ui/bubble.js#newcode480 ui/webui/resources/js/cr/ui/bubble.js:480: if (event.button == 0 && this.anchorNode_.contains(event.target)) On 2014/08/14 ...
6 years, 4 months ago (2014-08-14 00:47:02 UTC) #9
Dan Beam
https://chromiumcodereview.appspot.com/443553002/diff/80001/ui/webui/resources/js/cr/ui/bubble.js File ui/webui/resources/js/cr/ui/bubble.js (right): https://chromiumcodereview.appspot.com/443553002/diff/80001/ui/webui/resources/js/cr/ui/bubble.js#newcode486 ui/webui/resources/js/cr/ui/bubble.js:486: if (this.contains(assertInstanceof(event.target, Element))) not lgtm, not done
6 years, 4 months ago (2014-08-14 00:47:51 UTC) #10
Vitaly Pavlenko
https://chromiumcodereview.appspot.com/443553002/diff/80001/ui/webui/resources/js/cr/ui/bubble.js File ui/webui/resources/js/cr/ui/bubble.js (right): https://chromiumcodereview.appspot.com/443553002/diff/80001/ui/webui/resources/js/cr/ui/bubble.js#newcode486 ui/webui/resources/js/cr/ui/bubble.js:486: if (this.contains(assertInstanceof(event.target, Element))) On 2014/08/14 00:47:50, Dan Beam wrote: ...
6 years, 4 months ago (2014-08-18 21:21:14 UTC) #11
Dan Beam
https://chromiumcodereview.appspot.com/443553002/diff/80001/ui/webui/resources/js/cr/ui/bubble.js File ui/webui/resources/js/cr/ui/bubble.js (right): https://chromiumcodereview.appspot.com/443553002/diff/80001/ui/webui/resources/js/cr/ui/bubble.js#newcode483 ui/webui/resources/js/cr/ui/bubble.js:483: // Close the bubble when the underlying document is ...
6 years, 4 months ago (2014-08-19 03:09:21 UTC) #12
Vitaly Pavlenko
https://codereview.chromium.org/443553002/diff/80001/ui/webui/resources/js/cr/ui/bubble.js File ui/webui/resources/js/cr/ui/bubble.js (right): https://codereview.chromium.org/443553002/diff/80001/ui/webui/resources/js/cr/ui/bubble.js#newcode486 ui/webui/resources/js/cr/ui/bubble.js:486: if (this.contains(assertInstanceof(event.target, Element))) On 2014/08/18 21:21:13, Vitaly Pavlenko wrote: ...
6 years, 3 months ago (2014-08-27 21:36:03 UTC) #13
Dan Beam
https://codereview.chromium.org/443553002/diff/80001/ui/webui/resources/js/cr/ui/bubble.js File ui/webui/resources/js/cr/ui/bubble.js (right): https://codereview.chromium.org/443553002/diff/80001/ui/webui/resources/js/cr/ui/bubble.js#newcode486 ui/webui/resources/js/cr/ui/bubble.js:486: if (this.contains(assertInstanceof(event.target, Element))) On 2014/08/27 21:36:03, Vitaly Pavlenko wrote: ...
6 years, 3 months ago (2014-08-27 21:42:01 UTC) #14
Vitaly Pavlenko
On 2014/08/27 21:42:01, Dan Beam wrote: > https://codereview.chromium.org/443553002/diff/80001/ui/webui/resources/js/cr/ui/bubble.js > File ui/webui/resources/js/cr/ui/bubble.js (right): > > https://codereview.chromium.org/443553002/diff/80001/ui/webui/resources/js/cr/ui/bubble.js#newcode486 ...
6 years, 3 months ago (2014-08-27 21:59:51 UTC) #15
Dan Beam
very very close https://chromiumcodereview.appspot.com/443553002/diff/160001/ui/webui/resources/js/cr/ui/bubble.js File ui/webui/resources/js/cr/ui/bubble.js (right): https://chromiumcodereview.appspot.com/443553002/diff/160001/ui/webui/resources/js/cr/ui/bubble.js#newcode488 ui/webui/resources/js/cr/ui/bubble.js:488: case 'mousedown': assertInstanceOf(event.target, Node); https://chromiumcodereview.appspot.com/443553002/diff/160001/ui/webui/resources/js/cr/ui/bubble.js#newcode489 ui/webui/resources/js/cr/ui/bubble.js:489: ...
6 years, 3 months ago (2014-08-27 23:38:38 UTC) #16
Vitaly Pavlenko
https://chromiumcodereview.appspot.com/443553002/diff/160001/ui/webui/resources/js/cr/ui/bubble.js File ui/webui/resources/js/cr/ui/bubble.js (right): https://chromiumcodereview.appspot.com/443553002/diff/160001/ui/webui/resources/js/cr/ui/bubble.js#newcode488 ui/webui/resources/js/cr/ui/bubble.js:488: case 'mousedown': On 2014/08/27 23:38:37, Dan Beam wrote: > ...
6 years, 3 months ago (2014-08-28 18:19:49 UTC) #17
Dan Beam
lgtm w/nit https://chromiumcodereview.appspot.com/443553002/diff/180001/ui/webui/resources/js/cr/ui/bubble.js File ui/webui/resources/js/cr/ui/bubble.js (right): https://chromiumcodereview.appspot.com/443553002/diff/180001/ui/webui/resources/js/cr/ui/bubble.js#newcode505 ui/webui/resources/js/cr/ui/bubble.js:505: case 'elementFocused': var target = assertInstanceof(event.target, Node); ...
6 years, 3 months ago (2014-09-06 02:27:19 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vitalyp@chromium.org/443553002/200001
6 years, 3 months ago (2014-09-06 23:13:48 UTC) #20
commit-bot: I haz the power
Committed patchset #11 (id:200001) as 8e07f620d8c0a589832a9c62b28e46eda06b24aa
6 years, 3 months ago (2014-09-07 00:12:10 UTC) #21
commit-bot: I haz the power
Patchset 11 (id:??) landed as https://crrev.com/2ee4e3d7fa891c4aee1b3462f7caa0f5cde07c72 Cr-Commit-Position: refs/heads/master@{#293645}
6 years, 3 months ago (2014-09-10 03:43:41 UTC) #22
Dan Beam
6 years, 3 months ago (2014-09-17 16:31:27 UTC) #23
Message was sent while issue was closed.
https://codereview.chromium.org/443553002/diff/200001/ui/webui/resources/js/c...
File ui/webui/resources/js/cr/ui/bubble.js (right):

https://codereview.chromium.org/443553002/diff/200001/ui/webui/resources/js/c...
ui/webui/resources/js/cr/ui/bubble.js:172: var anchor =
this.anchorNode.getBoundingClientRect();
the breakage

https://codereview.chromium.org/443553002/diff/200001/ui/webui/resources/js/c...
ui/webui/resources/js/cr/ui/bubble.js:490:
this.anchorNode.contains(assertInstanceof(event.target, Node))) {
breakage

https://codereview.chromium.org/443553002/diff/200001/ui/webui/resources/js/c...
ui/webui/resources/js/cr/ui/bubble.js:500: assert(event.target == window);
also wrong :(

Powered by Google App Engine
This is Rietveld 408576698