Closed Bug 970171 Opened 10 years ago Closed 10 years ago

test log image corrupt

Categories

(Add-on SDK Graveyard :: General, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: evold, Assigned: evold)

References

Details

Attachments

(1 file)

$ cfx test -f tabs -b /Applications/FirefoxNightly.app/

console.log: addon-sdk: [JavaScript Error: "Image corrupt or truncated: data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQImWNgYGBgAA#-moz-resolution=32,32" {file: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQImWNgYGBgAA#-moz-resolution=32,32" line: 0}]
Assignee: nobody → evold
Comment on attachment 8373124 [details] [review]
https://github.com/mozilla/addon-sdk/pull/1396

Looks good, but we should also fix that base64 uri and test to make sure that works with tabs too. Is it the base64 that's causing it, or is that just a malformed base64 uri?

Also, I'd like to have a bit less.. competitive image for the test if this is to be eventually merged into m-c :)
Attachment #8373124 - Flags: review?(jsantell) → review+
(In reply to Jordan Santell [:jsantell] [@jsantell] from comment #2)
> Comment on attachment 8373124 [details] [review]
> https://github.com/mozilla/addon-sdk/pull/1396
> 
> Looks good, but we should also fix that base64 uri and test to make sure
> that works with tabs too. Is it the base64 that's causing it, or is that
> just a malformed base64 uri?

The test is just testing the image preview page, so any image will do.  There should be tests in Fx that the image preview page works for data: uris, regardless though that is not our responsibility.

> Also, I'd like to have a bit less.. competitive image for the test if this
> is to be eventually merged into m-c :)

This image is already in m-c, I got it from http://mxr.mozilla.org/mozilla-central/source/mobile/android/base/tests/Firefox.jpg
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Depends on: 972925
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: