Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Infocatcher opened this issue Jan 30, 2016 · 8 comments
Closed

Comments

@Infocatcher
Copy link
Owner

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

@sylveon
Copy link
Contributor

sylveon commented Jan 30, 2016

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
Copy link
Owner Author

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
Copy link
Contributor

sylveon commented Jan 30, 2016

Ah. Okay

@sylveon
Copy link
Contributor

sylveon commented Feb 1, 2016

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/[email protected]!/bootstrap.js:1569:22) JS Stack trace: @XPIProvider.jsm:4482:1 < [email protected]:4482:7 < [email protected]:4558:9 < [email protected]:4726:13 < [email protected]:7013:9 < [email protected]:1140:9 < [email protected]:1449:5 < initialize/<@extensions.js:104:5 < EventListener.handleEvent*[email protected]:103:3 < EventListener.handleEvent*@extensions.js:78:1

@Infocatcher
Copy link
Owner Author

(latest stable)

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

@sylveon
Copy link
Contributor

sylveon commented Feb 1, 2016

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

Infocatcher added a commit that referenced this issue Feb 9, 2016
Infocatcher added a commit that referenced this issue Feb 26, 2016
Infocatcher added a commit that referenced this issue Feb 26, 2016
(releted to #208, now we can't get state synchronously)
Infocatcher added a commit that referenced this issue Mar 1, 2016
(to avoid "unsafe CPOW usage" warnings)
(#208)
Infocatcher added a commit that referenced this issue Mar 1, 2016
Infocatcher added a commit that referenced this issue Mar 3, 2016
Infocatcher added a commit that referenced this issue Mar 3, 2016
(looks like not needed… and doesn't work anyway)
(#208)
@Infocatcher
Copy link
Owner Author

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

@sylveon
Copy link
Contributor

sylveon commented Apr 17, 2016

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

Infocatcher added a commit that referenced this issue Aug 10, 2016
* unsafe CPOW usage (#208)
* updated pt-PT locale (#210)
* e10s: fixed private protocol (#211)
* e10s: tweaks and fixes (#162)
* e10s: single frame script (#213)
* fixed recursion in wrapper for tab.setAttribute("image", …) (#214)
* compatibility with Firefox 51+: broked this.windows getter (#228)
* small internal enhancements and fixes
Infocatcher added a commit that referenced this issue Aug 10, 2016
* unsafe CPOW usage (#208)
* updated pt-PT locale (#210)
* e10s: fixed private protocol (#211)
* e10s: tweaks and fixes (#162)
* e10s: single frame script (#213)
* fixed recursion in wrapper for tab.setAttribute("image", …) (#214)
* compatibility with Firefox 51+: broked this.windows getter (#228)
* small internal enhancements and fixes
Infocatcher added a commit that referenced this issue Aug 10, 2016
* unsafe CPOW usage (#208)
* updated pt-PT locale (#210)
* e10s: fixed private protocol (#211)
* e10s: tweaks and fixes (#162)
* e10s: single frame script (#213)
* fixed recursion in wrapper for tab.setAttribute("image", …) (#214)
* compatibility with Firefox 51+: broked this.windows getter (#228)
* small internal enhancements and fixes
Infocatcher added a commit that referenced this issue Aug 22, 2016
(to not break regular favicons)
(#208, #224)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants