diff options
author | Moonchild <moonchild@palemoon.org> | 2019-08-09 08:25:37 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-09 08:25:37 +0000 |
commit | b5b29931034caa2aae356854f13bb744def1cd13 (patch) | |
tree | 49a7a620d38628e0f1f576a3a58538f238ad141b /dom/base/nsImageLoadingContent.h | |
parent | fa4d569b93885f47c4b53430fc93bf8b12e43fcb (diff) | |
parent | deae241f5e3db8f9b86b98933291b9a30e28db22 (diff) | |
download | UXP-b5b29931034caa2aae356854f13bb744def1cd13.tar UXP-b5b29931034caa2aae356854f13bb744def1cd13.tar.gz UXP-b5b29931034caa2aae356854f13bb744def1cd13.tar.lz UXP-b5b29931034caa2aae356854f13bb744def1cd13.tar.xz UXP-b5b29931034caa2aae356854f13bb744def1cd13.zip |
Merge pull request #1207 from win7-7/nsImageLoadingContent.cpp-AsyncOpen2
Convert dom/base/nsImageLoadingContent.cpp to use AsyncOpen2 and followups along with it (1445670 and 1373780 part 2 and 3)
Diffstat (limited to 'dom/base/nsImageLoadingContent.h')
-rw-r--r-- | dom/base/nsImageLoadingContent.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/dom/base/nsImageLoadingContent.h b/dom/base/nsImageLoadingContent.h index 5f7daff72..cfb2a6207 100644 --- a/dom/base/nsImageLoadingContent.h +++ b/dom/base/nsImageLoadingContent.h @@ -303,17 +303,10 @@ protected: RefPtr<imgRequestProxy>& PrepareNextRequest(ImageLoadType aImageLoadType); /** - * Called when we would normally call PrepareNextRequest(), but the request was - * blocked. - */ - void SetBlockedRequest(nsIURI* aURI, int16_t aContentDecision); - - /** * Returns a COMPtr reference to the current/pending image requests, cleaning * up and canceling anything that was there before. Note that if you just want * to get rid of one of the requests, you should call - * Clear*Request(NS_BINDING_ABORTED) instead, since it passes a more appropriate - * aReason than Prepare*Request() does (NS_ERROR_IMAGE_SRC_CHANGED). + * Clear*Request(NS_BINDING_ABORTED) instead. * * @param aImageLoadType The ImageLoadType for this request */ @@ -459,6 +452,14 @@ private: // registered with the refresh driver. bool mCurrentRequestRegistered; bool mPendingRequestRegistered; + + // This member is used in SetBlockedRequest, if it's true, then this call is + // triggered from LoadImage. + // If this is false, it means this call is from other places like + // ServiceWorker, then we will ignore call to SetBlockedRequest for now. + // + // Also we use this variable to check if some evil code is reentering LoadImage. + bool mIsStartingImageLoad; }; #endif // nsImageLoadingContent_h__ |