If a page contains the Set-Cookie header it sets the cookie and the 
"http-on-response-set-cookie" notification is triggered with subject being a 
nsIChannel.

I am monitoring cookies in E10S using this observer. Because Services.obs 
doesn't work in the child process it has to run in the parent.

There is no point knowing that the request has been sent unless we know which 
window is the requester.

The only things I am able to send back to the child process that could help 
identify the requester are the inner, outer and parentOuter window IDs obtained 
using:

  let {innerWindowID, outerWindowID, parentOuterWindowID} = channel.loadInfo;

So, over in the child process, my next step is to try to get the window from 
these window IDs but both Services.wm.getCurrentInnerWindowWithId() and 
Services.wm.getOuterWindowWithId() return null for all of the supplied window 
IDs.

How am I supposed to identify the requesting window?

/Mike Ratcliffe
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to