Closed Bug 903770 Opened 11 years ago Closed 10 years ago

Achieve parity with the main thread for DOM objects.

Categories

(Core :: DOM: Workers, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla29

People

(Reporter: khuey, Assigned: khuey)

References

(Blocks 1 open bug)

Details

(Keywords: meta, Whiteboard: [qa-])

Hang things off this bug that are needed for the same DOM code to work on both the main thread and worker threads.
(In reply to Kyle Huey [:khuey] (khuey@mozilla.com) from comment #0)
> Hang things off this bug that are needed for the same DOM code to work on
> both the main thread and worker threads.
Just to be sure I understand, does this mean it'll be possible to do something like:
    DOMImplementation.createHTMLDocument()
in a worker?

The WebWorker spec has been (overly!) restrictive on that topic so far:
"The DOM APIs — specifically, all the interfaces defined in the DOM specification other than exceptions — must not be exposed to JavaScript if the JavaScript global environment is a worker environment."
http://www.whatwg.org/specs/web-apps/current-work/multipage/workers.html#apis-available-to-workers

It'd be lovely if that changed :-)
(In reply to David Bruant from comment #1)
> (In reply to Kyle Huey [:khuey] (khuey@mozilla.com) from comment #0)
> > Hang things off this bug that are needed for the same DOM code to work on
> > both the main thread and worker threads.
> Just to be sure I understand, does this mean it'll be possible to do
> something like:
>     DOMImplementation.createHTMLDocument()
> in a worker?

No.  I'm using DOM to mean "APIs exposed to webpages" here, not "nodes".  This bug is about getting the infrastructure in place to write implementations, not to implement specific features.
Depends on: 921485
I'm going to declare victory here.
Assignee: nobody → khuey
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla29
Whiteboard: [qa-]
You need to log in before you can comment on or make changes to this bug.