summaryrefslogtreecommitdiffstats
path: root/browser/components/sessionstore/test/browser_623779.js
blob: ce6d1cde1bb5daa3d8d02201cc9c8d6de6f108aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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);
});