Bug 1454694 Part 0: Add an imgIRequest status flag indicating that the request is done sending events to observers. draft
authorBrad Werth <bwerth@mozilla.com>
Tue, 24 Apr 2018 15:19:09 -0700
changeset 788108 947828b4c6285682918fdf1081ccee468f535436
parent 787860 7f6a582f00bfb5d0acb8d8bf7f8c79ca37c99b65
child 788109 ed8fb645e0592e55c7dda07fdecc91108bfbeb04
push id107907
push userbwerth@mozilla.com
push dateWed, 25 Apr 2018 22:57:54 +0000
bugs1454694
milestone61.0a1
Bug 1454694 Part 0: Add an imgIRequest status flag indicating that the request is done sending events to observers. MozReview-Commit-ID: DbrOM8Lq2ol
image/imgIRequest.idl
--- a/image/imgIRequest.idl
+++ b/image/imgIRequest.idl
@@ -50,26 +50,30 @@ interface imgIRequest : nsIRequest
    * STATUS_FRAME_COMPLETE: The first frame has been
    * completely decoded.
    *
    * STATUS_DECODE_COMPLETE: The whole image has been decoded.
    *
    * STATUS_IS_ANIMATED: The image is animated.
    *
    * STATUS_HAS_TRANSPARENCY: The image is partially or completely transparent.
+   *
+   * STATUS_EVENTS_COMPLETE: The image has completed or stopped and won't send more events
+   * to observers.
    */
   //@{
   const long STATUS_NONE             = 0x0;
   const long STATUS_SIZE_AVAILABLE   = 0x1;
   const long STATUS_LOAD_COMPLETE    = 0x2;
   const long STATUS_ERROR            = 0x4;
   const long STATUS_FRAME_COMPLETE   = 0x8;
   const long STATUS_DECODE_COMPLETE  = 0x10;
   const long STATUS_IS_ANIMATED      = 0x20;
   const long STATUS_HAS_TRANSPARENCY = 0x40;
+  const long STATUS_EVENTS_COMPLETE  = 0x80;
   //@}
 
   /**
    * Status flags of the STATUS_* variety.
    */
   readonly attribute unsigned long imageStatus;
 
   /*