Allow to pass a window in WorkerDispatcher.start. (#6960)
Allow to pass a window in WorkerDispatcher.start. (#6960)

We might start the worker from places where we don't have a `window` reference, which we would make the function fail when creating the worker.

In this patch we allow to pass a window object to the function which is then used to create the worker.
bomsy/debugger.html,jbhoosreddy/debugger.html,jbhoosreddy/debugger.html,wldcordeiro/debugger.html,wldcordeiro/debugger.html,ruturajv/debugger.html,ruturajv/debugger.html,darkwing/debugger.html,bomsy/debugger.html,jbhoosreddy/debugger.html,devtools-html/debugger.html,jasonLaster/debugger.html,darkwing/debugger.html,wldcordeiro/debugger.html,devtools-html/debugger.html,ruturajv/debugger.html,devtools-html/debugger.html,devtools-html/debugger.html,ruturajv/debugger.html,bomsy/debugger.html,darkwing/debugger.html,darkwing/debugger.html,jbhoosreddy/debugger.html,devtools-html/debugger.html,devtools-html/debugger.html,ruturajv/debugger.html,jbhoosreddy/debugger.html,bomsy/debugger.html,jasonLaster/debugger.html,jasonLaster/debugger.html,ruturajv/debugger.html,devtools-html/debugger.html,wldcordeiro/debugger.html,darkwing/debugger.html,ruturajv/debugger.html,jbhoosreddy/debugger.html,bomsy/debugger.html,wldcordeiro/debugger.html,bomsy/debugger.html,jbhoosreddy/debugger.html,darkwing/debugger.html,jasonLaster/debugger.html,jasonLaster/debugger.html,wldcordeiro/debugger.html,bomsy/debugger.html,wldcordeiro/debugger.html,jasonLaster/debugger.html,darkwing/debugger.html,jasonLaster/debugger.html