B2G/gecko/browser/components/feeds/src/WebContentConverter.js
/**
   * See nsIWebContentHandlerRegistrar
   * If a DOM window is provided, then the request came from content, so we
   * prompt the user to confirm the registration.
   */
See nsIWebContentHandlerRegistrar
If a DOM window is provided, then the request came from content, so we
prompt the user to confirm the registration.
See nsIWebContentHandlerRegistrar If a DOM window is provided then the request came from content so we prompt the user to confirm the registration .
function WCCR_registerContentHandler(aContentType, aURIString, aTitle, aContentWindow) {
    LOG("registerContentHandler(" + aContentType + "," + aURIString + "," + aTitle + ")");
    var contentType = this._resolveContentType(aContentType);
    if (contentType != TYPE_MAYBE_FEED)
      return;
    if (aContentWindow) {
      var uri = this._checkAndGetURI(aURIString, aContentWindow);
      var browserWindow = this._getBrowserWindowForContentWindow(aContentWindow);
      var browserElement = this._getBrowserForContentWindow(browserWindow, aContentWindow);
      var notificationBox = browserWindow.getBrowser().getNotificationBox(browserElement);
      this._appendFeedReaderNotification(uri, aTitle, notificationBox);
    }
    else
      this._registerContentHandler(contentType, aURIString, aTitle);
  }
function WCCR_registerContentHandler ( aContentType , aURIString , aTitle , aContentWindow ) { LOG ( "registerContentHandler(" + aContentType + "," + aURIString + "," + aTitle + ")" ) ; var contentType = this . _resolveContentType ( aContentType ) ; if ( contentType != TYPE_MAYBE_FEED ) return ; if ( aContentWindow ) { var uri = this . _checkAndGetURI ( aURIString , aContentWindow ) ; var browserWindow = this . _getBrowserWindowForContentWindow ( aContentWindow ) ; var browserElement = this . _getBrowserForContentWindow ( browserWindow , aContentWindow ) ; var notificationBox = browserWindow . getBrowser ( ) . getNotificationBox ( browserElement ) ; this . _appendFeedReaderNotification ( uri , aTitle , notificationBox ) ; } else this . _registerContentHandler ( contentType , aURIString , aTitle ) ; }
See nsIWebContentHandlerRegistrar
 If a DOM window is provided, then the request came from content, so we
 prompt the user to confirm the registration.
See nsIWebContentHandlerRegistrar If a DOM window is provided then the request came from content so we prompt the user to confirm the registration .
// We only support feed types at present. // XXX this should be a "security exception" according to spec, but that // isn't defined yet.