haraken@, can you do an initial review for the bindings change and/or suggest an alternate ...
4 years, 8 months ago
(2016-04-21 23:55:18 UTC)
#2
haraken@, can you do an initial review for the bindings change and/or suggest an
alternate reviewer?
(I'll still need an API_OWNERS review as this technically unships an API, but
it's scoped to SW and would never have worked usefully.)
4 years, 8 months ago
(2016-04-22 00:16:26 UTC)
#4
https://codereview.chromium.org/1908263002/diff/1/third_party/WebKit/Source/m...
File third_party/WebKit/Source/modules/mediasource/URLMediaSource.idl (right):
https://codereview.chromium.org/1908263002/diff/1/third_party/WebKit/Source/m...
third_party/WebKit/Source/modules/mediasource/URLMediaSource.idl:34:
[Exposed=(Window,DedicatedWorker,SharedWorker), CallWith=ExecutionContext]
static DOMString? createObjectURL(MediaSource source);
On 2016/04/22 00:10:59, haraken wrote:
>
> You're changing the exposed policy from [Exposed=(Window,Worker)] on URL.idl
to
> [Exposed=(Window,DedicatedWorker,SharedWorker)]. This is expected, right?
Yes, just for the partial interface defined in File API, though. This
corresponds to this spec change:
https://github.com/w3c/FileAPI/commit/b9c2275df53cf3a808f1f272f3d6134d1b920549
This should explicitly exclude ServiceWorker and future things like
CompositorWorker.
The partials for MediaSource and MediaStream no longer exist in specs, but the
same logic should apply - the minting URLs in SWs doesn't make sense. Should
loop in OWNERS for those modules as a sanity check?
4 years, 8 months ago
(2016-04-22 00:30:59 UTC)
#5
On 2016/04/22 00:16:26, jsbell wrote:
>
https://codereview.chromium.org/1908263002/diff/1/third_party/WebKit/Source/m...
> File third_party/WebKit/Source/modules/mediasource/URLMediaSource.idl (right):
>
>
https://codereview.chromium.org/1908263002/diff/1/third_party/WebKit/Source/m...
> third_party/WebKit/Source/modules/mediasource/URLMediaSource.idl:34:
> [Exposed=(Window,DedicatedWorker,SharedWorker), CallWith=ExecutionContext]
> static DOMString? createObjectURL(MediaSource source);
> On 2016/04/22 00:10:59, haraken wrote:
> >
> > You're changing the exposed policy from [Exposed=(Window,Worker)] on URL.idl
> to
> > [Exposed=(Window,DedicatedWorker,SharedWorker)]. This is expected, right?
>
> Yes, just for the partial interface defined in File API, though. This
> corresponds to this spec change:
>
> https://github.com/w3c/FileAPI/commit/b9c2275df53cf3a808f1f272f3d6134d1b920549
>
> This should explicitly exclude ServiceWorker and future things like
> CompositorWorker.
>
> The partials for MediaSource and MediaStream no longer exist in specs, but the
> same logic should apply - the minting URLs in SWs doesn't make sense. Should
> loop in OWNERS for those modules as a sanity check?
Thanks for the clarification! Makes sense.
https://codereview.chromium.org/1908263002/diff/1/third_party/WebKit/Source/core/fileapi/URLFileAPI.cpp File third_party/WebKit/Source/core/fileapi/URLFileAPI.cpp (right): https://codereview.chromium.org/1908263002/diff/1/third_party/WebKit/Source/core/fileapi/URLFileAPI.cpp#newcode19 third_party/WebKit/Source/core/fileapi/URLFileAPI.cpp:19: if (!executionContext) assert instead? i.e., can the current execution ...
4 years, 8 months ago
(2016-04-22 06:19:29 UTC)
#7
On 2016/04/22 00:16:26, jsbell wrote: > The partials for MediaSource and MediaStream no longer exist ...
4 years, 8 months ago
(2016-04-22 18:10:47 UTC)
#8
On 2016/04/22 00:16:26, jsbell wrote:
> The partials for MediaSource and MediaStream no longer exist in specs, but the
> same logic should apply - the minting URLs in SWs doesn't make sense. Should
> loop in OWNERS for those modules as a sanity check?
I was incorrect about the state of MediaSource and filed a spec issue:
https://github.com/w3c/media-source/issues/67
jsbell
https://codereview.chromium.org/1908263002/diff/1/third_party/WebKit/Source/core/fileapi/URLFileAPI.cpp File third_party/WebKit/Source/core/fileapi/URLFileAPI.cpp (right): https://codereview.chromium.org/1908263002/diff/1/third_party/WebKit/Source/core/fileapi/URLFileAPI.cpp#newcode19 third_party/WebKit/Source/core/fileapi/URLFileAPI.cpp:19: if (!executionContext) On 2016/04/22 06:19:29, sof wrote: > assert ...
4 years, 8 months ago
(2016-04-22 18:14:34 UTC)
#9
wolenetz@ - can you review the modules/mediasource change? tommi@ - can you review the modules/mediastream ...
4 years, 8 months ago
(2016-04-22 18:19:11 UTC)
#11
wolenetz@ - can you review the modules/mediasource change?
tommi@ - can you review the modules/mediastream change?
See previous comments on the CL for a little more context.
jsbell
Description was changed from ========== Don't expose URL.createObjectURL and revokeObjectURL to Service Workers Per FileAPI[1] ...
4 years, 8 months ago
(2016-04-22 18:21:14 UTC)
#12
Description was changed from
==========
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.
Note that the [Exposed] attributes are applied directly to the
interface members as they appear to be ignored on the partial
interface. (Bug?) Also, a bindings template change was needed to
ensure the method supporting the partial interface / static method /
conditional exposure combination was exported for use in modules.
[1] https://w3c.github.io/FileAPI/#creating-revoking
[2] https://github.com/slightlyoff/ServiceWorker/issues/688
BUG=604951
==========
to
==========
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.
Note that the [Exposed] attributes are applied directly to the
interface members as they appear to be ignored on the partial
interface. (Bug?) Also, a bindings template change was needed to
ensure the method supporting the partial interface / static method /
conditional exposure combination was exported for use in modules.
[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
BUG=604951
==========
tommi (sloooow) - chröme
lgtm
4 years, 8 months ago
(2016-04-25 10:20:26 UTC)
#13
lgtm
jsbell
FYI, I'm splitting the URLFileAPI-refactor part of this CL out on its own: https://codereview.chromium.org/1921063002 I'll ...
4 years, 8 months ago
(2016-04-25 20:43:49 UTC)
#14
FYI, I'm splitting the URLFileAPI-refactor part of this CL out on its own:
https://codereview.chromium.org/1921063002
I'll rebase this one to be just the [Exposed] changes.
jsbell
Description was changed from ========== Don't expose URL.createObjectURL and revokeObjectURL to Service Workers Per FileAPI[1] ...
4 years, 8 months ago
(2016-04-25 20:47:48 UTC)
#15
Description was changed from
==========
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.
Note that the [Exposed] attributes are applied directly to the
interface members as they appear to be ignored on the partial
interface. (Bug?) Also, a bindings template change was needed to
ensure the method supporting the partial interface / static method /
conditional exposure combination was exported for use in modules.
[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
BUG=604951
==========
to
==========
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.
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
BUG=604951
==========
wolenetz
lgtm (mediasource) jsbell@ : is there a crbug tracking the createFor() in URLFileAPI.idl? MediaSource might ...
4 years, 7 months ago
(2016-05-02 19:22:03 UTC)
#16
lgtm (mediasource)
jsbell@ : is there a crbug tracking the createFor() in URLFileAPI.idl?
MediaSource might need similar (though currently
(https://github.com/w3c/media-source/issues/10#issuecomment-201024017) it looks
like lack of createFor() won't block MSE spec V1 reaching PR.
jsbell
On 2016/05/02 19:22:03, wolenetz wrote: > lgtm (mediasource) > jsbell@ : is there a crbug ...
4 years, 7 months ago
(2016-05-02 20:24:41 UTC)
#17
Description was changed from ========== Don't expose URL.createObjectURL and revokeObjectURL to Service Workers Per FileAPI[1] ...
4 years, 7 months ago
(2016-05-02 20:25:00 UTC)
#18
Description was changed from
==========
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.
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
BUG=604951
==========
to
==========
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.
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
BUG=604951,608460
==========
wolenetz
On 2016/05/02 20:24:41, jsbell wrote: > On 2016/05/02 19:22:03, wolenetz wrote: > > lgtm (mediasource) ...
4 years, 7 months ago
(2016-05-02 20:27:26 UTC)
#19
On 2016/05/02 20:24:41, jsbell wrote:
> On 2016/05/02 19:22:03, wolenetz wrote:
> > lgtm (mediasource)
> > jsbell@ : is there a crbug tracking the createFor() in URLFileAPI.idl?
>
> Filed one: https://bugs.chromium.org/p/chromium/issues/detail?id=608460
Thank you
jsbell
Description was changed from ========== Don't expose URL.createObjectURL and revokeObjectURL to Service Workers Per FileAPI[1] ...
4 years, 7 months ago
(2016-05-02 21:08:45 UTC)
#20
Description was changed from
==========
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.
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
BUG=604951,608460
==========
to
==========
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.
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/CYvfMoey...
BUG=604951,608460
==========
jsbell
Description was changed from ========== Don't expose URL.createObjectURL and revokeObjectURL to Service Workers Per FileAPI[1] ...
4 years, 7 months ago
(2016-05-09 23:03:57 UTC)
#21
yhirano@ - can you review the fetch test changes? This makes thorough/scheme-blob*.html a no-op in ...
4 years, 7 months ago
(2016-05-10 19:00:55 UTC)
#23
yhirano@ - can you review the fetch test changes?
This makes thorough/scheme-blob*.html a no-op in serviceworker contexts. The
obvious alternatives are to not auto-generate thorough/scheme-blob or to teach
the generator to skip the serviceworker versions, which seem worse, but I'm
flexible.
yhirano
lgtm Fetch tests are written in the service worker layout tests style[1]. Please keep the ...
4 years, 7 months ago
(2016-05-11 01:54:05 UTC)
#24
> Did we ever figure out clang-format settings for that style? (since I suspect I'll ...
4 years, 7 months ago
(2016-05-12 04:49:15 UTC)
#30
> Did we ever figure out clang-format settings for that style? (since I suspect
I'll never get emacs to do it correctly...)
falken@, do we have any tool support for the service worker laytout tests style?
falken
On 2016/05/12 04:49:15, yhirano wrote: > > Did we ever figure out clang-format settings for ...
4 years, 7 months ago
(2016-05-12 05:02:14 UTC)
#31
On 2016/05/12 04:49:15, yhirano wrote:
> > Did we ever figure out clang-format settings for that style? (since I
suspect
> I'll never get emacs to do it correctly...)
>
> falken@, do we have any tool support for the service worker laytout tests
style?
Unfortunately, no.
jsbell
The CQ bit was checked by jsbell@chromium.org
4 years, 7 months ago
(2016-05-12 16:34:52 UTC)
#32
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1908263002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1908263002/100001
4 years, 7 months ago
(2016-05-12 16:35:23 UTC)
#34
Description was changed from ========== Don't expose URL.createObjectURL and revokeObjectURL to Service Workers Per FileAPI[1] ...
4 years, 7 months ago
(2016-05-12 16:39:07 UTC)
#35
Message was sent while issue was closed.
Description was changed from
==========
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/CYvfMoey...
BUG=604951,608460
==========
to
==========
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/CYvfMoey...
BUG=604951,608460
==========
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 7 months ago
(2016-05-12 16:39:08 UTC)
#36
Message was sent while issue was closed.
Committed patchset #6 (id:100001)
commit-bot: I haz the power
Description was changed from ========== Don't expose URL.createObjectURL and revokeObjectURL to Service Workers Per FileAPI[1] ...
4 years, 7 months ago
(2016-05-12 16:40:37 UTC)
#37
Issue 1908263002: Don't expose URL.createObjectURL and revokeObjectURL to Service Workers
(Closed)
Created 4 years, 8 months ago by jsbell
Modified 4 years, 7 months ago
Reviewers: haraken, sof, wolenetz, tommi (sloooow) - chröme, yhirano, Rick Byers, falken
Base URL: https://chromium.googlesource.com/chromium/src.git@master
Comments: 16