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 18860 - The referrer isn't always a Document
Summary: The referrer isn't always a Document
Status: RESOLVED FIXED
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:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-12 19:32 UTC by Jonas Sicking (Not reading bugmail)
Modified: 2012-09-12 23:15 UTC (History)
4 users (show)

See Also:


Attachments

Description Jonas Sicking (Not reading bugmail) 2012-09-12 19:32:28 UTC
When doing XHR/EventSource/importScript fetches from a Worker or SharedWorker, the referrer shouldn't be some document, but rather the URL of the worker itself. Same thing if a worker creates a sub worker.

This is similar to how the referrer of a background image linked to from a CSS stylesheet is the URL of the stylesheet, not the URL of a html Document.
Comment 1 Ian 'Hixie' Hickson 2012-09-12 23:15:29 UTC
http://html5.org/tools/web-apps-tracker?from=7340&to=7341