On 9/20/13 11:14 AM, Patrick Brosset wrote:
The helper is here:
http://mxr.mozilla.org/mozilla-aurora/source/toolkit/devtools/LayoutHelpers.jsm#370

379     if (docShell.isBrowserOrApp) {
...
389     } else {
390       return win.frameElement;
391     }

So for anything on desktop it is in fact doing win.frameElement.

But .frameElement will return null if that would cross origins. See http://www.whatwg.org/specs/web-apps/current-work/multipage/browsers.html#dom-frameelement

So if your "win" has a parent that is not same-origin, you will get null here.

You should be using the docshell codepath in all cases...

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

Reply via email to