mozilla
Your Search Results

    Code Snippets

    These are code snippets not polished enough / suitable for the main Code Snippets listing.

    nsIDOMWindow from nsIChannel

    from MozillaZine forums; suitable for things like http-on-modify-request

    function getDOMWindow ( /* in nsIChannel */ aChannel ) {
      var requestor = aChannel.notificationCallbacks;
      var win = requestor.getInterface(Components.interfaces.nsIDOMWindow);
    }
    

    Document Tags and Contributors

    Contributors to this page: Mook
    Last updated by: Mook,