Skip to content

Commit

Permalink
Backed out changeset c0573a579b73 (bug 1641682) for WPT failures in /…
Browse files Browse the repository at this point in the history
…html/canvas/element/imagebitmap/createImageBitmap-invalid-args.html. CLOSED TREE
  • Loading branch information
dgluca committed Jun 11, 2020
1 parent f81a375 commit bb85227
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions image/imgLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1928,29 +1928,6 @@ bool imgLoader::ValidateEntry(
return false;
}

bool requestGotLoad = false;
RefPtr<ProgressTracker> tracker;
RefPtr<mozilla::image::Image> image = request->GetImage();
if (image) {
tracker = image->GetProgressTracker();
} else {
tracker = request->GetProgressTracker();
}
if (tracker) {
if ((tracker->GetProgress() & (FLAG_LOAD_COMPLETE | FLAG_HAS_ERROR)) ==
FLAG_LOAD_COMPLETE) {
requestGotLoad = true;
}
}
// If the original request is still transferring don't kick off a validation
// network request because it is a bit silly to issue a validation request if
// the original request hasn't even finished yet. So just return true
// indicating the caller can create a new proxy for the request and use it as
// is.
if (!requestGotLoad) {
return true;
}

if (validateRequest && aCanMakeNewChannel) {
LOG_SCOPE(gImgLog, "imgLoader::ValidateRequest |cache hit| must validate");

Expand Down

0 comments on commit bb85227

Please sign in to comment.