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

[SeaMonkey] Can't detect already opened built-in private windows #116

Closed
Infocatcher opened this issue Nov 9, 2013 · 0 comments
Closed
Labels

Comments

@Infocatcher
Copy link
Owner

See 2a33253 commit.
The logic was changed in release version. :(
chrome://navigator/content/navigator.js, SeaMonkey 2.19:

  var lc = window.QueryInterface(Components.interfaces.nsIInterfaceRequestor)
                 .getInterface(Components.interfaces.nsIWebNavigation)
                 .QueryInterface(Components.interfaces.nsILoadContext);
  if (lc.usePrivateBrowsing) {
    gPrivate = window;
    document.documentElement.removeAttribute("windowtype");

So we should check for window.location.href instead of window.document.documentElement.getAttribute("windowtype").
Also we probably can check only location and remove fix for #61.

Infocatcher added a commit that referenced this issue Nov 9, 2013
Infocatcher added a commit that referenced this issue Nov 9, 2013
(related to #116 and removes no longer needed fix for #61)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant