B2G/gecko/services/aitc/modules/browserid.js
/**
   * Creates an empty, hidden iframe and sets it to the _iframe
   * property of this object.
   *
   * @return frame
   *         (iframe) An empty, hidden iframe
   */
Creates an empty, hidden iframe and sets it to the _iframe
property of this object.

@return frame
(iframe) An empty, hidden iframe
Creates an empty hidden iframe and sets it to the _iframe property of this object . @return frame ( iframe ) An empty hidden iframe
function _createFrame() {
    let doc = Services.wm.getMostRecentWindow("navigator:browser").document;
    let frame = doc.createElement("iframe");
    frame.setAttribute("type", "content");
    frame.setAttribute("collapsed", "true");
    doc.documentElement.appendChild(frame);
    let webNav = frame.docShell.QueryInterface(Ci.nsIWebNavigation);
    webNav.stop(Ci.nsIWebNavigation.STOP_NETWORK);
    this._frame = frame;
    this._container = doc.documentElement;
  }
function _createFrame ( ) { let doc = Services . wm . getMostRecentWindow ( "navigator:browser" ) . document ; let frame = doc . createElement ( "iframe" ) ; frame . setAttribute ( "type" , "content" ) ; frame . setAttribute ( "collapsed" , "true" ) ; doc . documentElement . appendChild ( frame ) ; let webNav = frame . docShell . QueryInterface ( Ci . nsIWebNavigation ) ; webNav . stop ( Ci . nsIWebNavigation . STOP_NETWORK ) ; this . _frame = frame ; this . _container = doc . documentElement ; }
Creates an empty, hidden iframe and sets it to the _iframe
 property of this object.
Creates an empty hidden iframe and sets it to the _iframe property of this object .
// Insert iframe in to create docshell. // Stop about:blank from being loaded. // Set instance properties.