tenfourfox/dom/plugins/test/reftest/utils.js

19 lines
442 B
JavaScript
Raw Normal View History

2017-04-19 07:56:45 +00:00
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");
}