summaryrefslogtreecommitdiffstats
path: root/dom/plugins/test/reftest/utils.js
blob: f046089afc1d9657feb1df07a75f67cd3b9489e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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");
}