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

Issue 2666943003: WIP: Fix WebIDL spec violation: prototype names end with "Prototype". (Closed)

Created:
3 years, 10 months ago by Matt Giuca
Modified:
3 years, 10 months ago
CC:
blink-reviews, blink-reviews-bindings_chromium.org, chrome-apps-syd-reviews_chromium.org, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

WIP: Fix WebIDL spec violation: prototype names end with "Prototype". Unfortunately, this can't land (DO NOT SUBMIT) because it breaks the garbage collection due to an outstanding issue that was noted in a TODO. Adds the word "Prototype" to the end of all prototype names, and also explicitly sets the name of the instances *without* the word "Prototype" (otherwise they would get the word "Prototype" too). Setting the name of the instance breaks GC for reasons I don't understand. This is required by https://heycam.github.io/webidl/#interface-prototype-object and checked by idlharness tests. BUG=687431

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -5 lines) Patch
M third_party/WebKit/Source/bindings/core/v8/V8DOMConfiguration.cpp View 2 chunks +13 lines, -5 lines 2 comments Download

Messages

Total messages: 12 (5 generated)
Matt Giuca
yukishiino: Please have a look at this (WIP) CL. Feel free to take it over ...
3 years, 10 months ago (2017-02-01 02:48:07 UTC) #2
haraken
https://codereview.chromium.org/2666943003/diff/1/third_party/WebKit/Source/bindings/core/v8/V8DOMConfiguration.cpp File third_party/WebKit/Source/bindings/core/v8/V8DOMConfiguration.cpp (right): https://codereview.chromium.org/2666943003/diff/1/third_party/WebKit/Source/bindings/core/v8/V8DOMConfiguration.cpp#newcode622 third_party/WebKit/Source/bindings/core/v8/V8DOMConfiguration.cpp:622: // fast/dom/minor-dom-gc.html fails if we set the class string). ...
3 years, 10 months ago (2017-02-01 03:57:12 UTC) #4
Matt Giuca
https://codereview.chromium.org/2666943003/diff/1/third_party/WebKit/Source/bindings/core/v8/V8DOMConfiguration.cpp File third_party/WebKit/Source/bindings/core/v8/V8DOMConfiguration.cpp (right): https://codereview.chromium.org/2666943003/diff/1/third_party/WebKit/Source/bindings/core/v8/V8DOMConfiguration.cpp#newcode622 third_party/WebKit/Source/bindings/core/v8/V8DOMConfiguration.cpp:622: // fast/dom/minor-dom-gc.html fails if we set the class string). ...
3 years, 10 months ago (2017-02-01 03:59:47 UTC) #5
Yuki
+jochen@ Before this CL, a div element has no own property. Object.getOwnPropertyNames(div) => [] // ...
3 years, 10 months ago (2017-02-02 13:05:51 UTC) #7
jochen (gone - plz use gerrit)
the restriction is that the object must be unchanged. I guess that setting the property ...
3 years, 10 months ago (2017-02-03 06:29:43 UTC) #9
Yuki
On 2017/02/03 06:29:43, jochen (travelling til Feb 4) wrote: > the restriction is that the ...
3 years, 10 months ago (2017-02-03 06:34:03 UTC) #10
Matt Giuca
3 years, 10 months ago (2017-02-06 00:07:18 UTC) #12
Message was sent while issue was closed.
OK looks like this can be closed now.

Yuki's comment change CL:
https://codereview.chromium.org/2669263004/

Powered by Google App Engine
This is Rietveld 408576698