<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Disable exposing IDBVersionChangeEvent and IDBKeyRange to WorkerGlobalScope when IDB-in-Workers is disabled"
href="https://bugs.webkit.org/show_bug.cgi?id=156883#c4">Comment # 4</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Disable exposing IDBVersionChangeEvent and IDBKeyRange to WorkerGlobalScope when IDB-in-Workers is disabled"
href="https://bugs.webkit.org/show_bug.cgi?id=156883">bug 156883</a>
from <span class="vcard"><a class="email" href="mailto:cdumez@apple.com" title="Chris Dumez <cdumez@apple.com>"> <span class="fn">Chris Dumez</span></a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=156883#c3">comment #3</a>)
<span class="quote">> (In reply to <a href="show_bug.cgi?id=156883#c2">comment #2</a>)
> > (In reply to <a href="show_bug.cgi?id=156883#c1">comment #1</a>)
> > > 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.</span >
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</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>