summaryrefslogtreecommitdiffstats
path: root/toolkit/forgetaboutsite/test/browser/browser_clearplugindata.js
diff options
context:
space:
mode:
authorMoonchild <mcwerewolf@gmail.com>2018-04-24 19:34:58 +0200
committerGitHub <noreply@github.com>2018-04-24 19:34:58 +0200
commit1b0a03a2e1916efd5c4f76efbe24b5917aa0d4c1 (patch)
tree749b48be1987507e6e5be0bc3e3673f0f7d9dd73 /toolkit/forgetaboutsite/test/browser/browser_clearplugindata.js
parent844da2ccc666afa713ca1e3e7caa077de4a9250d (diff)
parent846bbb9930e6588516a28f58b2f80c2b04e1b372 (diff)
downloadUXP-1b0a03a2e1916efd5c4f76efbe24b5917aa0d4c1.tar
UXP-1b0a03a2e1916efd5c4f76efbe24b5917aa0d4c1.tar.gz
UXP-1b0a03a2e1916efd5c4f76efbe24b5917aa0d4c1.tar.lz
UXP-1b0a03a2e1916efd5c4f76efbe24b5917aa0d4c1.tar.xz
UXP-1b0a03a2e1916efd5c4f76efbe24b5917aa0d4c1.zip
Merge pull request #258 from janekptacijarabaci/forgetAboutSite_1
moebius#30 and #37: ForgetAboutSite.jsm - promise - serialize vs. parallel + a comment
Diffstat (limited to 'toolkit/forgetaboutsite/test/browser/browser_clearplugindata.js')
-rw-r--r--toolkit/forgetaboutsite/test/browser/browser_clearplugindata.js9
1 files changed, 2 insertions, 7 deletions
diff --git a/toolkit/forgetaboutsite/test/browser/browser_clearplugindata.js b/toolkit/forgetaboutsite/test/browser/browser_clearplugindata.js
index ec0a70228..ca0d394c3 100644
--- a/toolkit/forgetaboutsite/test/browser/browser_clearplugindata.js
+++ b/toolkit/forgetaboutsite/test/browser/browser_clearplugindata.js
@@ -37,7 +37,7 @@ function setTestPluginEnabledState(newEnabledState, plugin) {
});
}
-add_task(function* setup() {
+add_task(function* () {
var tags = pluginHost.getPluginTags();
// Find the test plugin
@@ -50,12 +50,9 @@ add_task(function* setup() {
}
if (!pluginTag) {
ok(false, "Test Plug-in not available, can't run test");
- finish();
+ return;
}
setTestPluginEnabledState(Ci.nsIPluginTag.STATE_ENABLED, pluginTag);
-});
-
-add_task(function* () {
yield BrowserTestUtils.openNewForegroundTab(gBrowser, testURL);
// Set data for the plugin after the page load.
@@ -87,5 +84,3 @@ add_task(function* () {
gBrowser.removeCurrentTab();
});
-
-