Revert and improvement on 431226b. Improve redirects while protecting against domain changes. (Fix #807)
Revert and improvement on 431226b. Improve redirects while protecting against domain changes. (Fix #807)

Previously changes to protect against document location changes were breaking certain websites that were more reactive (e.g. youtube). This fixes that issue, while also not allowing websites to phish and change out the URL for something not attached to the root domain.

Allow2CEO/browser-ios,brave/browser-ios,brave/browser-ios,brave/browser-ios,Allow2CEO/browser-ios,Allow2CEO/browser-ios,brave/browser-ios,brave/browser-ios,Allow2CEO/browser-ios,brave/browser-ios,brave/browser-ios,brave/browser-ios,Allow2CEO/browser-ios,brave/browser-ios,Allow2CEO/browser-ios,Allow2CEO/browser-ios,Allow2CEO/browser-ios