Closed Bug 1063186 Opened 9 years ago Closed 8 years ago

aWindow is null in e10s builds

Categories

(Firefox :: Private Browsing, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME
Tracking Status
e10s + ---

People

(Reporter: ehsan.akhgari, Assigned: zombie)

References

Details

Attachments

(1 file)

STR: Open a new window.

aWindow is null PrivateBrowsingUtils.jsm:24

  privacyContextFromWindow: function pbu_privacyContextFromWindow(aWindow) {
    return aWindow.QueryInterface(Ci.nsIInterfaceRequestor)
                  .getInterface(Ci.nsIWebNavigation)
                  .QueryInterface(Ci.nsILoadContext);
  },
Ehsan, is there any effect of this? or just console spew
Flags: needinfo?(ehsan.akhgari)
And could you get a call stack? I thought most usage of PrivateBrowsingUtils.isWindowPrivate should be passing a chrome win as a param
(In reply to Brad Lassey [:blassey] (use needinfo?) from comment #1)
> Ehsan, is there any effect of this? or just console spew

Hard to say without a callstack.

(In reply to :Felipe Gomes from comment #2)
> And could you get a call stack? I thought most usage of
> PrivateBrowsingUtils.isWindowPrivate should be passing a chrome win as a
> param

I would be happy to.  How do I do that?
Flags: needinfo?(ehsan.akhgari) → needinfo?(felipc)
You could use the browser debugger to set a conditional breakpoint there [1], or if you can reproduce the error with your own build you can dump((new Error).stack);

[1]
Set devtools.debugger.remote-enabled and devtools.chrome.enabled to true
Go to Tools > Web Developer > Browser Toolbox
Flags: needinfo?(felipc)
FWIW I can't reproduce it here (testing with a clean profile), so that's why I can't get the stack myself
NI to Ehsan to get stacks
Flags: needinfo?(ehsan.akhgari)
Attached image Callstack
Sorry that this is a screenshot, it seems impossible to copy a callstack from the debugger.
Flags: needinfo?(ehsan.akhgari)
That's add-on SDK code. Zombie, care to take a look?

This may be breaking some add-ons, so i'm marking this as blocking e10s-addons
Blocks: e10s-addons
Flags: needinfo?(tomica+amo)
we have some private-browsing refactoring in flight (landed to github, to be uplifted to m-c), and with bug 1062024 close to landing (to turn on addon interposition for jetpack addons), it's probably a good idea to delay testing this until next week after both of these land in Nightly..
Flags: needinfo?(tomica+amo)
(In reply to Tomislav Jovanovic [:zombie] from comment #9)
> we have some private-browsing refactoring in flight (landed to github, to be
> uplifted to m-c), and with bug 1062024 close to landing (to turn on addon
> interposition for jetpack addons), it's probably a good idea to delay
> testing this until next week after both of these land in Nightly..

What's your ETA for that?
Flags: needinfo?(tomica+amo)
jetpack uplifts from github ~weekly, and with all the parties in bug 1062024 happy with proposed patches, i expect end of this week or beginning of next.
Flags: needinfo?(tomica+amo)
Assignee: nobody → tomica+amo
hey Ehsan, is this still an issue? 

lots of code changed since then, so could you please test again, or at least post STR so that i could test it?

thanks.
Flags: needinfo?(ehsan)
Status: NEW → ASSIGNED
The STR is in comment 0.  I do not get this any more, but I'm not sure if that's because the bug was fixed or if the call was moved out of the code path for opening a new window.
Flags: needinfo?(ehsan)
(In reply to :Ehsan Akhgari (not reading bugmail, needinfo? me!) from comment #13)
> The STR is in comment 0.  I do not get this any more, but I'm not sure if
> that's because the bug was fixed or if the call was moved out of the code
> path for opening a new window.

well, isn't that the same thing? that method shouldn't be called with anything but a chrome window, and now it isn't..

i'm gonna mark this WORKSFORME, if it happens again, feel free to re-open.
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.