RESOLVED FIXED 59178
Removed a use of markDOMObjectWrapper: Element and Document
https://bugs.webkit.org/show_bug.cgi?id=59178
Summary Removed a use of markDOMObjectWrapper: Element and Document
Geoffrey Garen
Reported 2011-04-21 23:36:58 PDT
Removed a use of markDOMObjectWrapper: Element and Document
Attachments
Patch (29.05 KB, patch)
2011-04-21 23:49 PDT, Geoffrey Garen
oliver: review+
Geoffrey Garen
Comment 1 2011-04-21 23:49:07 PDT
WebKit Review Bot
Comment 2 2011-04-22 00:12:52 PDT
WebKit Review Bot
Comment 3 2011-04-22 01:41:03 PDT
Sam Weinig
Comment 4 2011-04-22 08:10:26 PDT
Comment on attachment 90674 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=90674&action=review > LayoutTests/fast/dom/script-tests/dataset-gc.js:26 > var dataset = d.dataset; > +dataset.__proto__.customProperty = 1; // Add a property to our prototype, so it won't forward to our element. > +dataset.customProperty = 1; // Now set a property on ourselves. > +shouldBe("d.dataset.customProperty", "1"); > > -// Ensure there is a __proto__ before test. > -shouldBeNonNull("d.dataset.__proto__"); > - > -// Set __proto__ to non-starting value. (Must be null do to __proto__ restrictions). > -d.dataset.__proto__ = null; > -shouldBeNull("d.dataset.__proto__"); > - > -// Null out reference to the dataset. > dataset = null; > > gc(); > > -// Test that the null persisted the GC. > -shouldBeNull("d.dataset.__proto__"); > +// Test that the custom property persisted the GC. > +shouldBe("d.dataset.customProperty", "1"); If you are going to change this test to not use __proto__, you should ensure/assert that setting dataset.customProperty does not add an attribute to the underlying element by checking for the attribute explicitly.
Oliver Hunt
Comment 5 2011-04-22 11:17:35 PDT
Comment on attachment 90674 [details] Patch r=me, but fix the test as sam said, and dont break chrome
Geoffrey Garen
Comment 6 2011-04-22 12:57:28 PDT
Note You need to log in before you can comment on or make changes to this bug.