Closed Bug 773160 Opened 13 years ago Closed 13 years ago

expose a reduced 'navigator' object to frameworker workers

Categories

(Firefox Graveyard :: SocialAPI, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 17

People

(Reporter: markh, Assigned: markh)

References

Details

Attachments

(1 file, 2 obsolete files)

From https://bugzilla.mozilla.org/show_bug.cgi?id=770679#c2, we should not expose the full 'navigator' object to workers. http://www.whatwg.org/specs/web-apps/current-work/multipage/workers.html#the-workernavigator-object lists what a real DOM worker gets, and our Frameworker should restrict things to this list.
Attachment #641373 - Flags: review?(gavin.sharp)
This patch adds __exposedProps__ to the navigator object to prevent warnings.
Attachment #641373 - Attachment is obsolete: true
Attachment #641373 - Flags: review?(gavin.sharp)
Attachment #641375 - Flags: review?(gavin.sharp)
Comment on attachment 641375 [details] [diff] [review] expose a subset of navigator and add navigator specific tests and include __exposedProps__ thanks!
Attachment #641375 - Flags: review?(gavin.sharp) → review+
Flags: in-testsuite+
Whiteboard: [in-testsuite]
Target Milestone: --- → Firefox 16
Version: unspecified → Trunk
backed out due to leaks
Same as old patch except one line added: worker.terminate();
Attachment #641375 - Attachment is obsolete: true
Attachment #642489 - Flags: review?(gavin.sharp)
Attachment #642489 - Flags: review?(gavin.sharp) → review+
Didn't make it to mozilla-central before the uplift (merge was blocked on bug 774259). Adjusting milestone accordingly.
Target Milestone: Firefox 16 → Firefox 17
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Depends on: 776553
No longer depends on: 776553
Product: Firefox → Firefox Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: