Throw exception if we try to link to a file url from an online document....

... Also fetching referrer from the history stack. Required: onlinetest.