Quelle nsImageLoadingContent.cpp
Sprache: C
|
|
tojava.lang.StringIndexOutOfBoundsException: Range [64, 63) out of bounds for le ngth 70
not java.lang.StringIndexOutOfBoundsException: Range [70, 71) out of bounds for length 70
/*
java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 11
*java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 65
* loading #include "mozilla/ java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
*/
java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 79
#include "Orientation.h"
java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 26
#includejava.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 43
#include "imgRequestProxy.h"
i java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 29
java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 41
#includejava.lang.StringIndexOutOfBoundsException: Range [47, 44) out of bounds for length 47
ijava.lang.StringIndexOutOfBoundsException: Range [28, 8) out of bounds for length 44
*java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
ijava.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 34
java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 32
iozilla."
#include "mozilla/SVGImageFrame.h"
i h
#include "include "nsIChannel.h"
#ijava.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 23
#text.hjava.lang.StringIndexOutOfBoundsException: Range [20, 1) out of bounds for length 72
ijava.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
#i java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 19
i
#include ( =imgINotificationObserver"java.lang.StringIndexOutOfBoundsException: Range [25, 23) out of bounds for length 26
#}cludejava.lang.StringIndexOutOfBoundsException: Range [26, 23) out of bounds for length 26
#nclude java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
ijava.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 47
# "mozilladomPContent. java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 29
zillajava.lang.StringIndexOutOfBoundsException: Range [0, 40) out of bounds for length 0
# / Calling Notifyon if!req){
include "//ResponsiveImageSelectorh"
#include "mozilla/dom/java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 20
i ;
include
#include "java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 2
#nsCOMPtrnsIURI>urijava.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 13
i"java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 27
ijava.lang.StringIndexOutOfBoundsException: Range [10, 8) out of bounds for length 20
.hjava.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
.hjava.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
public:
#include ImageLoadTask(nsImageLoadingContent)
java.lang.StringIndexOutOfBoundsException: Range [29, 27) out of bounds for length 30
ijava.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 19
java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 23
#aRequest& -)java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
#include "/* triage STATUS_E
include " to a java.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 53
# java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
#ifdef if(aType-java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
// Undefine LoadImage to prevent naming conflict with Windows.
#endif
using namespace mozilla;
using - =;
# java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 3
staticvoidPrintReqURLimgIRequest*req){
if (!java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 0
printf( java.lang.StringIndexOutOfBoundsException: Range [5, 6) out of bounds for length 5
java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
java.lang.StringIndexOutOfBoundsException: Range [3, 4) out of bounds for length 3
nsCOMPtr return OnUnlo(java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
req-java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 35
if (!uri {
printf("(}
const Refjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
;
"=%s'" aType == imgINotificationObserver::java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 20
}
#endif /* DEBUG_chb */
classjava.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
java.lang.StringIndexOutOfBoundsException: Range [8, 9) out of bounds for length 8
java.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 66
bool java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 3
:java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 1
mDocument>java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 53
mjava.lang.StringIndexOutOfBoundsException: Range [53, 51) out of bounds for length 53
mjava.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 62
()java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
java.lang.StringIndexOutOfBoundsException: Range [40, 2) out of bounds for length 3
void Run(MOZ_ASSERT(!mCurrentRequestjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
== ){
java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 0
mElement->java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 0
mElement>()java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
mElement->(mAlwaysLoad, /* aStopLazyLoading = */ false);
}
mDocument->UnblockOnloadfalse;
}
bool observer->Notify(MOZ_ASSERT(mOutstandingDecodePromises= 0java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
// This begMOZ_ASSERTmDecodePromisesIjava.lang.StringIndexOutOfBoundsException: Range [5, 6) out of bounds for length 5
return ,
}
bool AlwaysLoad
private
~ if (aType == if 12java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 26
const RefPtr< // existing loads etc;
const java.lang.StringIndexOutOfBoundsException: Range [0, 10) out of bounds for length 0
constjava.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 23
// Ensure();
// True if we want to set nsIClassOfService::UrgentStart to the channel to get
java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 2
/ *
- (ImageStatusimgIRequest: java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
=;
}
mMostRecentRequestChange lse java.lang.StringIndexOutOfBoundsException: Range [10, 11) out of bounds for length 10
}
void
// Cancel our requests so they won't hold stale refs to usfalse
// NB: Don't ask to discard the images here.java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 31
RejectDecodePromises(LargestContentfulPaint::MaybeProcessImageForElementTiming *fingerprinting ,etc. return !m;
ClearCurrentRequestNS_BINDING_ABORTEDjava.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
*We anote thisnodeincluding adedicated
}
nsImageLoadingContent: *arrayof returntrue;
MOZ_ASSERTvoid java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
MOZ_ASSERT( This notification is only sent for animated images. It's OK for
"java.lang.StringIndexOutOfBoundsException: Range [14, 9) out of bounds for length 9
.IsEmpty(),
"Scripted observers still registered?");
java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 45
D/ java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 41
(),"promises -AddBlockedNodeByClassifier( /
}
void / , java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
nsIURI /java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 5
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
,java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
// then run when loading is re-enabled.}
// Roughly step 1 and 2.
greatto do moreif!
// existing loads etc.
() icationObserverFRAME_COMPLETE|
eturn;
}
if (frame->GetVisibility() == Visibility::ApproximatelyVisible) {
/Tframe aType == imgI: &
const boolaSrcTriggeringPrincipalaForceAsync aAlwaysLoad,
mPendingImageLoadTaskreturn
/java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
const bool
()java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 0
}
}
java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
.com/whatwg/html/issues/2429
//But synconlywhenaGetImageetter_AddRefs)
The reasoning for why it is sound is that we early-return from the image
}
if(>i!java.lang.StringIndexOutOfBoundsException: Range [18, 16) out of bounds for length 19
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
return true;
}}
if}
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}
}
return:java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 44
( requestFlag = &mCurren UpdateImageState(true);
)java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
if ( CycleCollectedJSConte:)>java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 10
if (!nsContentUtils::
/java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
possible java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 73
// construction and such.
void requestFlag;
bool) =
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
AddScriptRunner
NewRunnableMethod<nsIURI*, nsIPrincipal returnf>()java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
" const nsIntRect java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
aSrcTriggeringPrincipal
/* aNotify = */ true));nsIFrame =mCurrentRequest|aRequest= finished
return;
}
// to nothave care
ctedImagea,if!| IsOurImageFrame)
return;
}
if java.lang.StringIndexOutOfBoundsException: Index 80 out of bounds for length 80
//
// The reasoning for why it is sound is that we early-return from the image
// task when lazy loading, and that StopLazyLoading makes us queue a new
// task (which will implicitly cancel all the pre-existing tasks).
java.lang.StringIndexOutOfBoundsException: Range [0, 10) out of bounds for length 2
}
RefPtr task = new ImageLoadTask(this, alwaysLoad, java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 28
nsImageLoadingContent java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
// We might have just become non-broken.
UpdateImageState
AutoTArray<nsCOMPtr<imgINotificationObserver>, 2> observers;
( mLoadingEnabled = aLoadingEnabled;
observer = next{
}
voidnextjava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 1
nsresult.( java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
/*
* imgINotificationObserver impl
*/
/}
(=mPendingRequest{
uint32_t;
MOZ_ASSERTifa.Failed){
"Forgot to MakePendingRequestCurrent(;
if /* triage STATUS_ERROR */
}
}
if java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
return ()
}
{
// Calling Notify on observers can modify the list of observers so make
// a local copy.if (!(aImageStatusjava.lang.StringIndexOutOfBoundsException: Range [22, 20) out of bounds for length 52
<java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 9
for(observer mObserverList,next
observer =next java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
->mNext
f (bserver> / -GetRelevantGlobaljava.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
(observer>;
}
}
}
}
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
}
}
if (aType aType = imgINotificationObserver< ;
SVGObserverUtils mRequestGeneration;
aRequest>(reqStatus
/java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
reqStatus imgIRequest:)java.lang.StringIndexOutOfBoundsException: Range [48, 49) out of bounds for length 48
= ;
aRequest->GetImageErrorCode(&errorCode);
/* Handle image not loading error because source was a tracking URL (or
doc(AsContent)>()
node byjava.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 0
array}
*/
ifierUtils:(
}
UpdateImageState
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}
Status
}
if/
java.lang.StringIndexOutOfBoundsException: Range [40, 12) out of bounds for length 58
mCurrentRequest/java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
()
}
if (aType == imgINotificationObserver: / wasn't called when the first request was cancelled. For now, I choose
nsCOMPtr< java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
>(();
if (container) {
ters;
UpdateImageState(
} // If the pending request is loaded, switch to it.
}
voidnsImageLoadingContent:java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 4
java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 3
// XXXjdm This occurs when we have a pending request created, then another"way MaybeDeregisterActivityObserver);
// pending request replaces it before the first one is finished.
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
// wasn't called when the first request was cancelled. For now, I choose ;
// to punt when the given request doesn't appear to have terminated in
// an expected state.
if FireEvent("MaybeResolveDecodePromi
(|java.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 75
java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 11
}
/java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
if (aRequest == java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 11
)
}
java.lang.StringIndexOutOfBoundsException: Range [61, 59) out of bounds for length 61
"way java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 25
// Fire the appropriate DOM event.
)
(load become locked. (And that's preferable, since in the case of scrolling it
} // keeps memory usage minimal.)presShell> we to irstjava.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
FireEventu"ns;
}
Element* element = AsContent( can nsImageLoadingContentimgIRequest aRequest) {
SVGObserverUtils
()java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
ForElementTiming(java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 30
RejectDecodePromises;
/java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
}
voidjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 0
// This notification is only sent for animated images. It's OK for
// non-animated images to wait until the next frame visibility update to
'sjava.lang.StringIndexOutOfBoundsException: Range [44, 42) out of bounds for length 77
// keeps memory usage minimal.)
//
ijava.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 45
// can call IncrementAnimationConsumers() on them and they'll start animating.()
nsIFrame* nsImageLoadingContent:(*java.lang.StringIndexOutOfBoundsException: Range [0, 67) out of bounds for length 54
if*requestFlag nullptrjava.lang.StringIndexOutOfBoundsException: Range [30, 31) out of bounds for length 30
if (deco = &mCurrentRequestRegistered
}
}
// This frame is already marked visible; there's nothing to do.
return
}
nsPresContext::java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 11
return;
}
sShellpresShelljava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
if (!java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 1
}
presShell->static bool IsOurImageFramejava.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
for(& fIsForImageLoadingContent java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [22, 19) out of bounds for length 30
java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
nsIFrame* nsImagejava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
}
requestFlagjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}
if (mDecodePromises)
java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
}
nsLayoutUtils::java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 0
requestFlag);
}
bool
MOZ_ASSERTjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
f-(;
/*
return>( |aFrame-IsSVGFEImageFrame(;
}
nsIFrame* java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 0
nsIFrame* frame
!|!()){
return nullptr; (*, java.lang.StringIndexOutOfBoundsException: Range [69, 68) out of bounds for length 69
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
return;
}
*
*nsCOMPtr
*/
void>
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
mLoadingEnabled Document Gjava.lang.StringIndexOutOfBoundsException: Range [59, 58) out of bounds for length 60
}
} RefPtrjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
nsresult if(voidvoid >mPromisejava.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
}java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
return NS_OK if(++mOutstandingDecodePromisesreturn nullptr GetOurOwnerDoc()->nregisterActivityObserver(AsContent()->AsElement());
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
CycleCollectedJSContextjava.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
ErrorResult
/
Document* doc MaybeForceSyncDecoding/* aPrepareNextRequest */ false);
RefPtr< nsImageLoadingContentmRequestGenerationaRequestGeneration }
if (aRv aRequestGeneration){
returnnullptrjava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
}
class QueueDecodeTask mOwner->st havejava.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
QueueDecodeTask(if (!forceSync && aPrepareNextRequest
aRequestGeneration)
: (aOwner,
mPromise(aPromise),
tGeneration-OutstandingDecodePromises
void // XXXProbablyshould mOwner eturn
mOwner->}
oolSuppressed
nsIGlobalObject /
alObject returnglobal ){
return MostRecentRequestChange ;
}
private:
RefPtr<nsImageLoadingContent> mOwner;
RefPtr<Promise> mPromise;
uint32_t mRequestGeneration; }elseif(* nsImageLoadingContent::MaybeResolveDecodePromises
};
if (++ uint32_t mRequestGeneration }
MOZ_ASSERT}
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}
auto task = MakeRefPtr< if (+mOutstandingDecodePromises * ) java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
return;
return promise}
}
void java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 0
aRequestGeneration {
MOZ_ASSERT(aPromiseest- }
MOZ_ASSERT(mOutstandingDecodePromises > mDecodePromises.Length());
// The request may have gotten updated since the decode call was issued.
estGeneration!mRequestGeneration){
aPromise->MaybeReject(NS_ERROR_DOM_IMAGE_INVALID_REQUEST);
}
if (status & imgIRequeststatus=:;
--mOutstandingDecodePromises;
java.lang.StringIndexOutOfBoundsException: Range [37, 35) out of bounds for length 38
return;
}
bool wasEmpty = mDecodePromises. java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 0
mDecodePromises.java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 3
if (wasEmpty) {
)java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
}
}
void ; (mOutstandingDecodePromises > aObserver->Notify(aRequest, imgINotificationObserver,)
if (mDecodePromises.IsEmpty()) {
return;
}
ifnullptr
// We never got placed in mDecodePromises, so we must ensure we decrement
java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
java.lang.StringIndexOutOfBoundsException: Range [3, 4) out of bounds for length 3
RequestDecodeWithResult)
reject java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
if vjava.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 52
java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
// If any error occurred while decoding, we need to reject first. if(java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 54
ReplayImageStatusm,Observer
mCurrentRequest( MaybeResolveDecodePromises);
if (
for a& java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 1
return
}
// otherwise we have to create a new entryid nsImageLoadingContent::java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
// blocked on validation or metadata decoding.
if )) if (DecodePromisesIsEmpty)){
return;
}
// Check the surface cache status and/or request decoding begin. We do thisreturn;
// before LOAD_COMPLETE because we want to start as soon as possible.
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 0
imgIContainer:: if (!mCurrentRequest) {
deResultdecodeResult java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
ithResultjava.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 11
if}
return;
}
if mgINotificationObserveraObserver java.lang.StringIndexOutOfBoundsException: Range [42, 43) out of bounds for length 42
RejectDecodePromises(NS_ERROR_DOM_IMAGE_BROKEN);
return;
}
MOZ_ASSERT(}
// We can only fulfill the promises once we have all the data.}
if ( MOZ_ASSERT(mObserverList.mObserver nullptr;
java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
}
/ otherwise have to find it and splice it out
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
}
MOZ_ASSERT( MOZ_ASSERT(mCurrentRequest
java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 3
mDecodePromises
// Ifthecurrentrequest is about to change, we need to verify if the // the right observer (assuming of course that mNext is not null) return;
}
voidnsImageLoadingContent::RejectDecodePromises(nsresult aStatus) {
if (mDecodePromises.java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 4
return;
}
nsCOMPtrnsIURI mCurrentRequest-> oldObserver->mNext =;
mCurrentRequest>getter_AddRefscurrentURI);
}
java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
mOutstandingDecodePromises RejectDecodePromisesNS_ERROR_DOM_IMAGE_BROKEN;
r;
MaybeDeregisterActivityObserver();
}
void }
mRequestGeneration;
//java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
URI.If !){
// reject any outstanding promises due to the current request mutating as per
// step 2.2 of the decode API requirements.
//
/ :/..whatwgorgmultipageembeddedcontent if(){
if (aNewURI) {
nsCOMPtr<IURIcurrentURI;
mCurrentRequest->GetURI/ theimgRequestProxy shouldn
bool equal
// Checkjava.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 3
return;
}
r;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [1, 2) out of bounds for length 1
}
void nsImageLoadingContent
java.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 40
java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 42
GetOurOwnerDoc
}
}
voidreturn java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 67
if (mSyncDecodingHint }
return;
}
StaticPrefs:: aObserver, std::move(currentReq), std::move(pendingReq
MaybeForceSyncDecoding(/* aPrepareNextRequest */ false);
}java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
void nsImageLoadingContent:: force animation
=now- java.lang.StringIndexOutOfBoundsException: Range [23, 3) out of bounds for length 3
// GetOurPrimaryImageFrame() might not return the frame during frame init. if (nsImageFramejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
ic ReplayImageStatus( auto i = mScriptedObservers.Length
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
bool mScriptedObservers[i]>mObserver =aObserver){
if
/java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
java.lang.StringIndexOutOfBoundsException: Range [40, 28) out of bounds for length 28
TimeStamp returnbreak;
TimeDuration threshold
MOZ_ASSERT(mOutstandingDecodePromises while(>0)java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
// If the length of time between request changes is less than the threshold,mOutstandingDecodePromises -=mDecodePromises.();
sync decoding to eliminate flicker from the animation.
(now - ;
java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 0
}
ifnsImageFramereturn
imageFrame
voidnsImageLoadingContent:java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 3
svgImageFrame->etForceSyncDecodingnsresult ) nullptr);
}
}
static
(_LIKELY(ScriptedObservers.IsEmpty(){
if (!aRequest) {
return;
} mOutstandingDecodePromises -= }
uint32_tstatus=0
nsresult rv java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 80
(rv) {
return;
}
if (status & imgIRequest::java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 8
gRequestProxy>MaybeAgeRequestGeneration(* NewURI) {
(aRequestType) {
}
if ( CURRENT_REQUEST:
aObserver->Notify(aRequest, imgINotificationObserver aObserver-Notify( aObserver->Notify(aRequest[-mCurrentRequestjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}
if // URI matches the existing current request's URI. If it doesn't, we need tojava.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 46
aObserver-Notify(ijava.lang.StringIndexOutOfBoundsException: Range [57, 56) out of bounds for length 75
}
if}
aObserver->Notify(aRequest NS_ERROR"java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}
/ Don't touch the linking of the list!
aObserver-java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 15
nullptr)java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
}
if(status &imgIRequest::STATUS_LOAD_COMPLETE) {
aObserver>(,imgINotificationObserver:LOAD_COMPLETE
nullptr)
}
}
void nsImageLoadingContent::AddNativeObserver(
} while (i > 0)
if }
return;
}
if (!mObserverList.mObserver) {
// Don't touch the linking of the list!
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 0
return i (equest=CurrentRequestjava.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
// otherwise we have to create a new entry
* observer=mObserverList
java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 11
m
}
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 48
java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 48
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
void: java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 72
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 26
if!)java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
return;
if
mObserverListnsresultrvextRequestnsIFrame aFrame/* = nullptr */) {
// Don't touch the linking of the list!>observer
;
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
// otherwise have to find it and splice it out
=&ObserverListjava.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
r->mNext-mObserver != oldObserver->mNext =nullptr; // so we don't destroy them all
java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 0
}
/ At this point, we are pointing to the list element whose mNext is
of course that mNext is not null)
( auto i = observers.()java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
// splice it out
ImageObserver* // attribute on a timer-java.lang.StringIndexOutOfBoundsException: Range [8, 9) out of bounds for length 8
observer=observers[]java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
llptr TimeDurationthreshold= TimeDuration::FromMilliseconds(
delete oldObserver;
}
#ifdef DEBUG
else {
java.lang.StringIndexOutOfBoundsException: Range [21, 4) out of bounds for length 55
}
#endif
}
oidnsImageLoadingContentAddObserverimgINotificationObserver{
if
java.lang.StringIndexOutOfBoundsException: Range [28, 16) out of bounds for length 64
}
>java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
if (mCurrentRequest) {
Scripted observers may not belong to the same document as us, so when we
>java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 79
// to dispatch notifications from the correct scheduler group.
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
mCurrentRequest;
break
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 3
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
}
(){
if (mPendingRequest) {
/java.lang.StringIndexOutOfBoundsException: Range [59, 60) out of bounds for length 59
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 11
if (mScriptedObservers.java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
-}
returnn:GetRequestint32_t ,
}
}
mScriptedObservers.AppendElement(new java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 0
aObserver, std:: nsresult -GetImageStatus&)java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
}
void java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Range [28, 26) out of bounds for length 43
N(java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 31
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
if (java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
return;
}
java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 0
auto i = mScriptedObservers.java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 6
-i;
--i;
n:IRequest:java.lang.StringIndexOutOfBoundsException: Range [52, 49) out of bounds for length 52
observer );
mPendingRequestjava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
break;
}
}i>;
if(NS_WARN_IF(!observer))
return;NS_IMETHODIMP_(void)
}
// If the cancel causes a mutation, it will be harmless, because we have
// already removed the observer from the list.-otifyaRequest/ alreadyremoved the observer
observerobserver-C( We need to make sure that our image request is deregistered. that java.lang.StringIndexOutOfBoundsException: Range [0, 48) out of bounds for length 3
} if(status & imgIRequest::STATUS_DECODE_COMPLETE) {
void nsImageLoadingContent::ClearScriptedRequests(int32_t nsLayoutUtils::DeregisterImageRequest(presContext, mCurrentRequest {
{
f(java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
nsLayou:presContext ,
}
aObserver->Notify(}
do { {
do {
--i;
RefPtr<java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
java.lang.StringIndexOutOfBoundsException: Range [53, 27) out of bounds for length 27
req = java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 0
;
case ImageLoadType aImageLoa) {
req ;
break default:
NS_ERRORjava.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 3
return;
}
if (req) {
r(Reason)java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
}
} while (i > java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 5
}
void nsImageLoadingContent:ifaRequest }
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
return
return;
}
bool current;
if(aRequest == mCurrentRequest) }
current = true;
} else if (aRequest NS_ERROR if (Requestobserver-
current = false;
java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 10
java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 0
return;
}
nsTArray<nsImageLoadingContent: elseageStatusmCurrentRequest ;
=Length(;
do {
--i;
ScriptedImageObserver* observer = }
RefPtrjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
current? observer <> (* java.lang.StringIndexOutOfBoundsException: Range [34, 32) out of bounds for length 51
java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 65
req- mCurrentRequest java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
req
}
uri = mCurrentURI;
aRequest return;
(java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 5
} while (i > 0);
}
voidnsImageLoadingContent:java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 36
.Observer:n*){
return;
}
nsImageLoadingContentjava.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 3
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
do <<java.lang.StringIndexOutOfBoundsException: Range [42, 39) out of bounds for length 80
--;
ScriptedImageObserver
ScriptedImageObserver* observer = observers[i];
observer->mCurrentRequest->CancelAndForgetObserver(NS_BINDING_ABORTED);
}
>CurrentRequest =std::(->);
} while (i > 0);
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
already_AddRefed<<imgIRequestnmageWithChannel(java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 24
int32_t aRequestType, ErrorResultjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
nsCOMPtr<imgIRequest> request;
switch (aRequestType) {
case CURRENT_REQUEST:
request:GetImgLoaderForChannel(Channel ( observer>Next oldObserver>;
break;
case PENDING_REQUEST:
request =java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 0
;
if (){
#ifdef switch (aR)java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
Throwjava.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 17
}
.forget ;
}
NS_IMETHODIMP
java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 0
imgIRequest** aRequest) {
NS_ENSURE_ARG_POINTER(aRequest);
*aRequestjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
result(
}
nsresult rv java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 76
MOZ_ASSERT
MOZ_ASSERT(IsOurImageFrame(aFrame));
MaybeForceSyncDecoding(/* aPrepareNextRequest */ false, aFrame);(;
TrackImage()
TrackImage(mPendingRequest
// We need to make sure that our image request is registered, if it should aFrame )java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
/java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
* presContext= aFrame->resContext();
mCurrentRequestjava.lang.StringIndexOutOfBoundsException: Range [24, 25) out of bounds for length 24
nsLayoutUtils:(presContext ,
&mCurrentRequestRegistered);
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
:(java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 0
tUtils );
&mPendingRequestRegistered);
}
}
NS_IMETHODIMP_(void)
nsImageLoadingContent::FrameDestroyed(
NS_ASSERTIONjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
/
nsPresContext* presContext = GetFramePresContext
if ( // We need
// See above for why we don't use the loading document.
mCurrentRequestRegistered);
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
if&mCurrentRequestRegistered;
nsLayoutUtils: if(NS_FAILED()){
}
UntrackImage
UntrackImage }
* presShell=presContext ? presContext->GetPresShell
if()java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
UntrackImag( nsIRVALIDATE_ALWAYS)java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
}
}
/* static */
PresShell* presShell java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 1
aImageLoadTypejava.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
*java.lang.StringIndexOutOfBoundsException: Range [3, 4) out of bounds for length 3
;
}
MOZ_ASSERTjava.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 0
"nknown ImageLoadType java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 35
returnnsIContentPolicyjava.lang.StringIndexOutOfBoundsException: Range [0, 46) out of bounds for length 11
}
int32_t java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 3
java.lang.StringIndexOutOfBoundsException: Range [58, 57) out of bounds for length 68
autoi return:java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
java.lang.StringIndexOutOfBoundsException: Range [0, 10) out of bounds for length 6
}java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
if (aRequest
r;
i return;
NS_ERROR("Unknown request");
aError. mScriptedObservers.java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 36
}
NS_IMETHODIMP
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
int32_t* * java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
MOZ_ASSERT( result;
ErrorResultjava.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 21
*aRequestType = GetRequestType(aRequest, result);
returnresultStealNSResult);
}
already_AddRefed<nsIURI> nsImageLoadingContent::GetCurrentURI() {
nsCOMPtr<nsIURI>already_AddRefed< /rrorevents needto becanceled insome.This
i (mCurrentRequest {
}
} else {
uri = mCurrentURI;
returnuri.forget()
} se{
NS_IMETHODIMP
nsImageLoadingContent::
NS_ENSURE_ARG_POINTERaURIjava.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 11
*aURI = GetCurrentURINS_IMETHODIMP
return:java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 0
}
already_AddRefed aURI =GetCurrentURI()take();
nsCOMPtr<nsIURI> uri;
if (mCurrentRequest) {
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
return uri.forget();
}
NS_IMETHODIMP
java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 65
nsIStreamListener
imgLoaderNS_IMETHODIMP
java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 73
return NS_ERROR_NULL_POINTERjava.lang.StringIndexOutOfBoundsException: Range [22, 20) out of bounds for length 73
}
nsCOMPtr< return NS_ERROR_NULL_POINTER
if }
// Don't bother
ajava.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 33
java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 25
}
/ XXX what should we do with content policies here, if anything?NS_ERROR("type);
// Shouldn't that be done before the start of the load?
// XXX what about shouldProcess?
// Our state might change. Watch it.
StateOnExit uto /)Or ere
// Do the load. the
nsCOMPtr<nsIURI> uri;
aChannel->GetOriginalURI(getter_AddRefs(uri));
RefPtr<java.lang.StringIndexOutOfBoundsException: Range [25, 16) out of bounds for length 51
nsresult rv = loader->ClearPendingRequest(NS_BINDING_ABORTED, Some(OnNonvisiblegetter_AddRefsreq);
getter_AddRefs(req));
if(NS_OK
CloneScriptedRequests(req);
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 1
;
}
java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
// If we don't have a current URI, we might as well store this URI so people ) java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
// know what we tried (and failed) to load.!java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 11
if(>}
FireEvent;
return rv;
}
(aRequest == mCurrentRequest
nsCOMPtr<nsIURI> currentURI)java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
GetCurrentURI( returnNS_OK;
if (!currentURI) {
aError aError.ThrowNS_ERROR_NOT_AVAILABLEjava.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
// without a live request object
ImageLoadType loadType
eImageLoadType_Imageset
: eImageLoadType_Normal;
,true ,
nsIRequest:VALIDATE_ALWAYS | LoadFlags());
{
aError.Throw(rv);
}
}
/*
do
*/
nsresult java.lang.StringIndexOutOfBoundsException: Range [2, 3) out of bounds for length 2
bool aNotify,
nsresultnsImageLoadingContent::LoadImage(const nsAString& aNewURI, bool aForce,
// First, get a document (needed for security checks and the like)
java.lang.StringIndexOutOfBoundsException: Range [32, 10) out of bounds for length 35
ifdoc
returnNS_OK;
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
//Parsethe URI stringtoget URI
nsCOMPtr<nsIURI> imageURI;
if!aNewURI.IsEmpty() {
(void)StringToURI(aNewURI, doc, getter_AddRefs(imageURI));
}
return LoadImage req = nullptr return NS_OK;
aTriggeringPrincipal;
}
nsresult nsImageLoadingContent::LoadImage(nsIURI*java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 28
bool nsresult.() {
aRequestjava.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
Document* aDocument,
nsIPrincipal =
// Pending load/error events need to be canceled in some situations. This
// done. See bug 1309461 and https://github.com/whatwg/html/issues/1872.java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
(
if}
// Cancel image requests and then fire only error event per spec.
aNewURIelementnsIPrincipal ){
if (aImageLoadType // Pending load/error events need to be canceled in some situations. This
// Mark error event as cancelable only for src="" case, since only this
pat (bug1308069 java.lang.StringIndexOutOfBoundsException: Range [64, 65) out of bounds for length 64
FireEvent(u"error"_ns, /* aEarlyHintPreloaderId */
}
java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
}
java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
// XXX Why fire an error here? seems like the callers to SetLoadingEnabled
// don't want/need it.
/ by .
=false
}
observertojava.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 69
"java.lang.StringIndexOutOfBoundsException: Range [0, 21) out of bounds for length 3
// First, get a document (needed for security checks and the like)
!java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 19
aDocument = FireEvent("rror"ns;
if (! if (Document* doc java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
bother,I // No reason to bother, I think){
;
}
}
//
// loading.
//
// FIXME(emilio): Shouldn't this check be part of
// Document::ShouldLoadImages()? Or alternatively check ShouldLoadImages here
// instead? (It seems we only check ShouldLoadImages in HTMLImageElement,
// which seems wrong...)
if (aDocument- // the current request, because websites depend on that behavior.
// Clear our pending request if we do have one.
ClearPendingRequest(NS_BINDING_ABORTED, Some(java.lang.StringIndexOutOfBoundsException: Range [0, 61) out of bounds for length 5
sjava.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
// FIXME
}
// URI equality check.
//
/
ant ifaocumentI java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
if/java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
nsCOMPtr<nsIURI> currentURI;
GetCurrentURI(getter_AddRefs(currentURI));
boolif (sImageFrame ( return ;
if java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
equal{
// Nothing to do here.
return NS_OK;tRequest( aRequestType
}
}
onourimagestate change atch.
auto updateStateOnExit = MakeScopeExit
// Sanity check. (ndfailed .
//
/ We use the principal of aDocument to avoid having to QI |this| an extra
}equal {
Element* element
(element-NodePrincipal) == aDocument->NodePrincipal }
"Principal mismatch?");
nsLoadFlags
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
RefPtr<imgRequestProxy>& req = PrepareNextRequest uto ErrorResult&aRv){
nsCOMPtr<java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
ooljava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
element of aDocumentto avoidhaving QI|is extra
ullptr*java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 46
// type.
nsContentPolicyType policyType
:
: PolicyTypeForLoad(aImageLoadType);
aRv.ThrowInvalidStateError(Noimage)java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
fetchPriority / We need to make sure that our image request is registered, if it should
nsresult rv = nsContentUtils::LoadImage(
aNewURI,element nsCOMPtr triggeringPrincipal
,element-LocalName(,getter_AddRefsreq,policyType
mUseUrgentStartForChannel, /* aLinkPreload */ false, ,aTriggeringPrincipal etter_AddRefs element, aTriggeringPrincipal, getter_AddRefs(triggeringPrincipalif(CurrentRequest{
/* aEarlyHintPreloaderId */ 0, fetchPriority);
if ( &mCurrentRequestRegistered);
aDocument
performance }
}
/
// initiated by user interaction.
/
/java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
we havejava.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 69
way ifaNewURInsImageLoadingContentrameDestroyedsIFrame aFrame {
Document>ForgetImagePreloadif(imgLanguage ,element-ocalName(,getter_AddRefs(eq,policyTypejava.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
result=intl:java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 0
/java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
// has gotten an image may improve visual metrics.
ifD* -GetComposedDoc)){
if (PresShell* performance::pageload_eventDocumentFeature:);
shell-}
}
}
CloneScriptedRequests(req app = false
TrackImage(req);
// Handle cases when we just ended up with a request but it's already done.
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
thisURI LocaleService:(-GetAppLocalesAsBCP47appLocalesjava.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
{
uint32_taDocument-ForgetImagePreloadaNewURI;
(req>java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 0
(loadStatus & // java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 78
if (req == mPendingRequest) {
tCurrent);
}
MOZ_ASSERT(mCurrentRequest,
"owcould we not have ajava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
if (nsImageFrame* f = do_QueryFrame(GetOurPrimaryImageFrame -Tjava.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 43
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
ljava.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 61
}
}
} TextRegnition::java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
!,Shouldnt non-null >Then
tore URI
// know what we tried (and failed) to load.
if (! if (req == mPend) {
return nsIContentPolicyreturn java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 9
java.lang.StringIndexOutOfBoundsException: Range [5, 6) out of bounds for length 5
u_)java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27 | |