Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

document.referrer should not be undefined (empty string ok)

#125

document.referrer should not return undefined. If MIA, then return ''

Reported by nickg · March 21st, 2010 @ 03:32 PM

State: resolved
Milestone: none
Assigned to: nickg nickg

Activity

  1. nickg
    nickg
    • State changed from new to resolved

    Diff is just

    --- a/src/html/document.js
    +++ b/src/html/document.js
    @@ -9,7 +9,7 @@
      */
     HTMLDocument = function(implementation, ownerWindow, referrer) {
         Document.apply(this, arguments);
    -    this.referrer = referrer;
    +    this.referrer = referrer || '';
         this.baseURI = "about:blank";
         this.ownerWindow = ownerWindow;
         this.head;
    

    Committed in
    http://github.com/thatcher/env-js/commit/70424375d78ae4d77bbe9108cc...

    March 21st, 2010 @ 03:39 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.