[ext] Private Tab (no restart)

Announce and Discuss the Latest Theme and Extension Releases.
Post Reply
User avatar
Infocatcher
Posts: 257
Joined: July 1st, 2007, 3:45 am

Re: [ext] Private Tab (no restart)

Post by Infocatcher »

Decopi wrote:I have both, PINNED tabs and HOME PAGE tabs, that are opening when my Firefox starts. I want some of them in private browsing and the others in normal browsing. Is there a way to open certain webpages or web addresses (tab, window, pinned, home page), always automatically in private browsing? In other words: Is there a way for Private Tab always remember certain webpages or addresses?

Private tabs aren't saved in sessions and therefore disappears after restart...
Also there is policies for add-ons, that forbid to store any private data: http://blog.mozilla.org/addons/2010/02/23/private-browsing-support-required-for-add-ons/

But you can use something like Auto Private extension.

Or you can use Custom Buttons or something similar to open private tabs:
https://github.com/Infocatcher/Private_Tab#privatetabreadytoopentabs

Code: Select all

privateTab.readyToOpenTabs(true);
// Open normal tabs
gBrowser.addTab("https://mozilla.org/");
gBrowser.addTab("https://google.com/");
// Open pinned tab
var tab = gBrowser.addTab("https://addons.mozilla.org/");
gBrowser.pinTab(tab);
privateTab.stopToOpenTabs();
This game has no name. It will never be the same. ©
Decopi
Posts: 2
Joined: December 30th, 2014, 3:28 am

Re: [ext] Private Tab (no restart)

Post by Decopi »

Ok, I understand the issue with pinned tabs... although don't agree with Firefox's logic (that deletes pinned tabs when history is deleted). In my opinion, should not be necessary relation between the 2 functions (I think that a pinned tab is like a bookmark). But this is a problem between me and Firefox :)

Now, regarding Auto Private + Private Tab = 100% Solved my problem with Home Pages / Web Addresses. Thanks a lot!
I believe it will be nice in some future, to unified both addons.
Or better: To create an addon where Private browsing is by default, having the alternative of a simple mouse click on the Tab / Window / Page... for changing to normal browsing.

Any way... thanks a lot for the addon and your answers.

The best for you and happy 2015!
User avatar
Infocatcher
Posts: 257
Joined: July 1st, 2007, 3:45 am

Re: [ext] Private Tab (no restart)

Post by Infocatcher »

Decopi wrote:(I think that a pinned tab is like a bookmark)
Also you can use "private:" prefix to create private bookmarks, e.g. private:https://www.google.com/

Decopi wrote:The best for you and happy 2015!
Thanks, happy new year!
This game has no name. It will never be the same. ©
redwhorns
Posts: 4
Joined: October 14th, 2014, 7:01 am

Re: [ext] Private Tab (no restart)

Post by redwhorns »

Infocatcher wrote:
redwhorns wrote:Hmm, that didn't seem to work, nothing new seems to be happening.
Oh, I forgot to write that this is for middle-click on built-in search menu item...

redwhorns wrote:Also, i'm not sure if i'm the only one but when i open a private tab and click the button to open a new tab, the new tab is private even though it should and used to open a normal tab.

Edit: I think this is to do with using the Fast Dial and other Speed Dial extensions which seem to make it look like the new page isn't empty.
Yes, some Speed Dial-like extensions may break this feature. Which one you use?
Also there is hidden options for new tabs:
https://github.com/Infocatcher/Private_Tab/blob/0.1.7.3/defaults/preferences/prefs.js#L36-L40


Hi, unfortunately the options didn't seem to change anything. Here's the extension that i'm using: https://addons.mozilla.org/en-US/firefo ... fast-dial/

And the STR is:
1. Open private tab
2. Click the new tab button
Got: The new tab opens as a private tab
Expected: The new tab should be a normal tab
User avatar
Infocatcher
Posts: 257
Joined: July 1st, 2007, 3:45 am

Re: [ext] Private Tab (no restart)

Post by Infocatcher »

redwhorns wrote:Here's the extension that i'm using: https://addons.mozilla.org/en-US/firefo ... fast-dial/

And the STR is:
1. Open private tab
2. Click the new tab button
Got: The new tab opens as a private tab
Expected: The new tab should be a normal tab
Oh, I see, this was caused by fix for #152.
Now should be corrected: https://github.com/Infocatcher/Private_Tab/commit/f42acb1cef50fba52d9a7f3e7d256f3669d84468

Test version: private_tab-0.1.7.4pre2-fx-sm.xpi (source).

[Upd] Oops, this fix breaks inheritance mechanism. I'll try to correct...
This game has no name. It will never be the same. ©
User avatar
Infocatcher
Posts: 257
Joined: July 1st, 2007, 3:45 am

Re: [ext] Private Tab (no restart)

Post by Infocatcher »

Looks like I can't (easily) fix compatibility with Fast Dial...
But this can be fixed through about:config:
browser.newtab.url = chrome://fastdial/content/fastdial.html
This game has no name. It will never be the same. ©
User avatar
Infocatcher
Posts: 257
Joined: July 1st, 2007, 3:45 am

Re: [ext] Private Tab (no restart)

Post by Infocatcher »

I've contacted with Fast Dial developer, here is test version 4.14, that should work fine with Private Tab: http://www.userlogos.org/extensions/fastdial#attachments.
This game has no name. It will never be the same. ©
redwhorns
Posts: 4
Joined: October 14th, 2014, 7:01 am

Re: [ext] Private Tab (no restart)

Post by redwhorns »

Awesome, it's working now. Thanks for all your help so far and being so responsive!
User avatar
Xetmes
Posts: 676
Joined: December 7th, 2011, 8:54 am
Location: Poland/Germany

Re: [ext] Private Tab (no restart)

Post by Xetmes »

Hi

looks like Private Tab make some problems in latest Nightly, normal "New Tab" button opens more then one new tab, not private, just normal, If I disable Your extension then new tab button works fine :)
r21514
Posts: 11
Joined: November 17th, 2014, 12:10 am

Re: [ext] Private Tab (no restart)

Post by r21514 »

Combination of Private Tab + AdBlock (or uBlock) causes cookies from first openned private tab to leak.
How to reproduce:
- Firefox with clean profile
- Install PrivateTab and AdBlock
- Set firefox to start with blank page, clean cookies
- Restart firefox
- Goto cookies, there will be something from mozilla and google only
- Open new private tab and goto any sites that sets cookies on first visit, I tested with livejournal.com
- Wait for site to load, close the tab
- Goto cookies, notice cookies from livejournal.com :)

Then clean cookies, disable adblock and do all again. There will be no cookie.

Opening private _window_ works ok with adblock, cookies do not leak.
User avatar
Infocatcher
Posts: 257
Joined: July 1st, 2007, 3:45 am

Re: [ext] Private Tab (no restart)

Post by Infocatcher »

Xetmes wrote:looks like Private Tab make some problems in latest Nightly, normal "New Tab" button opens more then one new tab, not private, just normal, If I disable Your extension then new tab button works fine :)
Oh, sorry for late reply. :(
I tried some days ago, but unable to reproduce. Now I tried again, but all still works fine for me.
This game has no name. It will never be the same. ©
User avatar
Xetmes
Posts: 676
Joined: December 7th, 2011, 8:54 am
Location: Poland/Germany

Re: [ext] Private Tab (no restart)

Post by Xetmes »

NP> looks like it is fixed, self fix in Nightly?

Other thing, I've problem with creating private bookmarks, if I add private: before url in bookmark properties Nightly simple ignore this? Any idea? Thanks in advance :)
User avatar
Infocatcher
Posts: 257
Joined: July 1st, 2007, 3:45 am

Re: [ext] Private Tab (no restart)

Post by Infocatcher »

Xetmes wrote:NP> looks like it is fixed, self fix in Nightly?
Oh, this is great. :D May be I just don't seen broken build.

Xetmes wrote:Other thing, I've problem with creating private bookmarks, if I add private: before url in bookmark properties Nightly simple ignore this? Any idea? Thanks in advance :)
Looks like I'm unable to edit bookmarks at all... (But my old private bookmarks still works fine.)
This game has no name. It will never be the same. ©
User avatar
Infocatcher
Posts: 257
Joined: July 1st, 2007, 3:45 am

Re: [ext] Private Tab (no restart)

Post by Infocatcher »

This game has no name. It will never be the same. ©
User avatar
Infocatcher
Posts: 257
Joined: July 1st, 2007, 3:45 am

Re: [ext] Private Tab (no restart)

Post by Infocatcher »

This game has no name. It will never be the same. ©
Post Reply