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

Issue 1785663002: Make setBaseAndExtent's arguments non-optional (Closed)

Created:
4 years, 9 months ago by philipj_slow
Modified:
4 years, 8 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

Make setBaseAndExtent's arguments non-optional These arguments are already non-optional in Edge. Firefox doesn't support setBaseAndExtent. In WebKit the arguments are still optional. For the first three arguments, the risk is bounded by the SelectionSetBaseAndExtentNull use counter, which rbyers@ reports as ~0% on the stable channel. If the fourth argument is omitted the use counter wouldn't catch that, however. (The use counter can also be triggered by explicitly passing null, which is likely the most common case.) BUG=460722 Committed: https://crrev.com/314d573dc2b6818487d403462c72476b8ba046ea Cr-Commit-Position: refs/heads/master@{#388460}

Patch Set 1 #

Patch Set 2 : fix more tests #

Patch Set 3 : rebase #

Total comments: 2

Patch Set 4 : use collapse() where possible (one test) #

Messages

Total messages: 23 (10 generated)
philipj_slow
yoichio@, PTAL. rbyers@, there is some compat risk here, but it seems worth trying to ...
4 years, 9 months ago (2016-03-11 10:44:22 UTC) #5
Rick Byers
On 2016/03/11 10:44:22, philipj_UTC7 wrote: > yoichio@, PTAL. > > rbyers@, there is some compat ...
4 years, 9 months ago (2016-03-11 15:12:46 UTC) #6
Rick Byers
Might as well give my LGTM here, but please wait for yoichio@ to comment.
4 years, 9 months ago (2016-03-11 15:14:02 UTC) #7
philipj_slow
On 2016/03/11 15:12:46, Rick Byers wrote: > On 2016/03/11 10:44:22, philipj_UTC7 wrote: > > yoichio@, ...
4 years, 9 months ago (2016-03-11 18:55:58 UTC) #8
philipj_slow
Ping yoichio@
4 years, 8 months ago (2016-04-18 22:23:19 UTC) #9
yoichio
https://codereview.chromium.org/1785663002/diff/40001/third_party/WebKit/LayoutTests/editing/execCommand/apply-inline-style-to-element-with-no-renderer-crash.html File third_party/WebKit/LayoutTests/editing/execCommand/apply-inline-style-to-element-with-no-renderer-crash.html (left): https://codereview.chromium.org/1785663002/diff/40001/third_party/WebKit/LayoutTests/editing/execCommand/apply-inline-style-to-element-with-no-renderer-crash.html#oldcode28 third_party/WebKit/LayoutTests/editing/execCommand/apply-inline-style-to-element-with-no-renderer-crash.html:28: window.getSelection().setBaseAndExtent(input, 4); setBaseAndExtent(node, offset) should be collapse(node, offset).
4 years, 8 months ago (2016-04-19 07:21:16 UTC) #10
philipj_slow
I've switched from setBaseAndExtent to collapse in fast/css-generated-content/crash-selection-editing-removes-pseudo.html, the only test where switching didn't break ...
4 years, 8 months ago (2016-04-19 12:34:32 UTC) #11
yoichio
On 2016/04/19 12:34:32, philipj_slow wrote: > I've switched from setBaseAndExtent to collapse in > fast/css-generated-content/crash-selection-editing-removes-pseudo.html, ...
4 years, 8 months ago (2016-04-20 01:32:00 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1785663002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1785663002/60001
4 years, 8 months ago (2016-04-20 07:56:26 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/214203)
4 years, 8 months ago (2016-04-20 09:27:53 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1785663002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1785663002/60001
4 years, 8 months ago (2016-04-20 09:29:52 UTC) #19
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 8 months ago (2016-04-20 10:16:16 UTC) #21
commit-bot: I haz the power
4 years, 8 months ago (2016-04-22 19:22:11 UTC) #23
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/314d573dc2b6818487d403462c72476b8ba046ea
Cr-Commit-Position: refs/heads/master@{#388460}

Powered by Google App Engine
This is Rietveld 408576698