Bug 162932 - Update DataTransfer.prototype.types to a frozen array that updates on changes
Summary: Update DataTransfer.prototype.types to a frozen array that updates on changes
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-04 13:23 PDT by Domenic Denicola
Modified: 2016-10-04 13:23 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Domenic Denicola 2016-10-04 13:23:39 PDT
In https://github.com/whatwg/html/issues/11#issuecomment-249155408 we discussed aligning all browsers on a new model for DataTransfer.prototype.types. It has the following changes from WebKit's model:

- Return a FrozenArray, instead of an array
- Keep returning the same object until changes are made, instead of returning a new object each time. (This helps make dataTransfer.types === dataTransfer.types, which is false in Chrome currently.)

The spec pull request is up at https://github.com/whatwg/html/pull/1860, with web platform tests (unfortunately manual) available at https://github.com/w3c/web-platform-tests/pull/3871