This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 27497 - Expose a worker's origin as self.origin (similar to how we have document.origin).
Summary: Expose a worker's origin as self.origin (similar to how we have document.orig...
Status: RESOLVED DUPLICATE of bug 28801
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: https://html.spec.whatwg.org/#workerg...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-03 14:24 UTC by contributor
Modified: 2015-08-31 07:22 UTC (History)
3 users (show)

See Also:


Attachments

Description contributor 2014-12-03 14:24:56 UTC
Specification: https://html.spec.whatwg.org/multipage/workers.html
Multipage: https://html.spec.whatwg.org/multipage/#workerglobalscope
Complete: https://html.spec.whatwg.org/#workerglobalscope
Referrer: https://html.spec.whatwg.org/multipage/

Comment:
Expose a worker's origin as self.origin (similar to how we have
document.origin).

Posted from: 107.16.188.113 by annevk@annevk.nl
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:37.0) Gecko/20100101 Firefox/37.0
Comment 1 Ian 'Hixie' Hickson 2014-12-03 20:09:38 UTC
Oh, this is needed because we added data: URLs, I guess.
Comment 2 Anne 2014-12-03 21:57:08 UTC
Yeah, I think that is the main case. But we also do not want to encourage location.origin I think because it's so fucked for documents.
Comment 3 Anne 2015-08-31 07:22:22 UTC

*** This bug has been marked as a duplicate of bug 28801 ***