Bug 1046022 - fix LoadURI to not let people load anything inside onbeforeunload, r=bz

This commit is contained in:
Gijs Kruitbosch
2014-09-02 23:16:23 +01:00
parent 17cc2da71a
commit 0c819a80d0
5 changed files with 204 additions and 5 deletions

View File

@@ -521,8 +521,9 @@ protected:
const char16_t *aDescription,
const char *aCSSClass,
nsIChannel* aFailedChannel);
bool IsNavigationAllowed(bool aDisplayPrintErrorDialog = true);
bool IsPrintingOrPP(bool aDisplayErrorDialog = true);
bool IsNavigationAllowed(bool aDisplayPrintErrorDialog = true,
bool aCheckIfUnloadFired = true);
nsresult SetBaseUrlForWyciwyg(nsIContentViewer * aContentViewer);