summaryrefslogtreecommitdiffstats
path: root/browser/components/sessionstore/test/browser_623779.js
diff options
context:
space:
mode:
Diffstat (limited to 'browser/components/sessionstore/test/browser_623779.js')
-rw-r--r--browser/components/sessionstore/test/browser_623779.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/browser/components/sessionstore/test/browser_623779.js b/browser/components/sessionstore/test/browser_623779.js
new file mode 100644
index 000000000..267bccb2d
--- /dev/null
+++ b/browser/components/sessionstore/test/browser_623779.js
@@ -0,0 +1,13 @@
+"use strict";
+
+add_task(function* () {
+ gBrowser.pinTab(gBrowser.selectedTab);
+
+ let newTab = gBrowser.duplicateTab(gBrowser.selectedTab);
+ yield promiseTabRestored(newTab);
+
+ ok(!newTab.pinned, "duplicating a pinned tab creates unpinned tab");
+ yield promiseRemoveTab(newTab);
+
+ gBrowser.unpinTab(gBrowser.selectedTab);
+});