diff options
Diffstat (limited to 'browser/components/sessionstore/test/browser_623779.js')
-rw-r--r-- | browser/components/sessionstore/test/browser_623779.js | 13 |
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 0000000000..f82fa2bf81 --- /dev/null +++ b/browser/components/sessionstore/test/browser_623779.js @@ -0,0 +1,13 @@ +"use strict"; + +add_task(async function() { + gBrowser.pinTab(gBrowser.selectedTab); + + let newTab = gBrowser.duplicateTab(gBrowser.selectedTab); + await promiseTabRestored(newTab); + + ok(!newTab.pinned, "duplicating a pinned tab creates unpinned tab"); + BrowserTestUtils.removeTab(newTab); + + gBrowser.unpinTab(gBrowser.selectedTab); +}); |