Bug 369943, imgIRequest loadImage and loadImageWithChannel should be marked [noscript], p=web+moz@eschew.org r=pavlov, a=1.9+/pavlov
authorOlli.Pettay@helsinki.fi
Wed, 22 Aug 2007 03:59:40 -0700
changeset 5146 2caae0433db9a4df68254c67d99efdacb7ae7680
parent 5145 950080c7d014ae4e86e3f6e652ca7775feb8aa15
child 5147 4ad451e6679d0628edd39fba7f65c5cda34381f1
push idunknown
push userunknown
push dateunknown
reviewerspavlov, 1.9
bugs369943
milestone1.9a8pre
Bug 369943, imgIRequest loadImage and loadImageWithChannel should be marked [noscript], p=web+moz@eschew.org r=pavlov, a=1.9+/pavlov
modules/libpr0n/public/imgILoader.idl
--- a/modules/libpr0n/public/imgILoader.idl
+++ b/modules/libpr0n/public/imgILoader.idl
@@ -53,17 +53,17 @@ interface nsISimpleEnumerator;
 
 /**
  * imgILoader interface
  *
  * @author Stuart Parmenter <pavlov@netscape.com>
  * @version 0.3
  * @see imagelib2
  */
-[scriptable, uuid(a32826ff-9e56-4425-a811-97a8dba64ff5)]
+[scriptable, uuid(d2f50c69-1064-4ce3-a92d-01dc5f5b4842)]
 interface imgILoader : nsISupports
 {
   /**
    * Start the load and decode of an image.
    * @param aURI the URI to load
    * @param aInitialDocumentURI the URI that 'initiated' the load -- used for 3rd party cookie blocking
    * @param aReferrerURI the 'referring' URI
    * @param aLoadGroup Loadgroup to put the image load into
@@ -76,17 +76,17 @@ interface imgILoader : nsISupports
                      be created for you.
 
 
    * libpr0n does NOT keep a strong ref to the observer; this prevents
    * reference cycles.  This means that callers of loadImage should
    * make sure to Cancel() the resulting request before the observer
    * goes away.
    */
-  imgIRequest loadImage(in nsIURI aURI,
+  [noscript] imgIRequest loadImage(in nsIURI aURI,
                         in nsIURI aInitialDocumentURL,
                         in nsIURI aReferrerURI,
                         in nsILoadGroup aLoadGroup,
                         in imgIDecoderObserver aObserver,
                         in nsISupports aCX,
                         in nsLoadFlags aLoadFlags,
                         in nsISupports cacheKey,
                         in imgIRequest aRequest);
@@ -102,17 +102,20 @@ interface imgILoader : nsISupports
    *        A listener that should receive the data. Can be null, in which
    *        case imagelib has found a cached image and is not interested in
    *        the data. The caller needs not cancel the channel in this case.
    *
    * libpr0n does NOT keep a strong ref to the observer; this prevents
    * reference cycles.  This means that callers of loadImageWithChannel should
    * make sure to Cancel() the resulting request before the observer goes away.
    */
-  imgIRequest loadImageWithChannel(in nsIChannel aChannel, in imgIDecoderObserver aObserver, in nsISupports cx, out nsIStreamListener aListener);
+  [noscript] imgIRequest loadImageWithChannel(in nsIChannel aChannel,
+                        in imgIDecoderObserver aObserver,
+                        in nsISupports cx,
+                        out nsIStreamListener aListener);
 
   /**
    * Checks if a decoder for the an image with the given mime type is available
    * @param mimeType The type to find a decoder for
    * @return true if a decoder is available, false otherwise
    */
   boolean supportImageWithMimeType(in string mimeType);
 };