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

Issue 2791373002: [InputEvent] Make StaticRange immutable and move tests to wpt (Closed)

Created:
3 years, 8 months ago by chongz
Modified:
3 years, 8 months ago
Reviewers:
tkent, qyearsley, foolip
CC:
blink-reviews, blink-reviews-w3ctests_chromium.org, chromium-reviews, jeffcarp
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[InputEvent] Make StaticRange immutable and move tests to wpt According to the intent-to-ship in blink-dev there is still ongoing discussion about StaticRange on whether we should make attributes mutable. However this shouldn't block InputEvent and we should ship the immutable version first to keep interop with WebKit. This CL removed |Constructor()| |setStart()|, |setEnd()|, |toRange()| and made attributes readonly. See WebKit IDL: https://github.com/WebKit/webkit/blob/1bfaaab3e7bf61dcad32c44a1399914987f9018f/Source/WebCore/dom/StaticRange.idl StaticRange spec: http://garykac.github.io/staticrange/index.html#interface-staticrange Discussion: https://groups.google.com/a/chromium.org/d/msg/blink-dev/W-Q1yWW-zas/UrqnyVAIDQAJ BUG=707913 Review-Url: https://codereview.chromium.org/2791373002 Cr-Commit-Position: refs/heads/master@{#464665} Committed: https://chromium.googlesource.com/chromium/src/+/e2b8278dd5aaf5a6ec415aa5e7dd828f17b644f6

Patch Set 1 #

Total comments: 10

Patch Set 2 : Make attributes immutable and address foolip's comments #

Total comments: 8

Patch Set 3 : Remove StaticRange constructor #

Total comments: 2

Patch Set 4 : foolip's comment: Remove TODO #

Patch Set 5 : Fix global-interface-listing #

Messages

Total messages: 62 (38 generated)
chongz
foolip@ PTAL, thanks!
3 years, 8 months ago (2017-04-03 20:45:42 UTC) #5
tkent
Do we have a consensus that StaticRange definition is merged into the DOM spec? wpt/dom/ ...
3 years, 8 months ago (2017-04-03 21:37:36 UTC) #8
chongz
On 2017/04/03 21:37:36, tkent wrote: > Do we have a consensus that StaticRange definition is ...
3 years, 8 months ago (2017-04-03 21:47:21 UTC) #10
garykac
On 2017/04/03 21:47:21, chongz wrote: > On 2017/04/03 21:37:36, tkent wrote: > > Do we ...
3 years, 8 months ago (2017-04-03 22:08:24 UTC) #11
tkent
At this moment, StaticRange is defined only by https://garykac.github.io/staticrange/, right? We should create wpt/saticrange/. If ...
3 years, 8 months ago (2017-04-04 01:51:36 UTC) #12
foolip
As tkent suggests, a new top-level staticrange directory would be appropriate for this. https://chromium.googlesource.com/chromium/src/+/master/docs/testing/web_platform_tests.md#Adding-new-top_level-directories suggests ...
3 years, 8 months ago (2017-04-04 04:24:04 UTC) #13
foolip
Can you also add a test using idlharness.js? https://codereview.chromium.org/2791373002/diff/1/third_party/WebKit/LayoutTests/external/wpt/dom/ranges/StaticRange-constructor.html File third_party/WebKit/LayoutTests/external/wpt/dom/ranges/StaticRange-constructor.html (right): https://codereview.chromium.org/2791373002/diff/1/third_party/WebKit/LayoutTests/external/wpt/dom/ranges/StaticRange-constructor.html#newcode20 third_party/WebKit/LayoutTests/external/wpt/dom/ranges/StaticRange-constructor.html:20: }, ...
3 years, 8 months ago (2017-04-04 04:32:37 UTC) #14
chongz
On 2017/04/04 04:24:04, foolip_UTC7 wrote: > As tkent suggests, a new top-level staticrange directory would ...
3 years, 8 months ago (2017-04-06 19:02:10 UTC) #15
foolip
On 2017/04/06 19:02:10, chongz wrote: > On 2017/04/04 04:24:04, foolip_UTC7 wrote: > > As tkent ...
3 years, 8 months ago (2017-04-06 19:08:19 UTC) #16
tkent
On 2017/04/06 at 19:02:10, chongz wrote: > The wpt-importer bot seems to be failing and ...
3 years, 8 months ago (2017-04-07 03:59:17 UTC) #17
chongz
foolip@ PTAL again, thanks! Also please see updated CL description. > Can you also add ...
3 years, 8 months ago (2017-04-07 18:14:12 UTC) #28
qyearsley
LGTM, I think we can expect an export CL to be made to upstream this ...
3 years, 8 months ago (2017-04-07 20:43:23 UTC) #32
foolip
lgtm % constructor, but without the constructor none of the other tests are possible to ...
3 years, 8 months ago (2017-04-10 07:37:17 UTC) #33
qyearsley
https://codereview.chromium.org/2791373002/diff/40001/third_party/WebKit/LayoutTests/external/wpt/staticrange/staticrange-immutable.html File third_party/WebKit/LayoutTests/external/wpt/staticrange/staticrange-immutable.html (right): https://codereview.chromium.org/2791373002/diff/40001/third_party/WebKit/LayoutTests/external/wpt/staticrange/staticrange-immutable.html#newcode27 third_party/WebKit/LayoutTests/external/wpt/staticrange/staticrange-immutable.html:27: }); BTW, is it correct that we're not giving ...
3 years, 8 months ago (2017-04-11 21:18:46 UTC) #35
chongz
https://codereview.chromium.org/2791373002/diff/40001/third_party/WebKit/LayoutTests/external/wpt/staticrange/staticrange-immutable.html File third_party/WebKit/LayoutTests/external/wpt/staticrange/staticrange-immutable.html (right): https://codereview.chromium.org/2791373002/diff/40001/third_party/WebKit/LayoutTests/external/wpt/staticrange/staticrange-immutable.html#newcode27 third_party/WebKit/LayoutTests/external/wpt/staticrange/staticrange-immutable.html:27: }); On 2017/04/11 21:18:46, qyearsley wrote: > BTW, is ...
3 years, 8 months ago (2017-04-11 22:11:30 UTC) #36
qyearsley
https://codereview.chromium.org/2791373002/diff/40001/third_party/WebKit/LayoutTests/external/wpt/staticrange/staticrange-immutable.html File third_party/WebKit/LayoutTests/external/wpt/staticrange/staticrange-immutable.html (right): https://codereview.chromium.org/2791373002/diff/40001/third_party/WebKit/LayoutTests/external/wpt/staticrange/staticrange-immutable.html#newcode27 third_party/WebKit/LayoutTests/external/wpt/staticrange/staticrange-immutable.html:27: }); On 2017/04/11 at 22:11:30, chongz wrote: > On ...
3 years, 8 months ago (2017-04-11 22:31:50 UTC) #37
foolip
https://codereview.chromium.org/2791373002/diff/40001/third_party/WebKit/LayoutTests/external/wpt/staticrange/staticrange-immutable.html File third_party/WebKit/LayoutTests/external/wpt/staticrange/staticrange-immutable.html (right): https://codereview.chromium.org/2791373002/diff/40001/third_party/WebKit/LayoutTests/external/wpt/staticrange/staticrange-immutable.html#newcode27 third_party/WebKit/LayoutTests/external/wpt/staticrange/staticrange-immutable.html:27: }); On 2017/04/11 22:31:50, qyearsley wrote: > On 2017/04/11 ...
3 years, 8 months ago (2017-04-12 04:56:23 UTC) #38
chongz
> lgtm % constructor, but without the constructor none of the other tests are > ...
3 years, 8 months ago (2017-04-12 20:47:11 UTC) #41
foolip
Not much left of this now, but LGTM :) https://codereview.chromium.org/2791373002/diff/60001/third_party/WebKit/Source/core/dom/StaticRange.idl File third_party/WebKit/Source/core/dom/StaticRange.idl (right): https://codereview.chromium.org/2791373002/diff/60001/third_party/WebKit/Source/core/dom/StaticRange.idl#newcode16 third_party/WebKit/Source/core/dom/StaticRange.idl:16: ...
3 years, 8 months ago (2017-04-13 06:13:40 UTC) #46
chongz
https://codereview.chromium.org/2791373002/diff/60001/third_party/WebKit/Source/core/dom/StaticRange.idl File third_party/WebKit/Source/core/dom/StaticRange.idl (right): https://codereview.chromium.org/2791373002/diff/60001/third_party/WebKit/Source/core/dom/StaticRange.idl#newcode16 third_party/WebKit/Source/core/dom/StaticRange.idl:16: // TODO(chongz): Add back when the spec becomes stable. ...
3 years, 8 months ago (2017-04-13 17:00:16 UTC) #47
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/2791373002/80001
3 years, 8 months ago (2017-04-13 17:01:16 UTC) #50
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/430309)
3 years, 8 months ago (2017-04-13 18:05:30 UTC) #52
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/2791373002/100001
3 years, 8 months ago (2017-04-14 03:10:10 UTC) #59
commit-bot: I haz the power
3 years, 8 months ago (2017-04-14 03:15:46 UTC) #62
Message was sent while issue was closed.
Committed patchset #5 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/e2b8278dd5aaf5a6ec415aa5e7dd...

Powered by Google App Engine
This is Rietveld 408576698