Infocatcher / Private_Tab

Adds private tabs, restartless extension for Firefox (20.0+) and SeaMonkey (2.17+)
https://addons.mozilla.org/addon/private-tab/
Other
86 stars 20 forks source link

[e10s] Get rid "unsafe CPOW usage", this raise an error in Firefox 47.0a1+ #208

Closed Infocatcher closed 8 years ago

Infocatcher commented 8 years ago

So, we can't use PrivateBrowsingUtils.isWindowPrivate(gBrowser.contentWindowAsCPOW) anymore...

sylveon commented 8 years ago

I also found something else: 12:37:20,473 Only internal code is allowed to set the usePrivateBrowsing attribute bootstrap.js:3557:2 Trigerred when opening a new private tab.

Infocatcher commented 8 years ago

This warning exists for years... and accessing to usePrivateBrowsing attribute is the only way to make tab private. Briefly described here: https://addons.mozilla.org/addon/private-tab/#developer-comments

sylveon commented 8 years ago

Ah. Okay

sylveon commented 8 years ago

I got these log entries when disabling and renabling the addon (latest stable), which is totally broken in my Nightly (up-to-date).

12:50:01,432 1454349001432  addons.xpi  WARN    Add-on privateTab@infocatcher is missing bootstrap method shutdown
12:50:01,434 Could not read chrome manifest 'file:///C:/Program%20Files/Nightly/chrome.manifest'.
12:50:01,557 Use of nsIFile in content process is deprecated. Content.js:23:17
12:50:05,059 1454349005058  addons.xpi  WARN    Error loading bootstrap.js for privateTab@infocatcher: SyntaxError: missing ] after element list (resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///C:/Users/Charles/AppData/Roaming/Mozilla/Firefox/Profiles/Charles/extensions/privateTab@infocatcher.xpi!/bootstrap.js:1569:22) JS Stack trace: @XPIProvider.jsm:4482:1 < this.XPIProvider.loadBootstrapScope@XPIProvider.jsm:4482:7 < this.XPIProvider.callBootstrapMethod@XPIProvider.jsm:4558:9 < this.XPIProvider.updateAddonDisabledState@XPIProvider.jsm:4726:13 < AddonWrapper.prototype.userDisabled@XPIProvider.jsm:7013:9 < gViewController.commands.cmd_enableItem.doCommand@extensions.js:1140:9 < gViewController.doCommand@extensions.js:1449:5 < initialize/<@extensions.js:104:5 < EventListener.handleEvent*initialize@extensions.js:103:3 < EventListener.handleEvent*@extensions.js:78:1
Infocatcher commented 8 years ago

(latest stable)

With version 0.1.9? This is due to already fixed #203.

sylveon commented 8 years ago

Sorry, I completely forgot about Firefox's addon validation times. I thought it already made it.

Infocatcher commented 8 years ago

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

sylveon commented 8 years ago

This beta version fixed all the problems that I had with Firefox Nightly.