commit | 9e232c512c962a7aecc85e07f7a48a4735dc7a25 | [log] [tgz] |
---|---|---|
author | jsbell <jsbell@chromium.org> | Thu May 12 16:38:57 2016 |
committer | Commit bot <commit-bot@chromium.org> | Thu May 12 16:40:27 2016 |
tree | 5be3827fe1502e022ff2e5807f4b83f4bf7f4575 | |
parent | 49ac8d40f0a2d24f85a7e5483045474e8d8eb617 [diff] |
Don't expose URL.createObjectURL and revokeObjectURL to Service Workers Per FileAPI[1] which was updated based on Service Worker discussion[2], minting blob URLs should not be possible within SWs. A bug has been filed against MediaSource[3] to update the IDL there (following the same logic), and mediastream's createObjectURL is no longer present in the standard. Regardless, the overloads should never execute in Service Workers as those types (MediaStream, MediaSource) are not exposed in that context. Note that the [Exposed] attributes are applied directly to the interface members as they appear to be ignored on the partial interface. (Bug?) [1] https://w3c.github.io/FileAPI/#creating-revoking [2] https://github.com/slightlyoff/ServiceWorker/issues/688 [3] https://github.com/w3c/media-source/issues/67 Intent Thread: https://groups.google.com/a/chromium.org/d/msg/blink-dev/HuA7Ng9U0oc/CYvfMoeyBwAJ BUG=604951,608460 Review-Url: https://codereview.chromium.org/1908263002 Cr-Commit-Position: refs/heads/master@{#393271}