B2G/gecko/browser/components/feeds/src/WebContentConverter.js
/**
   * Returns the browser chrome window in which the content window is in
   */
Returns the browser chrome window in which the content window is in
Returns the browser chrome window in which the content window is in
function WCCR__getBrowserWindowForContentWindow(aContentWindow) {
    return aContentWindow.QueryInterface(Ci.nsIInterfaceRequestor)
                         .getInterface(Ci.nsIWebNavigation)
                         .QueryInterface(Ci.nsIDocShellTreeItem)
                         .rootTreeItem
                         .QueryInterface(Ci.nsIInterfaceRequestor)
                         .getInterface(Ci.nsIDOMWindow)
                         .wrappedJSObject;
  }
function WCCR__getBrowserWindowForContentWindow ( aContentWindow ) { return aContentWindow . QueryInterface ( Ci . nsIInterfaceRequestor ) . getInterface ( Ci . nsIWebNavigation ) . QueryInterface ( Ci . nsIDocShellTreeItem ) . rootTreeItem . QueryInterface ( Ci . nsIInterfaceRequestor ) . getInterface ( Ci . nsIDOMWindow ) . wrappedJSObject ; }
Returns the browser chrome window in which the content window is in
Returns the browser chrome window in which the content window is in