Bug 887928 - document.referrer should be based on the incument script settings object. r=bz