Bug 104263
| Summary: | DOM bindings do not work with delete | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Erik Arvidsson <arv> |
| Component: | DOM | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | ap, oliver, sam, webkit.arunp |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Erik Arvidsson
For some reason delete does not work to remove properties from the dom wrappers (both JSC and V8)
assert(window.hasOwnProperty('NodeList'));
delete window.NodeList;
assert(!window.hasOwnProperty('NodeList'));
assert(Element.prototype.hasOwnProperty('focus'));
delete Element.prototype.focus;
assert(!Element.prototype.hasOwnProperty('focus'));
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |