<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&#64;apple.com" title="Chris Dumez &lt;cdumez&#64;apple.com&gt;"> <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">&gt; (In reply to <a href="show_bug.cgi?id=156883#c2">comment #2</a>)
&gt; &gt; (In reply to <a href="show_bug.cgi?id=156883#c1">comment #1</a>)
&gt; &gt; &gt; Chris, you're pretty darned knowledgeable in this area - What can we do?
&gt; &gt; 
&gt; &gt; The easy way to do this right now would be to do:
&gt; &gt; 1. Drop the &quot;Exposed=(Window,Worker)&quot; from IDBVersionChangeEvent and
&gt; &gt; IDBKeyRange so that they are only exposed to Window by default.
&gt; &gt; 
&gt; &gt; then
&gt; &gt; 
&gt; &gt; 2. Add explicit Constructor attributes on WorkerGlobalScope (for
&gt; &gt; IDBVersionChangeEvent and IDBKeyRange) that are either
&gt; &gt; [Conditional=INDEXED_DATABASE] or [EnabledAtRuntime=FetchAPI] depending if
&gt; &gt; IDB-in-Workers is a compile-time or a runtime thing.
&gt; 
&gt; Please disregard the INDEXED_DATABASE / FetchAPI I used in my example. I
&gt; 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>