B2G/gecko/docshell/test/navigation/NavigationUtils.js
// Note: This only searches for top-level frames with this name.
This only searches for top-level frames with this name.
This only searches for top - level frames with this name .
function xpcGetFramesByName(name) {
  var results = [];
  xpcEnumerateContentWindows(function(win) {
    if (win.name == name)
      results.push(win);
  });
  return results;
}
function xpcGetFramesByName ( name ) { var results = [ ] ; xpcEnumerateContentWindows ( function ( win ) { if ( win . name == name ) results . push ( win ) ; } ) ; return results ; }
Note: This only searches for top-level frames with this name.
Note : This only searches for top - level frames with this name .