From e0d568643bece6eebb2b84a9194a371f2d5f75f2 Mon Sep 17 00:00:00 2001 From: Infocatcher Date: Wed, 13 Nov 2013 10:14:01 +0400 Subject: [PATCH] Highlight private tabs Required styles from patches for https://github.com/Infocatcher/Private_Tab/issues/113 --- Undo_Close_Tabs/undoCloseTabs.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Undo_Close_Tabs/undoCloseTabs.js b/Undo_Close_Tabs/undoCloseTabs.js index 6ed1028f..bedf7f07 100644 --- a/Undo_Close_Tabs/undoCloseTabs.js +++ b/Undo_Close_Tabs/undoCloseTabs.js @@ -685,6 +685,12 @@ this.undoCloseTabsList = { cb_index: i, cb_type: "tab" }); + if( + undoItem.state + && "attributes" in undoItem.state + && "privateTab-isPrivate" in undoItem.state.attributes + ) // https://addons.mozilla.org/addon/private-tab/ + mi.setAttribute("privateTab-isPrivate", "true"); if(this.cm) mi.setAttribute("context", this.cmId); var image = undoItem.image // Firefox