mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 23:08:39 +09:00
Attempt to fix https://forum.palemoon.org/viewtopic.php?f=3&t=33260
This commit is contained in:
parent
b19458894f
commit
6199242317
1 changed files with 7 additions and 0 deletions
|
|
@ -3543,6 +3543,13 @@ XMLHttpRequestMainThread::ShouldBlockAuthPrompt()
|
|||
// Verify that it's ok to prompt for credentials here, per spec
|
||||
// http://xhr.spec.whatwg.org/#the-send%28%29-method
|
||||
|
||||
// Privileged add-ons can still issue synchronous XHR from chrome context.
|
||||
// Showing a blocking HTTP auth dialog in that path can deadlock the UI when
|
||||
// extension code is already running inside a nested event loop.
|
||||
if (mFlagSynchronous && IsSystemXHR()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (mAuthorRequestHeaders.Has("authorization")) {
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue