Skip to content

Commit

Permalink
#651: speculative followup patch
Browse files Browse the repository at this point in the history
  • Loading branch information
classilla committed Sep 25, 2022
1 parent bc6daa0 commit 7a30734
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dom/canvas/CanvasRenderingContext2D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5500,8 +5500,8 @@ CanvasRenderingContext2D::PutImageData_explicit(int32_t x, int32_t y, uint32_t w
return NS_ERROR_FAILURE;
}

uint32_t copyX = dirtyRect.x;
uint32_t copyY = dirtyRect.y;
uint32_t copyX = dirtyRect.x - x;
uint32_t copyY = dirtyRect.y - y;
//uint8_t *src = aArray->Data();
uint8_t *dst = imgsurf->Data();
uint8_t* srcLine = aArray->Data() + copyY * (w * 4) + copyX * 4;
Expand Down
4 changes: 2 additions & 2 deletions modules/libjar/nsJARChannel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ nsJARChannel::GetSecurityInfo(nsISupports **aSecurityInfo)
return NS_OK;
}

NS_IMETHODIMP
nsresult
nsJARChannel::SetContentTypeGuess() {
//
// generate content type and set it
Expand Down Expand Up @@ -752,7 +752,7 @@ nsJARChannel::GetContentType(nsACString &aResult)
{
// If the Jar file has not been open yet,
// We return application/x-unknown-content-type
if (!mOpened || mContentType.IsEmpty()) {
if (!mOpened && mContentType.IsEmpty()) {

This comment has been minimized.

Copy link
@roytam1

roytam1 Sep 26, 2022

this change breaks browser from opening.

This comment has been minimized.

Copy link
@classilla

classilla Sep 26, 2022

Author Owner

Then I have no idea what's wrong. Let me know if you fix it.

aResult.Assign(UNKNOWN_CONTENT_TYPE);
return NS_OK;
}
Expand Down

0 comments on commit 7a30734

Please sign in to comment.