mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-15 19:57:29 +09:00
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
This commit is contained in:
commit
dcd9973243
150858 changed files with 23884658 additions and 0 deletions
18
dom/plugins/test/reftest/utils.js
Normal file
18
dom/plugins/test/reftest/utils.js
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
function forceLoadPluginElement(id) {
|
||||
var e = document.getElementById(id);
|
||||
var found = e.pluginFoundElement;
|
||||
}
|
||||
|
||||
function forceLoadPlugin(ids, skipRemoveAttribute) {
|
||||
if (Array.isArray(ids)) {
|
||||
ids.forEach(function(element, index, array) {
|
||||
forceLoadPluginElement(element);
|
||||
});
|
||||
} else {
|
||||
forceLoadPluginElement(ids);
|
||||
}
|
||||
if (skipRemoveAttribute) {
|
||||
return;
|
||||
}
|
||||
document.documentElement.removeAttribute("class");
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue