RESOLVED FIXED 159576
Object.defineProperty() should maintain existing getter / setter if not overridden in the new descriptor
https://bugs.webkit.org/show_bug.cgi?id=159576
Summary Object.defineProperty() should maintain existing getter / setter if not overr...
Chris Dumez
Reported 2016-07-08 12:29:06 PDT
Object.defineProperty() should maintain existing getter / setter if not overridden in the new descriptor. Currently, if the property is a has a custom getter / setter, and if the new descriptor only has a setter (or only a getter), it will clear the existing getter (or setter). This breaks search suggestions and the search button on www.iciba.com.
Attachments
Patch (11.40 KB, patch)
2016-07-08 12:39 PDT, Chris Dumez
no flags
Archive of layout-test-results from ews101 for mac-yosemite (1.02 MB, application/zip)
2016-07-08 13:19 PDT, Build Bot
no flags
Patch (11.41 KB, patch)
2016-07-08 13:20 PDT, Chris Dumez
no flags
Chris Dumez
Comment 1 2016-07-08 12:29:32 PDT
Chris Dumez
Comment 2 2016-07-08 12:39:21 PDT
Mark Lam
Comment 3 2016-07-08 12:43:41 PDT
Comment on attachment 283191 [details] Patch r=me
Build Bot
Comment 4 2016-07-08 13:18:57 PDT
Comment on attachment 283191 [details] Patch Attachment 283191 [details] did not pass mac-ews (mac): Output: http://webkit-queues.webkit.org/results/1648463 New failing tests: js/dom/customAccessor-defineProperty_setterOnly.html js/dom/customAccessor-defineProperty.html js/dom/customAccessor-defineProperty_getterOnly.html
Build Bot
Comment 5 2016-07-08 13:19:02 PDT
Created attachment 283193 [details] Archive of layout-test-results from ews101 for mac-yosemite The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews101 Port: mac-yosemite Platform: Mac OS X 10.10.5
Chris Dumez
Comment 6 2016-07-08 13:20:59 PDT
Chris Dumez
Comment 7 2016-07-08 13:52:56 PDT
Comment on attachment 283194 [details] Patch Clearing flags on attachment: 283194 Committed r203004: <http://trac.webkit.org/changeset/203004>
Chris Dumez
Comment 8 2016-07-08 13:53:01 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.