layout/generic/test/test_plugin_focus.html
author L. David Baron <dbaron@dbaron.org>
Sat, 13 Sep 2014 06:17:36 -0700
changeset 228423 c81eb3a1336b2ab5f4e83b8b5df394dfea8be37e
parent 158499 1332d461d52ec7febce82c286011b5933ad7216d
child 306987 c3623da0112ef4e384c42d01d7eaa7934a56113c
permissions -rw-r--r--
Bug 977991 patch 1 - Expose variant of RulesMatching on nsHTMLCSSStyleSheet that is less work to call. r=birtles This allows nsStyleSet::RuleNodeWithReplacement to call it without constructing an entire (and unnecessary) ElementRuleProcessorData, which will happen in patch 3.

<html title="Test plugin focus control">
<head>
  <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
  <script type="text/javascript" src="enableTestPlugin.js"></script>
  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>

<script class="testbody" type="application/javascript">

var child;
function childDone() {
  child.close();
  // This test has a history of focus issues, but waiting for focus to return
  // from the child window instead of attempting to reclaim it after finish
  // seems to prevent some kind of race on win8 (Bug 874843)
  SimpleTest.waitForFocus(SimpleTest.finish, window);
}

SimpleTest.waitForExplicitFinish();
child = window.open("plugin_focus_helper.html", "", "width=620,height=320");
</script>

</body>
</html>