mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-30 14:17:36 -10:00
Note that this test currently is broken/disabled in e10s mode. That's covered by bug 1090576, but this patch doesn't make it worse because chrome mochitests run in local mode always anyway. MozReview-Commit-ID: L4hJ8LkiSNG
35 lines
1.4 KiB
HTML
35 lines
1.4 KiB
HTML
<!DOCTYPE html>
|
|
<!-- bug 820708 -->
|
|
<html>
|
|
<head>
|
|
<meta><charset="utf-8"/>
|
|
<title>Test Refreshing navigator.plugins (bug 820708)</title>
|
|
<script type="text/javascript"
|
|
src="/tests/SimpleTest/SimpleTest.js"></script>
|
|
<script type="application/javascript" src="plugin-utils.js"></script>
|
|
<link rel="stylesheet" type="text/css"
|
|
href="/tests/SimpleTest/test.css">
|
|
</head>
|
|
<body>
|
|
<p id="display"></p>
|
|
<script class="testbody" type="application/javascript">
|
|
"use strict";
|
|
|
|
SimpleTest.waitForExplicitFinish();
|
|
setTestPluginEnabledState(SpecialPowers.Ci.nsIPluginTag.STATE_ENABLED);
|
|
|
|
ok("Test Plug-in" in navigator.plugins, "testplugin should be present");
|
|
ok("application/x-test" in navigator.mimeTypes, "testplugin MIME should be present");
|
|
|
|
setTestPluginEnabledState(SpecialPowers.Ci.nsIPluginTag.STATE_DISABLED);
|
|
ok(!("Test Plug-in" in navigator.plugins), "testplugin should not be present");
|
|
ok(!("application/x-test" in navigator.mimeTypes), "testplugin MIME should not be present");
|
|
|
|
setTestPluginEnabledState(SpecialPowers.Ci.nsIPluginTag.STATE_ENABLED);
|
|
ok("Test Plug-in" in navigator.plugins, "testplugin should be present again");
|
|
ok("application/x-test" in navigator.mimeTypes, "testplugin MIME should be present again");
|
|
SimpleTest.finish();
|
|
</script>
|
|
</body>
|
|
</html>
|