{"action":"opened","issue":{"url":"https://api.github.com/repos/tmpvar/jsdom/issues/1376","repository_url":"https://api.github.com/repos/tmpvar/jsdom","labels_url":"https://api.github.com/repos/tmpvar/jsdom/issues/1376/labels{/name}","comments_url":"https://api.github.com/repos/tmpvar/jsdom/issues/1376/comments","events_url":"https://api.github.com/repos/tmpvar/jsdom/issues/1376/events","html_url":"https://github.com/tmpvar/jsdom/issues/1376","id":131802028,"number":1376,"title":"iframe document referrer is undefined","user":{"login":"mfrye","id":2142152,"avatar_url":"https://avatars.githubusercontent.com/u/2142152?v=3","gravatar_id":"","url":"https://api.github.com/users/mfrye","html_url":"https://github.com/mfrye","followers_url":"https://api.github.com/users/mfrye/followers","following_url":"https://api.github.com/users/mfrye/following{/other_user}","gists_url":"https://api.github.com/users/mfrye/gists{/gist_id}","starred_url":"https://api.github.com/users/mfrye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfrye/subscriptions","organizations_url":"https://api.github.com/users/mfrye/orgs","repos_url":"https://api.github.com/users/mfrye/repos","events_url":"https://api.github.com/users/mfrye/events{/privacy}","received_events_url":"https://api.github.com/users/mfrye/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-06T01:13:26Z","updated_at":"2016-02-06T01:13:26Z","closed_at":null,"body":"This is kind of an edge case, but I discovered this with the application I am working on. It looks like it's not being applied when the iframe loads.\r\n\r\n```\r\nvar iframe = document.getElementsByTagName('iframe');\r\nconsole.log(iframe[0].contentWindow.document.referrer); // undefined\r\n\r\n// Then in the iframe scope\r\nconsole.log(document.referrer) // undefined\r\n```"}}