Bug 1267614 - Update meta refresh parsing to match the new spec. r=farre

Differential Revision: https://phabricator.services.mozilla.com/D134225
This commit is contained in:
Peter Van der Beken
2021-12-26 10:09:44 +00:00
parent 143b6571e8
commit 1a2b0d201e
7 changed files with 227 additions and 527 deletions

View File

@@ -293,16 +293,11 @@ class nsDocShell final : public nsDocLoader,
* header is found. If docshell is busy loading a page currently, the request
* will be queued and executed when the current page finishes loading.
*
* @param aBaseURI base URI to resolve refresh uri with.
* @param aPrincipal The triggeringPrincipal for the refresh load
* May be null, in which case the principal of current document will be
* applied.
* @param aInnerWindowID The window id to use for error reporting.
* @param aHeader The meta refresh header string.
* @param aDocument document to which the refresh header applies.
* @param aHeader The meta refresh header string.
*/
nsresult SetupRefreshURIFromHeader(nsIURI* aBaseURI, nsIPrincipal* aPrincipal,
uint64_t aInnerWindowID,
const nsACString& aHeader);
void SetupRefreshURIFromHeader(mozilla::dom::Document* aDocument,
const nsAString& aHeader);
// Perform a URI load from a refresh timer. This is just like the
// ForceRefreshURI method on nsIRefreshURI, but makes sure to take