[Webkit-unassigned] [Bug 156883] Disable exposing IDBVersionChangeEvent and IDBKeyRange to WorkerGlobalScope when IDB-in-Workers is disabled
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Apr 21 18:38:40 PDT 2016
https://bugs.webkit.org/show_bug.cgi?id=156883
--- Comment #4 from Chris Dumez <cdumez at apple.com> ---
(In reply to comment #3)
> (In reply to comment #2)
> > (In reply to comment #1)
> > > Chris, you're pretty darned knowledgeable in this area - What can we do?
> >
> > The easy way to do this right now would be to do:
> > 1. Drop the "Exposed=(Window,Worker)" from IDBVersionChangeEvent and
> > IDBKeyRange so that they are only exposed to Window by default.
> >
> > then
> >
> > 2. Add explicit Constructor attributes on WorkerGlobalScope (for
> > IDBVersionChangeEvent and IDBKeyRange) that are either
> > [Conditional=INDEXED_DATABASE] or [EnabledAtRuntime=FetchAPI] depending if
> > IDB-in-Workers is a compile-time or a runtime thing.
>
> Please disregard the INDEXED_DATABASE / FetchAPI I used in my example. I
> assume you have a flag for IDB-In-Workers already.
Ok, I think I found your flag so basically
2. add:
[Conditional=INDEXED_DATABASE, EnabledAtRuntime=IndexedDBWorkers] attribute IDBVersionChangeEventConstructor IDBVersionChangeEvent;
[Conditional=INDEXED_DATABASE, EnabledAtRuntime=IndexedDBWorkers] attribute IDBKeyRangeConstructor IDBKeyRange;
to WorkerGlobalScope.idl
--
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/20160422/555b8516/attachment.html>
More information about the webkit-unassigned
mailing list