B2G/gecko/browser/components/nsBrowserGlue.js
/**
   * Called as an observer when Sync's "display URI" notification is fired.
   *
   * We open the received URI in a background tab.
   *
   * Eventually, this will likely be replaced by a more robust tab syncing
   * feature. This functionality is considered somewhat evil by UX because it
   * opens a new tab automatically without any prompting. However, it is a
   * lesser evil than sending a tab to a specific device (from e.g. Fennec)
   * and having nothing happen on the receiving end.
   */
Called as an observer when Sync's "display URI" notification is fired.
We open the received URI in a background tab.

Eventually, this will likely be replaced by a more robust tab syncing
feature. This functionality is considered somewhat evil by UX because it
opens a new tab automatically without any prompting. However, it is a
lesser evil than sending a tab to a specific device (from e.g. Fennec)
and having nothing happen on the receiving end.
Called as an observer when Sync ' s " display URI " notification is fired . We open the received URI in a background tab . Eventually this will likely be replaced by a more robust tab syncing feature . This functionality is considered somewhat evil by UX because it opens a new tab automatically without any prompting . However it is a lesser evil than sending a tab to a specific device ( from e . g . Fennec ) and having nothing happen on the receiving end .
function _onDisplaySyncURI(data) {
    try {
      let tabbrowser = this.getMostRecentBrowserWindow().gBrowser;
      tabbrowser.addTab(data.wrappedJSObject.object.uri);
    } catch (ex) {
      Cu.reportError("Error displaying tab received by Sync: " + ex);
    }
  }
function _onDisplaySyncURI ( data ) { try { let tabbrowser = this . getMostRecentBrowserWindow ( ) . gBrowser ; tabbrowser . addTab ( data . wrappedJSObject . object . uri ) ; } catch ( ex ) { Cu . reportError ( "Error displaying tab received by Sync: " + ex ) ; } }
Called as an observer when Sync's "display URI" notification is fired.
Called as an observer when Sync ' s " display URI " notification is fired .
// The payload is wrapped weirdly because of how Sync does notifications.