mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-29 11:57:32 +09:00
Issue #1222: Don't load plugin instances when they have no src URI.
Favor fallback content in that case (if present). Fallback is always considered "good" in this case so may end up doing nothing which is what we'd want for corner cases that hammer this routine with no content.
This commit is contained in:
parent
de215d77fc
commit
b3b78fea06
2 changed files with 17 additions and 0 deletions
|
|
@ -682,6 +682,15 @@ pref("plugins.update.notifyUser", false);
|
|||
//Enable tri-state option (Always/Never/Ask)
|
||||
pref("plugins.click_to_play", true);
|
||||
|
||||
// Platform pref is to enable all plugins by default.
|
||||
// Uncomment this pref to default to click-to-play
|
||||
// pref("plugin.default.state", 1);
|
||||
|
||||
// Don't load plugin instances with no src declared.
|
||||
// These prefs are documented in detail in all.js.
|
||||
pref("plugins.favorfallback.mode", "follow-ctp");
|
||||
pref("plugins.favorfallback.rules", "nosrc");
|
||||
|
||||
#ifdef XP_WIN
|
||||
pref("browser.preferences.instantApply", false);
|
||||
#else
|
||||
|
|
|
|||
|
|
@ -3628,6 +3628,14 @@ nsObjectLoadingContent::HasGoodFallback() {
|
|||
}
|
||||
}
|
||||
|
||||
// RULE "nosrc":
|
||||
// Use fallback content if the object has not specified a src URI.
|
||||
if (rulesList[i].EqualsLiteral("nosrc")) {
|
||||
if (!mOriginalURI) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
// RULE "adobelink":
|
||||
// Don't use fallback content when it has a link to adobe's website.
|
||||
if (rulesList[i].EqualsLiteral("adobelink")) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue