[Webkit-unassigned] [Bug 154458] New: All DOM descriptors are completely useless

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Feb 19 09:29:44 PST 2016


https://bugs.webkit.org/show_bug.cgi?id=154458

            Bug ID: 154458
           Summary: All DOM descriptors are completely useless
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML DOM
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: andrea.giammarchi at gmail.com

It is currently basically impossible to patch or polyfill anything in the DOM world in WebKit.

For instance, writing this snippet produce an unexpected result:
```js
Object.getOwnPropertyDescriptor(Element.prototype, 'id');
{get: undefined, set: undefined, enumerable: true, configurable: false} = $1

```

Accessors are all flagged as non configurable, and the worst part is that it's not possible to use them with custom elements or any other sort of element because getters and setters are unreachable (being undefined).

This makes patching HTMLAnchorElement and URL impossible in a polyfill like the following one:
https://github.com/WebReflection/url-search-params#url-search-params

so my only option would be to eventually fully replace the whole URL object (also why is every constructor with a prototype an object instead of a function I don't get it) which is way more obtrusive approach.

Bear in mind that polyfill already works with many other browsers, but I'll just push a version that gives up on WebKit which is quite sad because I love this browser.

Thanks for considering fixing this.

Best Regards

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160219/00d7ca89/attachment.html>


More information about the webkit-unassigned mailing list