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

Issue 1778683005: Drop remaining [LegacyInterfaceTypeChecking] for Selection (Closed)

Created:
4 years, 9 months ago by philipj_slow
Modified:
4 years, 9 months ago
Reviewers:
yoichio, Rick Byers
CC:
chromium-reviews, blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Drop remaining [LegacyInterfaceTypeChecking] for Selection With [LegacyInterfaceTypeChecking], any invalid type is treated as null, and the risk of this change is therefore bounded by the SelectionCollapseNull (also hit by setPosition) and SelectionSetBaseAndExtentNull use counters: https://www.chromestatus.com/metrics/feature/timeline/popularity/1083 https://www.chromestatus.com/metrics/feature/timeline/popularity/1084 Unfortunately chromestatus.com is not updating, but rbyers@ has checked the stable channel data and reports usage as ~0 for both. The majority of this tiny usage still ought to be actual null input, in cases like collapse(something.firstChild). The behavior of other engines was tested with this test: http://software.hixie.ch/utilities/js/live-dom-viewer/saved/3970 Edge already throws for non-Node-or-null argumens to collapse and setBaseAndExtent, but doesn't support setPosition. Gecko already throws for collapse, but doesn't support setPosition or setBaseAndExtent. Overall, this ought to be very low risk. BUG=561338 R=yoichio@chromium.org,rbyers@chromium.org Committed: https://crrev.com/4dfafe2f97caabcb7c11ae3c8d6907b0db3bb215 Cr-Commit-Position: refs/heads/master@{#380339}

Patch Set 1 #

Patch Set 2 : update tests #

Patch Set 3 : fix more tests #

Messages

Total messages: 16 (8 generated)
philipj_slow
PTAL. The bots are a bit grumpy right now but I think I got all ...
4 years, 9 months ago (2016-03-09 12:55:34 UTC) #4
Rick Byers
LGTM, thanks for driving this!
4 years, 9 months ago (2016-03-09 18:25:34 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1778683005/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1778683005/40001
4 years, 9 months ago (2016-03-09 18:26:41 UTC) #7
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-09 19:30:02 UTC) #9
yoichio
lgtm
4 years, 9 months ago (2016-03-10 02:29:11 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1778683005/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1778683005/40001
4 years, 9 months ago (2016-03-10 04:39:42 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 9 months ago (2016-03-10 04:44:51 UTC) #14
commit-bot: I haz the power
4 years, 9 months ago (2016-03-10 04:46:15 UTC) #16
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/4dfafe2f97caabcb7c11ae3c8d6907b0db3bb215
Cr-Commit-Position: refs/heads/master@{#380339}

Powered by Google App Engine
This is Rietveld 408576698