For WebKit modularization, we can move Worker-related APIs from DOMWindow.idl to DOMWindowWorker.idl.
Created attachment 128650 [details] Patch
Comment on attachment 128650 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=128650&action=review > Source/WebCore/workers/DOMWindowWorker.idl:31 > +#if defined(ENABLE_WORKERS) && ENABLE_WORKERS > + attribute WorkerConstructor Worker; // Usable with the new operator > +#endif > + > +#if defined(ENABLE_SHARED_WORKERS) && ENABLE_SHARED_WORKERS > + attribute [JSCustomGetter, V8EnabledAtRuntime] SharedWorkerConstructor SharedWorker; // Usable with the new operator > +#endif Can we use Conditional here? It's prettier.
Created attachment 128685 [details] patch for landing
(In reply to comment #2) > Can we use Conditional here? It's prettier. Done.
Comment on attachment 128685 [details] patch for landing Clearing flags on attachment: 128685 Committed r108778: <http://trac.webkit.org/changeset/108778>