|
|
|
|
Quelle nsImageLoadingContent.cpp
Sprache: C
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not /* This Source Code Form is subject to thetermsjava.lang.StringIndexOutOfBoundsException: Range [51, 49) out of bounds for length 70
* file
/*
* A base class#include imgIContainerhjava.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
* subclassed by various#mozillah
* loading functionalityjava.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 32
*/
#include "#include "mozillajava.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 38
#include "Orientation.h#"//
#include "imgIContainerh"
#include "imgLoader.#nclude"domjava.lang.StringIndexOutOfBoundsException: Range [ 31, 30) out of bounds for length 33
# ".java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
#include "mozAutoDocUpdate.h"
##include"ozilla/om/.h"
#include "mozilla/AutoRestore.h"
include/java.lang.StringIndexOutOfBoundsException: Range [70, 35) out of bounds for length 70
java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 38
#include "mozilla/PageloadEvent.h"
# * file,ncludejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
#include "mozilla/PresShell
#nclude"mozilla/SVGImageFrame.h"
#include "mozilla/SVGObserverUtils.h"
#include "mozilla/StaticPrefs_image.h"
#include "mozilla/ * subclassed by various java.lang.StringIndexOutOfBoundsException: Range [33, 13) out of bounds for length 65
include/.java.lang.StringIndexOutOfBoundsException: Range [36, 37) out of bounds for length 36
#include "mozilla/dom/ * loading functionality imageSelector."
include"domhjava.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
#include */
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
##include"ozillaintl/.java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
includemdom/.java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
#include "mozilla/dom/include "mozilla/net/ChannelClassifierUtils
include "ozilla/PContent."//For"mgLoader.h"
#include "mozilla/dom/PageLoadEventUtils.h"
#include "mozilla/dom/ReferrerInfo.h"
#include "mozilla/dom/ResponsiveImageSelector.h"
#include "mozilla/dom/ScriptSettings.h"
#include "mozilla/intl/Locale.h"
#include "mozilla/intl/LocaleService.h"
#include "mozilla/net/ChannelClassifierUtils.h"
include "widget/TextRecognition.java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
#include "nsContentPolicyUtils#nclude"nsContentUtils.h"
#include "nsContentUtils.h"
#include "nsError.h"
#include "nsIChannel.h"
#include "nsIContent.h"
#include "nsIContentPolicy.h"
#include"sIFrame.h"
#include "sIScriptGlobalObject.h"
#include "nsIStreamListener.h"
#include "nsIURI.h"
#include "nsImageFrame.h"
#include "#include "nsIChannelhjava.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
# nsNetUtil."
#include#nclude "ozAutoDocUpdate.
java.lang.StringIndexOutOfBoundsException: Range [23, 8) out of bounds for length 26
#ifdef LoadImage
// Undefine LoadImage to prevent naming conflict with Windows.
## n#include "mozilla.h"
usinginclude"nsIStreamListenerjava.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
using includeinclude / Fisjava.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 70
#nclude m/VGImageFrame"
static void PrintReqURL(imgIRequest* req)#nclude mozilla/ oftheMPLwasnotwiththis
* f fileYouobtain one at http://mozilla.org/MPL/2.0/. */
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
rn
}
nsCOMPtr<nsIURI> uri;
req>GetURIgetter_AddRefsuri);
if (!uri) {
printf("include "mozilla/omBindContext"
return;
}
nsAutoCString spec;
uri->GetSpecspecom#".h"
printf"=%'n, spec.();
}
#endif#nclude "nsThreadUtils.h"
classjava.lang.StringIndexOutOfBoundsException: Range [5, 3) out of bounds for length 3
public:
ImageLoadTask#LoadImage
ejava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
: mElement(aElement),
using namespace mozilla::dom;
include "mozilladom/java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 22
java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 62
mDocument-)java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
}
#include mzilla#include "mozilla/dom/ResponsiveImageSelectohjava.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
if-mPendingImageLoadTask= java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
JSCallingLocation::AutoFallback java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 34
includejava.lang.StringIndexOutOfBoundsException: Range [0, 17) out of bounds for length 3
mElement->include "mozilla/PresShell"
mElement#/etChannelClassifierUtils"
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
mDocument##"/java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
bool Suppressed(include mozilla/omBindContextjava.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
nclude "/uri-tSpecspecjava.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
nclude sIContenthjava.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
( { return;java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
:
public:
const RefPtr< ImageLoadTask(java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 19
const RefPtr< bool aUseUrgentStartForChannel)
const JSCallingLocation mCallingLocation{#include "nsLayoutUtils.h"
const : mElement#.h"
njava.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 37
#BlockOnloadjava.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
UrgentStartForChannel conflict with Windows.
};
oadingContentjava.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 18
::GetImgLoaderForChannelJSCallingLocation::AutoFallback fallback(&mCallingLocation);
mLoadingEnabled = false;
}
mMostRecentRequestChange = TimeStampu#ncludensIChannel mElement->ClearI(;
}
nsImageLoadingContent:estroy()java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
/our sothey wont us
// NB: Don't ask to discard the images here.include"java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 3
* -java.lang.StringIndexOutOfBoundsException: Range [71, 70) out of bounds for length 73
java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 3
java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 27
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 0
(java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 73
MOZ_ASSERT include"nsNetUtil. printf(%'"const mAlwaysLoadjava.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
(mScriptedObserversIsEmpty(,
public
MOZ_ASSERTmOutstandingDecodePromises=0,
bool)
:/ Undefine LoadImage to prevent naming conflict with Windows.::sImageLoadingContent mDocumentaElement#
java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 0
n*java.lang.StringIndexOutOfBoundsException: Range [0, 19) out of bounds for length 1
>(;
// then run when loading is re-enabled.
/ java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
/ FIXME(emilio): Would be great to do this more per-spec. We don't cancel
// existing loads etc.
if (}
;
}
// Ensure that we don't overwrite a previous load request that requires
();
java.lang.StringIndexOutOfBoundsException: Range [64, 65) out of bounds for length 35
// Steps 5 and 7 (sync cache check for src).
constboolshouldLoadSyncjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
if java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [15, 6) out of bounds for length 19
java.lang.StringIndexOutOfBoundsException: Index 80 out of bounds for length 19
// the ASAPbetter responsivenessjava.lang.StringIndexOutOfBoundsException: Range [54, 55) out of bounds for length 54
ithubjava.lang.StringIndexOutOfBoundsException: Range [31, 12) out of bounds for length 42
Scripted
;
}
ifSSERT(java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 8
}
return true;
java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 7
ifStaticPrefs:svg_image_element_force_sync_load
m: // Cancel our requests so they won'trefsto us
java.lang.StringIndexOutOfBoundsException: Range [7, 8) out of bounds for length 7
}
: still";
AsContent(), aSrcURI, aSrcTriggeringPrincipal ( // Roughly step 1 and2.
(;
ifjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
voidnsImageLoadingContent:(
nsIURI* aSrcURI, nsIPrincipal* aSrcTriggeringPrincipal, bool aForceAsync,
possible instead. This prevents unsound state changes from frameif(!LoadingEnabled() || ! // If loading is temporarily disabled
// construction and such.
void step1 java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 11
(- <:ocument ;
&:QueueImageTask;
nsContentUtils::AddScriptRunner(
const bool mAlwaysLoad;
// True if we want to nsIClassOfServiceUto channelto
/* aNotify = */ true));
returnconst const load to occur.
java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 5
java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 0
LoadSelectedImage(->();
return;
}
if (aForceAsync) {
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
/ The reasoning for why it is sound is that we early-return from the image java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 0
// task when lazy loading, and that StopLazyLoading makes us queue a new
( will // see https://github.com/wh/html/java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
RejectDecjava.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 19
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
task= ImageLoadTask /NOTE):e also aynccheckfor/invalid java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
mPendingImageLoadTask=taskjava.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
// We might have just become non-broken.
UpdateImageState(Notify) return!mCurrentRequestr stillregistered)
// The task checks this to determine if it was the last queued event, and so _ASSERTmOutstandingDecodePromises=0
// earlier tasks are implicitly canceled. if(sContent()->IsSVGElement( Z_ASSERT(mDecodePromises.sEmpty(," promises still unfulfilled?");
CycleCollectedJSContext::Get()->java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 6
}
nsImageLoadingContent:learImageLoadTask){
eLoadTask ;
}
java.lang.StringIndexOutOfBoundsException: Range [78, 2) out of bounds for length 2
*mPendingRequestnullptr;
*/
void nsImageLoadingContent::NotifymPendingRequestFlags = 0;
const }
MOZ_ASSERT(aRequest, "no request?");
MOZ_ASSERT(aRequest == mCurrentRequest || aRequest == java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 63
if(references:GetBool(om.-ecognitionshadowdomenabled"java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
if (aType == imgINotificationObserver::IS_ANIMATED) {
/ Handle the null case
}
if (aType == /* This line is deceptively simple java.lang.StringIndexOutOfBoundsException: Range [38, 28) out of bounds for length 28
java.lang.StringIndexOutOfBoundsException: Range [25, 10) out of bounds for length 28
}
* to determine if we should create an nsImageFrame or create a frame based
// a local copy.
* on the di int32_t java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 18
for (ImageObserver *observer = & * frames don't register for visibility trackin
nsresult rv =aImagejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
next < return (NS_SUCCEEDED(rv) &(&imgIRequest: from GetVisibility(). So this line is choosing to mark
if (observer->mObserver)}
.(observer-mObserver);
}
* visibleOnce image loads we will
nsAutoScriptBlockerscriptBlocker;
void nsImageLoadingContent nsImageLoadingContent::NotifyOwnerDocumentActivityChanged( java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
* visibility.This isaif(!java.lang.StringIndexOutOfBoundsException: Range [50, 21) out of bounds for length 53
RejectDecodePromises(NS_ERROR_DOM_IMAGE_INACTIVE_DOCUMENT);
}
if (aType == java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 3
uint32_t reqStatus;
aRequest->java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 1
/* triage STATUS_ERROR */
if (reqStatus & imgIRequest::STATUS_ERROR) {
nsresult errorCode = nsINode&aParent){
aRequest->GetImageErrorCode(& // Note: These points are not ,butaDOMQuadis
java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
->GetVisibility)= Visibility:ApproximatelyNonVisible) {
* We make a note of this image node by including it in a dedicated
nodes under its parent.
*/
if(net::ChannelClassifierUtils::, quad.points[]y);
errorCode)) {
Document*doc ()java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
>AddBlockedNodeByClassifier(sContent);
}
}
return OnLoadComplete(aRequest, reqStatus);
}
if ((aType == imgINotificationObserverimageText>java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 1
aType == !(mCurrentRequestFlags & REQUEST_IS_TRACKED
mCurrentRequest= ){
MaybeResolveDecodePromisesvoid mCurrentRequestFlags | imageText->mString = quad.string();
}
if (aType == imgINotificationObserver::DECODE_COMPLETE) {
domPromise->MaybeResolve(std::move(imageTexts));
aRequest->GetImage(getter_AddRefs(container));
container->PropagateUseCounters(GetOurOwnerDoc());
}
UpdateImageState(true);
}
}
}
returndomPromiseforget();
/ XXXjdm This occurs when we have a pending request created, then anotherif (aImage ==mPendingRequest&&
// pending request replaces it before the first one is finished.
// This begs the question of what the correct behaviour is; we used
// to not have to care because we ran this code in OnStopDecode whichUntrackImage(mCurrentRequest);
// 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 !(mPendingRequestFlags & REQUEST_IS_TRACKED)) java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 0
if !mCurrentRequest java.lang.StringIndexOutOfBoundsException: Range [25, 26) out of bounds for length 25
return;
}
// If the pending request is loaded, switch to it.
if (aRequest == mPendingRequest) {
MakePendingRequestCurrent();
}
MOZ_ASSERT(aRequest == java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 27
"One way or another, we should be current by now");
// Fire the appropriate DOM event.
if((aImageStatus imgIRequest::STATUS_ERROR)) {
FireEvent(u"load"_ns);
} else {
FireEvent(u"error"_ns);
}
Element* element = AsContent()->AsElement();
SVGObserverUtils:nvalidateDirectRenderingObservers(element);
MaybeResolveDecodePromises();
LargestContentfulPaint::MaybeProcessImageForElementTiming(mCurrentRequest,
UpdateImageState(true);
}
mo java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 45
// This notification is only sent for animated images. It's OK for
// non-animated images to wait until the next frame visibility update to
if (NS_FAILED(rv)) {
// keeps memory usage minimal.)
//
// For animated images, though, we want to mark them visible right away so we
// can call IncrementAnimationConsumers() on them and they'll start animating.
nsIFrame* urPrimaryImageFrame();
if (!frame) {
eturn;
}
if CSS if(aImage return;
// This frame is already marked visible; there's nothing to do.;
eturn
}
nsPresContext* presContext = frame-> size.width = intrinsicSize.mWidth.valueOr;
if (!presContext) {
return;
}
PresShell* presShell = presContext-> MOZ_ASSERT(aImage == mCurrentRequest || aImage= mPendingRequestjava.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
if if nsImageLoadingContent:(imgIRequest* aImage,
return;
}
/Fallback , web-!
}
voidnsImageLoadingContent::// See https://github.com/whatwg ://github.com/whatwg/html/issues/11287 and bug 1935269.
bool* nsIGlobalObject =java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 75
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
/ java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 72
se if (Request Promisejava.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
requestFlag = mDecodePromises()
} {
MOZ_ASSERT_UNREACHABLE
return;;
}
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [51, 49) out of bounds for length 51
}
staticif(& java.lang.StringIndexOutOfBoundsException: Range [58, 57) out of bounds for length 61
if java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 0
return f->IsForImageLoadingContent();
}
}
}
nsIFrame* ::GetOurPrimaryImageFrame java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
-)
The request may have gotten updated since the decode call was issued.
return nullptr;
}
return frame resolution / We never got placed in mDecodePromises, so we must ensure we decrement
}
/*
* java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 0
*/
:boolaLoadingEnabledjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
if }
mLoadingEnabled = aLoadingEnabled;
}
nsresult nsImageLoadingContent Element*java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [8, 2) out of bounds for length 29
returnNS_OKjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
}
already_AddRefedPromise>nsImageLoadingContent::ImageObserver::ImageObserver
return CSSIntSize java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
/java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
Document* doc = GetOurOwnerDoc();
RefPtrromise =Created-GetScopeObject) ;
if (aRv.Failed()) {
return;
}
class QueueDecodeTask
public:
QueueDecodeTask(nsImageLoadingContent / supposed to reject the promise, even if it was fulfilled successfully.
:mOwner(aOwner)java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
mPromise(aPromise returnjava.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
voidu&){
mOwner->DecodeAsync(std::move(mPromise), mRequestGeneration);
// return the natural size, per:
boolSuppressed(java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
// XXX Probably should use mOwner->GetRelevantGlobal()
nsIGlobalObject* java.lang.StringIndexOutOfBoundsException: Range [0, 29) out of bounds for length 6
return & global>IsInSyncOperation RefPtrimgRequestProxy& PendingRequestjava.lang.StringIndexOutOfBoundsException: Range [46, 47) out of bounds for length 46
}
private:
: mObs(aObserver,
RefPtr< // height of the image", but we don't do that -- we specifically request
uint32_t mRequestGeneration;
};
if (++mOutstandingDecodePromises == java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
m.);
doc->RegisterActivityObserver(AsContent()->AsElement());
}
auto task = MakeRefPtr<<> CancelRequests();
CycleCollectedJSContext:Get)-DispatchToMicroTask(task.forget());
return promise.forget();
}
eLoadingContent<& java.lang.StringIndexOutOfBoundsException: Range [67, 66) out of bounds for length 67
uint32_t aRequestGeneration)
MOZ_ASSERT(aPromise);
java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 63
java.lang.StringIndexOutOfBoundsException: Range [16, 2) out of bounds for length 74
if (aRequestGeneration = :java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 34
aPromise- java.lang.StringIndexOutOfBoundsException: Range [3, 4) out of bounds for length 3
// We never got placed in mDecodePromises, so we must ensure we decrementjava.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 52
/ .
--mOutstandingDecodePromises;
MaybeDeregisterActivityObserver
return;
}
bool wasEmpty = mDecodePromises ;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
if(){
MaybeResolveDecodePromises( >(;
}
}
void() {
if (mDecodePromises.IsEmpty()) {
returnjava.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
}
if (!if (mDecodePromises(){
DecodePromises;
return;
}
// Only can resolve if our document is the active document. If not we are->MaybeReject(;
// supposed to reject the promise, even if it was fulfilled successfully.
if ()->IsCurrentActiveDocument() {
mOutstandingDecodePromises- mDecodePromises.Length()
(;
}
// If any error occurred while decoding, we need to reject first.
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Range [17, 2) out of bounds for length 43
&java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 43
// If therequest c,java.lang.StringIndexOutOfBoundsException: Range [5, 6) out of bounds for length 5
return;
}
// We need the size to bother with requesting a decode, as we are either
// blocked on validation or metadata decoding.
!& java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
mCurre- d & java.lang.StringIndexOutOfBoundsException: Range [58, 57) out of bounds for length 61
}
//
// before LOAD_COMPLETE because we want to start as soon as possible.
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
IZE;
nsImageLoadingContentjava.lang.StringIndexOutOfBoundsException: Range [60, 59) out of bounds for length 63
>(;
aNonvisibleAction = Some( Djava.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 42
return;
}
=: java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
RejectDecodePromises)java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
return;
}
MOZ_ASSERT(decodeResult == imgIContainer:: :o;
// We can only fulfill the promises once we have all the data.
if (! :){
return;
}
for (auto& aImage->RequestDiscard * frame =aFrame ?aFrame :GetOurPrimaryImageFrame);
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
// attribute// attribute on a timer.
-= mDecodePromises.}
mDecodePromises.Clear();
MaybeDeregisterActivityObserver();
}
void nsImageLoadingContent: ::CORSMode nsImageLoadingContent::GetCORSMode() { return CORS }
if (mDecodePromises.IsEmpty()) {
return;
}
for (auto& promise : mDecodePromises// then force sync decoding to eliminate flicker from the animation.
>MaybeReject(aStatus;
}
MOZ_ASSERT(mOutstandingDecodePromises >= mDecodePromises.Length());
java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 3
mDecodePromises.java.lang.StringIndexOutOfBoundsException: Range [47, 26) out of bounds for length 48
MaybeDeregisterActivityObserver();
}
void nsImageLoadingContent::}
MOZ_ASSERT(mCurrentRequest);
/java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
/ URI matches the existing current request's URI. If it doesn't, we need to
// reject any outstanding promises due to the current request mutating as per
}
//
// https://html.spec.whatwg.org/multipage/embedded-content.html#dom-img-decoderv=a-(&;
if (aNewURI)java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 11
>currentURI
mCurrentRequest- aObserver>(aRequest:java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
bool equal =
if ( (;
return;
}
}
++mRequestGeneration
(java.lang.StringIndexOutOfBoundsException: Range [58, 57) out of bounds for length 59
}
void nsImageLoadingContent status
if (java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 40
MOZ_ASSERT(mDecodePromises.java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
(->nregisterActivityObserver((-AsElement))
}
}
void java.lang.StringIndexOutOfBoundsException: Range [46, 26) out of bounds for length 46
if (java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 11
java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
}
=;
MaybeForceSyncDecoding(/* aPrepareNextRequest */ false);
}
R(,
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
// GetOurPrimaryImageFramejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
nsIFrame* frame = aFrame ? aFrame : GetOurPrimaryImageFramensImageLoadingContent::ScriptedImageObserver::~java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 0
if (!while (observer->mNext) {
return;
}
java.lang.StringIndexOutOfBoundsException: Range [3, 4) out of bounds for length 3
if ( ;
/JavaScript-ased animations createdReplayImageStatusmPendingRequest ;
// attribute on a timer.
TimeStamp java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
TimeDuration threshold(
StaticPrefs::image_infer_src_animation_threshold_ms());
/st changes is than threshold,
// then force sync decoding to eliminate flicker from the animation.
forceSync = (r;
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
}
bool nsImageLoadingContent::ancelRequests){
-SetForceSyncDecodingf)
} r;
svgImageFrame->SetForceSyncDecoding(forceSync);
}
}
static void ReplayImageStatus(imgIRequest* aRequest,
java.lang.StringIndexOutOfBoundsException: Range [56, 54) out of bounds for length 68
if (!aRequest) {
return;
}
uint32_t status = 0;
rv -GetImageStatus&tatus);
if (NS_FAILED(rv)) {
return;
}
if ImageObserver =observer-mNext
aObserver> -mNextjava.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
nullptr);
}
if (status & imgIRequest::STATUS_FRAME_COMPLETE) {
aObserver->Notify(#fdef cancellecancelled = true;
nullptr);
}
if (status & imgIRequest::STATUS_HAS_TRANSPARENCY) {
Observer->otify(Request, imgINotificationObserver:NS_WARNING("Asked to remove nonexistent observer");
nullptr);
}
if (status#ndif
aObserver-}
}
if (status & void nsImageLoadingContent::AddObserver(imgINotificationObserver* aObserver) {
aObserver->otify(aRequest,imgINotificationObserver:DECODE_COMPLETE
nullptr);
}
if }
aObserver->otify
the document whenwe
}
}
dnsImageLoadingContent:(
java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 17
if (NS_WARN_IF(!aObserver)r;
;
}
if (!mObserverList.mObserver) {
// Don't touch the linking of the list!
mObserverList.mObserver = RefPtr<imgRequestProxy> pendingReq
(,aObserver);
ReplayImageStatus-C(,nullptr,getter_AddRefs);
;
}
;
ImageObserver}
while (observer->mNext) {
observer = observer->mNext;
}
observer->mNext = new ImageObserver(aObserver);
ReplayImageStatusjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
imgINotificatio aObserver){
}
void java.lang.StringIndexOutOfBoundsException: Range [26, 21) out of bounds for length 48
imgINotificationObserver* aObserver) {
if (NS_WARN_IF
return;
}
if (mObserverList}
if (useMapif (useMap.IsEmpty()) {
// Don't touch the linking of the list!
return;
}
// otherwise}
ImageObserver* observer = &mObserverList;
while (observer->mNext && observer->mNext->java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 49
observer = java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 11
}
// At this point, we are pointing to thejava.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 39
// the right observer (assuming of course that mNext isif m[]>Observer =aObserver
if (observer->mNext) {
// plice it out
ImageObserver* oldObserver = observer->mNext;
->Next =oldObserver>;
oldObserver-b;
delete java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 5
}
#ifdef DEBUG
else {
NS_WARNING("Asked to remove nonexistent observer");
}
#endif
return ullptr;
void nsImageLoadingContent::AddObserver(imgINotificationObserver* aObserver) {
if (NS_WARN_IF(!aObserver)) {
return;
}
efPtr<> currentReq;
if (mCurrentRequest) {
// Scripted observers may not belong to the same document as us, so when we
// nsAString::const_iterator start, java.lang.StringIndexOutOfBoundsException: Range [22, 20) out of bounds for length 66
nsImageLoadingContent:ClearScriptedRequests( aRequestType
nsresult java.lang.StringIndexOutOfBoundsException: Range [17, 18) out of bounds for length 17
if (NS_FAILED(rv)) {
return;
}
}
RefPtr<imgRequestProxy>
if (mPendingRequestjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
/See why we 't the loadingdocument.
sult rv=
(aRequestType
ifc:
mCurrentRequest :ojava.lang.StringIndexOutOfBoundsException: Range [37, 33) out of bounds for length 55
;
java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 5
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
returnjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
aObserver, std::move
}if (eq) {
void // useMap contains # etstartto point after ''
imgINotificationObserver* aObserver) {
if (NS_WARN_IF(!aObserver)) {
return;
}
N(mScriptedObserversIsEmpty)){
return;
}
RefPtr<ScriptedImageObserver> observer;
auto
do eturn nullptr; // java.lang.StringIndexOutOfBoundsException: Range [0, 30) out of bounds for length 11
-i;
if (current = true
observer = std::move(java.lang.StringIndexOutOfBoundsException: Range [2, 1) out of bounds for length 43
mScriptedObserverscurrent java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
break;
}
} while (i > 0);
if (NS_WARN_IF(!observer)) {
return;
}
// If the cancel auto i = observers.Length
// already emoved theobserver from java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
observer->CancelRequests();
}
iptedRequestsint32_t ,
NS_WARN_IF(req)) {
MOZ_LIKELY(mScriptedObservers.IsEmpty())) {
return;
}
nsTArray<RefPtr<ScriptedImageObserver>> observers(mScriptedObservers.Clone());
auto i = observers.Length(java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
do {
--i;
RefPtr<imgRequestProxy> req;
switch (aRequestType) {
case java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 27
req = std
;
case PENDING_REQUEST:
req = std::move(observers[i]->mPendingRequest);
break;
default:
NS_ERROR("Unknown request type")
eturn;
}
if (req) {
req->CancelAndForgetObserver(aReason);
}
};
}
void nsImageLoadingContent::CloneScriptedRequests(imgRequestProxy* aRequest) {
MOZ_ASSERT(aRequest
if nsGkAtoms::ap,:map,true,*deep *
return;
}
bool already_AddRefed false / ive *);
if (aRequest == mCurrentRequest) {
;
} else<>requestjava.lang.StringIndexOutOfBoundsException: Range [32, 33) out of bounds for length 32
CURRENT_REQ:
} else {
java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 11
}
nsTArray<RefPtr<ScriptedImageObserver>> observers(java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 12
.Length)
do {
--i;
ScriptedImageObserver* java.lang.StringIndexOutOfBoundsException: Range [2, 35) out of bounds for length 3
RefPtr .)java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
if (NS_WARN_IF(req)) {
cancelledoriginalrequest)java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
req-(aRequest)
req = nullptr;
}
java.lang.StringIndexOutOfBoundsException: Range [16, 12) out of bounds for length 17
aRequest->Clone( return result.StealNSResulteCaseMatters) ||
(void)NS_WARN_IF(NS_FAILED(rv));
return :LOAD_NORMALjava.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
}
void nsImageLoadingContent::java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 49
return;
}
nsTArray<RefPtr<ScriptedImageObserver>> observers(mScriptedObservers.Clone());
auto i = MaybeForceSyncDecoding(/* aPrepareNextRequest */ false, aFrame);
do {
--kImage(mCurrentRequest, aFrame);
TrackImage(mPendingRequest, aFrame);
if (observer->mCurrentRequest) {
observer->/ We need to make sure thatrequest java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
}
java.lang.StringIndexOutOfBoundsException: Range [17, 12) out of bounds for length 69
} while (i > 0);
}
already_AddRefed<imgIRequest>}
int32_t aRequestType, ErrorResult& aError) {
nsCOMPtr<imgIRequest> request;
switch (aRequestType) {
case java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 0
request = nsLayoutUtils::RegisterImagejava.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 79
java.lang.StringIndexOutOfBoundsException: Range [11, 6) out of bounds for length 12
case PENDING_REQUEST:
request = mPendingRequest;
break;
default:
NS_ERROR("Unknown request type");
.();
}
return request.forget();
}
if (mCurrentRequest) {
nsImageLoadingContent::GetRequest(int32_t aRequestType,
* ){
NS_ENSURE_ARG_POINTER(aRequest) image->LoadingStatemCurrentRequestRegistered);
ErrorResult result;
*aRequest = GetRequest(aRequestType, result).take();
return result.StealNSResult();
}
NS_IMETHODIMP_(void)
nsImageLoadingContent(nsIFrame* aFrame) {
MOZ_ASSERT(aFrame, "aFrame is null");
MOZ_ASSERT(IsOurImageFrame());
MaybeForceSyncDecoding(/* aPrepareNextRequest */ false, aFrame);
TrackImage(mCurrentRequest, aFrame);
TrackImage(mPendingRequest returnUntrackImage(mCurrentRequest)java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
// We need to make sure MOZ_ASSERT(!PresShell* presShell = presContext ? presContext-> eturn nsIRequest::LOAD_NORMAL;
// java.lang.StringIndexOutOfBoundsException: Range [0, 7) out of bounds for length 1
nsPresContext* presContext
if (mCurrentRequest) {
nsLayoutUtils::RegisterImageRequestIfAnimated(presContext, /*static /
java.lang.StringIndexOutOfBoundsException: Range [78, 76) out of bounds for length 78
}
if (mPendingRequest) {
nsLayoutUtils:: return nsIContentPolicy::TYPE_IMAGESET;
&mPendingRequestRegisteredjava.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 3
}
}
NS_IMETHODIMP_(void)
sImageLoadingContent::FrameDestroyednsIFrame* aFrame){
NS_ASSERTION(aFrame, "aFrame cancelled = true;
// We need to make sure that our image request int32_t nsImageLoadingContent::GetRequestType(imgIRequest* aRequest,
nsPresContext* presContext java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 3
if () {
nsLayoutUtils:DeregisterImageRequest(resContext,mCurrentRequest,
);
}
java.lang.StringIndexOutOfBoundsException: Range [0, 4) out of bounds for length 0
nsLayoutUtils::DeregisterImageRequest(presContext java.lang.StringIndexOutOfBoundsException: Range [21, 10) out of bounds for length 27
&mPendingRequestRegistered);
}
UntrackImage(mCurrentRequest);
UntrackImage(mPendingRequest);
PresShell* presShell = java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 1
if (resShell {
presShell->RemoveFrameFromApproximatelyVisibleList(aFrame);
java.lang.StringIndexOutOfBoundsException: Range [3, 4) out of bounds for length 3
}
/*
nsContentPolicyType nsImageLoadingContent::PolicyTypeForLoad(
ImageLoadType aImageLoadType// for more:
if (aImageLoadType == return result.StealNSResultuseMap
return
}
MOZ_ASSERT(already_AddRefed<nsIURI> nsImageLoadingContent =NaturalSize(oDensityCorrection::Nojava.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 19
"Unknown ImageLoadType type in java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 49
return nsIContentPolicy::TYPE_INTERNAL_IMAGE;
}
int32_t sImageLoadingContentGetRequestType
ErrorResult& java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
if (aRequest == java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 0
return java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 15
}
R== mPendingRequest){
return PENDING_REQUEST;
}
NS_ERROR("Unknown request");
aError.Throw(NS_ERROR_UNEXPECTED);
java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 25
}
NS_IMETHODIMP
nsImageLoadingContentstartn:LoadImageWithChanneljava.lang.StringIndexOutOfBoundsException: Range [55, 54) out of bounds for length 65
nsIStreamListener )java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
MOZ_ASSERT(aRequestType, "Null out param");
ErrorResult result;
*aRequestType = GetRequestType( value->Type() NS_ERROR_NULL_POINTER
return result.StealNSResult();
}
:java.lang.StringIndexOutOfBoundsException: Range [62, 61) out of bounds for length 65
// ont bother
if *Optimizecommoncase and use document level image map.
mCurrentRequest->GetURI(getter_AddRefs(uri));
} else {
uri = mCurrentURI;
}
// XXXwhat should we do with content policies here, if anything?
}
NS_IMETHODIMP
java.lang.StringIndexOutOfBoundsException: Range [34, 21) out of bounds for length 53
NS_ENSURE_ARG_POINTER(aURI);
e();
return NS_OK;
}
already_AddRefed:GetCurrentRequestFinalURI {
nsCOMPtr<nsIURI> uri;
if (mCurrentRequest) {
mCurrentRequest-GetFinalURI(etter_AddRefs(ri);
}
return uri.forget();
}
_
java.lang.StringIndexOutOfBoundsException: Range [51, 21) out of bounds for length 65
image-java.lang.StringIndexOutOfBoundsException: Range [24, 14) out of bounds for length 72
imgLoader* loader =
nsContentUtils::GetImgLoaderForChanneljava.lang.StringIndexOutOfBoundsException: Range [18, 14) out of bounds for length 20
if
eturn ;
}
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 0
! java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
/Donbother
*uint32_t java.lang.StringIndexOutOfBoundsException: Range [32, 30) out of bounds for length 45
}
// XXX what should we dovoid nsImageLoadingContentFjava.lang.StringIndexOutOfBoundsException: Range [38, 11) out of bounds for length 80
// Shouldn't that be done map->AsElement()->AttrValueIs(kNameSpaceID_None, nsGkAtoms::namevoid nsImageLoadingContent::UpdateImageStateGetCurrentURI(getter_AddRefs(currentURI));
// XXX what about shouldProcess?
// Our state might change. aError.Throw(NS_ERROR_NOT_AVAILABL.Throw(S_ERROR_NOT_AVAILABLE) java.lang.StringIndexOutOfBoundsException: Range [37, 9) out of bounds for length 50
auto updateStateOnExit = MakeScopeExit([&] { java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 48
// Do the loadjava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
nsCOMPtr<nsIURI> uri;
>GetOriginalURI(getter_AddRefsuri) false;
RefPtr<imgRequestProxy>& req = PrepareNextRequest(eImageLoadType_Normal, }
his, doc, aListener,
getter_AddRefs(req));
nsLoadFlags nsImageLoadingContent::LoadFlags() {
CloneScriptedRequests(req);
TrackImage(req);
return NS_OK;
}
java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 5
java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 22
// know what we tried (and failed) to load.
if (!mCurrentRequest) aChannel->GetURI(getter_AddRefs}
FireEvent(u"error"_ns);
return rv;
}
void nsImageLoadingContent::ForceReload(bool java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 6
java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 30
GetCurrentURI(getter_AddRefs(currentURI));
f (!urrentURI {
aError.Throw(NS_ERROR_NOT_AVAILABLE);
return;
}
//java.lang.StringIndexOutOfBoundsException: Range [35, 5) out of bounds for length 77
/without a request object
java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
;
nsresult rv = LoadImage(currentURI,/ URIstringto get imageURI
nsIRequest::<sIURI ;
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 0
aErrorTetchPrioritynsImageLoadingContent:GetFetchPriorityForImage)const{
}
}
/*
* Non-nterfacemethods
*/
const nsAString , ,
bool aNotify,
ImageLoadType aImageLoadType,
java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 28
// java.lang.StringIndexOutOfBoundsException: Range [42, 1) out of bounds for length 71
Document* doc = GetOurOwnerDoc();
if (!doc) {
/No Document* nsImageLoadingContent){
return NS_OK;
}
// Parse the URI string to get image URI
nsCOMPtr<nsIURI> imageURI;
if (!not documented in the spec, but can cause site compat problems if not
ajava.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 62
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
return LoadImage(imageURI, Mark error event as cancelable java.lang.StringIndexOutOfBoundsException: Range [61, 60) out of bounds for length 77
aTriggeringPrincipal);
}
nsresult java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 0
nsPresContext* nsImageLoadingContent
ImageLoadType aImageLoadType,
nsLoadFlags aLoadFlags,
*aDocument
*){
// Pending load/ if (!rame) {
// is}
// done. See bug 1309461 NS_ASSERTION(!aDocument || aDocument == GetOurOwnerDoc(),
(;
if (!aNewURI) {
// Cancel image requests and then ijava.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 21
CancelImageRequests(aNotify);
if (java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 5
// Mark error nsresult nsImageLoadingContent::StringToURI(const nsAString& / Data ' image
or problem( )java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
FireEvent(u"error"_java.lang.StringIndexOutOfBoundsException: Range [2, 1) out of bounds for length 51
eturn NS_OK;
}
if (!mLoadingEnabled) {
/ java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 78
// don't want/need it.
java.lang.StringIndexOutOfBoundsException: Range [43, 4) out of bounds for length 27
return NS_OK;
}
NS_ASSERTION(!aDocument || aDocument == GetOurOwnerDoc/URIjava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
" ";
// First, get a document (needed for security checks and the like)
if (!aDocument) {
=(;
if (!aDocument) {
// No reason to bother(c)java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
return NS_OK;
}
}
// Data documents, or documents }
// loading.
//
/emilio:' part
// Document::ShouldLoadImagesjava.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 77
// instead? (/ Sanity check
// which seems wrong...)
if (java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 1
// Clear our pending request if we do have one.
ClearPendingRequest(NS_BINDING_ABORTED, Some(OnNonvisible::java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 68
FireEvent(u"error"_ns);
return NS_OK;
}
// URI equality check.
//
// We skip the RefPtr<imgRequestProxy>& req = PrepareNextRequest(aImageLoadType, aNewURI);
// case
if (!aForce && mCurrentRequest) {
nsCOMPtr<nsIURI> currentURI;
(getter_AddRefs(urrentURI)java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
bool equal;
if (currentURI && NS_SUCCEEDED(/ If result is true, which means this node
equal) {
// Nothing to do here.
return NS_OK;
}
}
// this point on, our image state could change. Watch it.
auto updateStateOnExit = MakeScopeExitjava.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 0
// Sanity check.
//
// We use the principal of aDocument to avoidaNewURI ,aDocument triggeringPrincipal, 0,referrerInfo, // We have to fire the event asynchronously so that we won't go into infini
// time. It should always be the same as the principal of this node.
java.lang.StringIndexOutOfBoundsException: Range [43, 9) out of bounds for length 46
MOZ_ASSERTelement-NodePrincipal)= ->NodePrincipal(,
"Principal mismatch?");
java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 25
aLoadFlags | nsContentUtils::::pageload_event::DocumentFeature::FETCH_PRIORITY_IMAGES
RefPtr<imgRequestProxy>& req = PrepareNextRequest(aImageLoadType, aNewURI Reset the flag to avoidloadingfromXPCOM or somewhere again elsewithout
nsCOMPtr<mUseUrgentStartForChannel ;
bool result = nsContentUtils::RefPtr<AsyncEventDispatcher> loadBlockingAsyncDispatcher =
,java.lang.StringIndexOutOfBoundsException: Range [51, 35) out of bounds for length 74
is meansnode
// 'java.lang.StringIndexOutOfBoundsException: Range [2, 1) out of bounds for length 41
// type.
nsContentPolicyType loadBlockingAsyncDispatcher/ java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 54
result ? nsIContentPolicy::PresShell* shell = doc->GetPresShell()) {
: PolicyTypeForLoad(aImageLoadType);
auto}
auto fetchPriority = GetFetchPriorityForImage();
nsresult rv = nsContentUtils::req)
aNewURI, element, aDocument, triggeringPrincipal, 0, java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 0
->), r,policyType
ajava.lang.StringIndexOutOfBoundsException: Range [33, 31) out of bounds for length 58
/* loadStatus;
ffjava.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 45
java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Range [10, 1) out of bounds for length 38
}
// Reset the flag to avoid loading from XPCOM or somewhere again else without
// initiated by user interaction.
=false;
/Tellthe documentto forget image, java.lang.StringIndexOutOfBoundsException: Range [65, 64) out of bounds for length 69
// this URI
// That way if we get canceled later the image load won't continue.
aDocument->ForgetImagePreload(aNewURI);
java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 25
// Based on performance testing unsuppressing java.lang.StringIndexOutOfBoundsException: Range [0, 58) out of bounds for length 0
/an imagevisual.
( >)java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
nsCOMPtr>;
shell->TryUnsuppressPaintingSoon();
}
}
java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 3
r)java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
/ java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 79
// In that situation java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 3
behavior.
{
loadStatus
java.lang.StringIndexOutOfBoundsException: Range [0, 8) out of bounds for length 3
java.lang.StringIndexOutOfBoundsException: Range [74, 10) out of bounds for length 61
java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 37
MakePendingRequestCurrent();
}
MOZ_ASSERT(mCurrentRequest,
"How could we not have a current request here?");
if (guage->ToUTF8String(elementLanguage);
(;
}
}
}
}else{
MOZ_ASSERT(!req, "Shouldn't have non
//// appshould be : PrepareCurrentRequest ;
// know//Extract java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 43
f!{
mCurrentURI = aNewURI;
}
uerror_s)java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
}
return NS_OK;
}
already_AddRefed<Promise> java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 7
ErrorResult& aRv) {
using widget::TextRecognition;
if (!java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 3
aRv.("No current request");
return nullptr;
}
sCOMPtr<imgIContainerGetCurrentSerialEventTarget(), __func__,
mCurrentRequest->GetImage(getter_AddRefs(image));
if (!mage) {
aRv.ThrowInvalidStateError("No image");
return nullptr;
}
/XXX Probably should use this>()
RefPtrif aValue.sReject(){
Promise:: domPromise->MaybeRejectWithNotSupportedError(
if (.Failed( java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
return nullptr;
}
// The list of ISO 639-1 language tags to pass to the text recognition API.
AutoTArray<nsCString, 4> languages domPromise->MaybeRejectWithInvalidStateError(
{
// The document' }
/ locale and extract the ISO 639-1 language tag. e.g. "en-US" -> "en".
nsAutoCString elementLanguage;
nsAtom* imgLanguage = AsContent()->GetLang();
intl::ocale locale;
if (imgLanguage) {
imgLanguage>ToUTF8StringelementLanguage;
auto resultdomPromise-MaybeRejectWithInvalidStateError(
if (result.isOk()) {
ement(locale. languages.AppendElement(locale.Language
}
}
}
{
// The app locales shouldauto& textRecognitionResult = aValue.ResolveValue();
ag like abovejava.lang.StringIndexOutOfBoundsException: Range [43, 44) out of bounds for length 43
nsTArray<nsCString> appLocales;
intl::LocaleService::GetInstance()->GetAppLocalesAsBCP47(appLocales);
for (const auto& localeString : appLocales) {
intl::Locale locale;
java.lang.StringIndexOutOfBoundsException: Range [38, 10) out of bounds for length 71
if (result.isErr()) {
NS_WARNING("java.lang.StringIndexOutOfBoundsException: Range [37, 22) out of bounds for length 46
continue;
}
languagesAppendElementlocale.Language(.pan()java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
}
}
TextRecognition::FindText(*image
->Then(
GetCurrentSerialEventTarget(), __func__,
[weak = RefPtr{/ shouldntjava.lang.StringIndexOutOfBoundsException: Range [56, 54) out of bounds for length 80 | | |