mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-25 16:47:29 +09:00
Merge remote-tracking branch 'origin/tracking' into custom
This commit is contained in:
commit
3553319265
1 changed files with 6 additions and 10 deletions
|
|
@ -2328,17 +2328,13 @@ nsObjectLoadingContent::LoadObject(bool aNotify,
|
||||||
// "about", "blob", "data", "file", "http", "https".
|
// "about", "blob", "data", "file", "http", "https".
|
||||||
//
|
//
|
||||||
// Some accessibility tests use our internal "chrome" scheme.
|
// Some accessibility tests use our internal "chrome" scheme.
|
||||||
if (mType != eType_Null) {
|
if (mType != eType_Null && mURI) {
|
||||||
nsCOMPtr<nsIURI> tempURI = mURI;
|
|
||||||
nsCOMPtr<nsINestedURI> nestedURI = do_QueryInterface(tempURI);
|
|
||||||
bool isCandidate = false;
|
bool isCandidate = false;
|
||||||
if (nestedURI) {
|
for (const auto& candidate :
|
||||||
for (const auto& candidate :
|
{"about", "blob", "chrome", "data", "file", "http", "https"}) {
|
||||||
{"about", "blob", "chrome", "data", "file", "http", "https"}) {
|
rv = mURI->SchemeIs(candidate, &isCandidate);
|
||||||
rv = tempURI->SchemeIs(candidate, &isCandidate);
|
if (NS_SUCCEEDED(rv) && isCandidate) {
|
||||||
if (NS_SUCCEEDED(rv) && isCandidate) {
|
break;
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!isCandidate) {
|
if (!isCandidate) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue