mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-05 14:57:30 +09:00
WIP fix 1
This commit is contained in:
parent
589999d236
commit
54df9f8a30
4 changed files with 42 additions and 20 deletions
|
|
@ -2661,6 +2661,11 @@ function getWebNavigation()
|
|||
}
|
||||
|
||||
function BrowserReloadWithFlags(reloadFlags) {
|
||||
|
||||
// Reset DOS mitigation for auth prompts when user initiates a reload.
|
||||
let browser = gBrowser.selectedBrowser;
|
||||
delete browser.authPromptCounter;
|
||||
|
||||
/* First, we'll try to use the session history object to reload so
|
||||
* that framesets are handled properly. If we're in a special
|
||||
* window (such as view-source) that has no session history, fall
|
||||
|
|
|
|||
|
|
@ -2458,7 +2458,10 @@
|
|||
<parameter name="aTab"/>
|
||||
<body>
|
||||
<![CDATA[
|
||||
this.getBrowserForTab(aTab).reload();
|
||||
let browser = this.getBrowserForTab(aTab);
|
||||
// Reset DOS mitigation for basic auth prompt
|
||||
delete browser.authPromptCounter;
|
||||
browser.reload();
|
||||
]]>
|
||||
</body>
|
||||
</method>
|
||||
|
|
|
|||
|
|
@ -302,6 +302,10 @@
|
|||
// but don't let that interfere with the loading of the url.
|
||||
Cu.reportError(ex);
|
||||
}
|
||||
|
||||
// Reset DOS mitigations for the basic auth prompt.
|
||||
let browser = gBrowser.selectedBrowser;
|
||||
delete browser.authPromptCounter;
|
||||
|
||||
function loadCurrent() {
|
||||
let flags = Ci.nsIWebNavigation.LOAD_FLAGS_ALLOW_THIRD_PARTY_FIXUP;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue