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

Issue 1837823003: [Binding] Add [OverrideBuiltins] label onto HTMLDocument interface (Closed)

Created:
4 years, 8 months ago by peria
Modified:
4 years, 7 months ago
Reviewers:
haraken, Yuki
CC:
chromium-reviews, blink-reviews-html_chromium.org, sof, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, blink-reviews-bindings_chromium.org, blink-reviews, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add [OverrideBuiltins] label onto HTMLDocument interface. This CL also removes special handling of named properties using V8 script controller, which is no longer needed. Currently, we have no general routines to work for [Unforgeable] on [OverrideBuiltins] interface, and "location" in "HTMLDocument" is the only one which meets the situation. So now, we handle it as an edge case of named property. Spec: https://html.spec.whatwg.org/multipage/dom.html#dom-document-namedItem-which Updated a test expectation; Chrome has been FAILing it, while IE, FF, and Safari PASS it. BUG=611632 Committed: https://crrev.com/09649cf329fd0644f50624b80f6a2f9c564dcb2d Cr-Commit-Position: refs/heads/master@{#395570}

Patch Set 1 : #

Total comments: 10

Patch Set 2 : #

Total comments: 8

Patch Set 3 : #

Messages

Total messages: 49 (36 generated)
peria
PTL. This CL follows the discussion in crbug.com/611632
4 years, 7 months ago (2016-05-23 07:55:58 UTC) #33
Yuki
LGTM. Thanks for working on this. https://codereview.chromium.org/1837823003/diff/420001/third_party/WebKit/Source/bindings/core/v8/custom/V8HTMLDocumentCustom.cpp File third_party/WebKit/Source/bindings/core/v8/custom/V8HTMLDocumentCustom.cpp (right): https://codereview.chromium.org/1837823003/diff/420001/third_party/WebKit/Source/bindings/core/v8/custom/V8HTMLDocumentCustom.cpp#newcode9 third_party/WebKit/Source/bindings/core/v8/custom/V8HTMLDocumentCustom.cpp:9: #include "bindings/core/v8/V8Location.h" Seems ...
4 years, 7 months ago (2016-05-23 08:32:44 UTC) #34
peria
https://codereview.chromium.org/1837823003/diff/420001/third_party/WebKit/Source/bindings/core/v8/custom/V8HTMLDocumentCustom.cpp File third_party/WebKit/Source/bindings/core/v8/custom/V8HTMLDocumentCustom.cpp (right): https://codereview.chromium.org/1837823003/diff/420001/third_party/WebKit/Source/bindings/core/v8/custom/V8HTMLDocumentCustom.cpp#newcode9 third_party/WebKit/Source/bindings/core/v8/custom/V8HTMLDocumentCustom.cpp:9: #include "bindings/core/v8/V8Location.h" On 2016/05/23 08:32:43, Yuki wrote: > Seems ...
4 years, 7 months ago (2016-05-23 08:46:52 UTC) #35
haraken
Mostly looks good. https://codereview.chromium.org/1837823003/diff/440001/third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp File third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp (left): https://codereview.chromium.org/1837823003/diff/440001/third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp#oldcode515 third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp:515: if (prototype->IsObject()) { Would you help ...
4 years, 7 months ago (2016-05-23 21:50:17 UTC) #36
Yuki
https://codereview.chromium.org/1837823003/diff/440001/third_party/WebKit/Source/bindings/core/v8/custom/V8HTMLDocumentCustom.cpp File third_party/WebKit/Source/bindings/core/v8/custom/V8HTMLDocumentCustom.cpp (right): https://codereview.chromium.org/1837823003/diff/440001/third_party/WebKit/Source/bindings/core/v8/custom/V8HTMLDocumentCustom.cpp#newcode60 third_party/WebKit/Source/bindings/core/v8/custom/V8HTMLDocumentCustom.cpp:60: AtomicString atomicName(toCoreAtomicString(name.As<v8::String>())); On 2016/05/23 21:50:17, haraken wrote: > > ...
4 years, 7 months ago (2016-05-24 03:06:19 UTC) #37
peria
https://codereview.chromium.org/1837823003/diff/440001/third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp File third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp (left): https://codereview.chromium.org/1837823003/diff/440001/third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp#oldcode515 third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp:515: if (prototype->IsObject()) { On 2016/05/23 21:50:16, haraken wrote: > ...
4 years, 7 months ago (2016-05-24 07:00:12 UTC) #38
haraken
LGTM The interceptor is very performance-sensitive, so let's keep watching the perf bot after landing ...
4 years, 7 months ago (2016-05-24 07:03:23 UTC) #39
peria
Thank you for such a quick response. I'll check the perf.
4 years, 7 months ago (2016-05-24 07:04:43 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1837823003/460001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1837823003/460001
4 years, 7 months ago (2016-05-24 07:05:09 UTC) #43
commit-bot: I haz the power
Committed patchset #3 (id:460001)
4 years, 7 months ago (2016-05-24 11:40:01 UTC) #45
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/09649cf329fd0644f50624b80f6a2f9c564dcb2d Cr-Commit-Position: refs/heads/master@{#395570}
4 years, 7 months ago (2016-05-24 11:41:51 UTC) #47
peria
A revert of this CL (patchset #3 id:460001) has been created in https://codereview.chromium.org/2011553003/ by peria@chromium.org. ...
4 years, 7 months ago (2016-05-25 07:29:21 UTC) #48
peria
4 years, 7 months ago (2016-05-25 07:41:29 UTC) #49
Message was sent while issue was closed.
On 2016/05/25 07:29:21, peria wrote:
> A revert of this CL (patchset #3 id:460001) has been created in
> https://codereview.chromium.org/2011553003/ by mailto:peria@chromium.org.
> 
> The reason for reverting is: performance regression
> BUG=614559.

This CL regressed micro benchmarks which we're tackling for 2x-3x.
For example, 10^6 createElement() take 301ms-->950ms, and
10^6 createElement() + setAttribute() take 1388ms-->2841ms on my machine.
These regressions are unacceptablly large.

Powered by Google App Engine
This is Rietveld 408576698