Closed
Bug 1146556
Opened 10 years ago
Closed 7 years ago
sdk/window/utils.js's getInnerId causes unsafe CPOW usage warnings
Categories
(Add-on SDK Graveyard :: General, defect, P1)
Tracking
(e10s+)
RESOLVED
INCOMPLETE
Tracking | Status | |
---|---|---|
e10s | + | --- |
People
(Reporter: mconley, Unassigned)
References
Details
(Whiteboard: [unsafe-cpow-usage])
/**
* Returns the ID of the window's current inner window.
*/
function getInnerId(window) {
return window.QueryInterface(Ci.nsIInterfaceRequestor).
getInterface(Ci.nsIDOMWindowUtils).currentInnerWindowID; <-- causes unsafe CPOW usage
};
Reporter | ||
Comment 2•10 years ago
|
||
(In reply to Dave Townsend [:mossop] from comment #1)
> Again, it's the caller that is important here.
I don't think I understand. There are several callers to this function, all of which (in an e10s browser) will cause unsafe CPOW usage:
https://dxr.mozilla.org/mozilla-central/search?tree=mozilla-central&q=getInnerId&redirect=true
Is there something more specific you're looking for?
Flags: needinfo?(mconley) → needinfo?(dtownsend)
Comment 3•10 years ago
|
||
(In reply to Mike Conley (:mconley) - Needinfo me! from comment #2)
> (In reply to Dave Townsend [:mossop] from comment #1)
> > Again, it's the caller that is important here.
>
> I don't think I understand. There are several callers to this function, all
> of which (in an e10s browser) will cause unsafe CPOW usage:
>
> https://dxr.mozilla.org/mozilla-central/search?tree=mozilla-
> central&q=getInnerId&redirect=true
Most of these are in code that runs in the content process and so shouldn't be triggering warnings like this.
> Is there something more specific you're looking for?
Yes I'm looking for cases where this actually causes the unsafe CPOW warning. I have no doubt there are some and you've seen them but it would save me the time of searching for it.
Flags: needinfo?(dtownsend)
Reporter | ||
Comment 4•10 years ago
|
||
Ah, I see - alright. That makes sense.
This flurry of bug filing you're seeing is the result of mining the test run logs of Holly, looking for the unsafe CPOW usage warning string.
I see this being triggered whenever the l10n/main.testHtmlLocalization test is running. So, assuming no log message ordering foul-ups, it should be reproducible by running that test.
Reporter | ||
Updated•9 years ago
|
tracking-e10s:
m8+ → ---
Whiteboard: [unsafe-cpow-usage]
Reporter | ||
Comment 5•9 years ago
|
||
This module and method can be called from the main browser process by SDK code or add-ons, and is not cpow-safe.
tracking-e10s:
--- → ?
Assignee: nobody → wmccloskey
Reporter | ||
Updated•9 years ago
|
Reporter | ||
Updated•9 years ago
|
Assignee: wmccloskey → nobody
Comment 6•7 years ago
|
||
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•