Open Bug 1371575 Opened 8 years ago Updated 3 years ago

Handle missing images in theme.update consistently

Categories

(WebExtensions :: Themes, defect, P5)

55 Branch
defect

Tracking

(firefox53 unaffected, firefox54 unaffected, firefox55 affected)

Tracking Status
firefox53 --- unaffected
firefox54 --- unaffected
firefox55 --- affected

People

(Reporter: cbadescu, Unassigned)

References

Details

(Whiteboard: triaged)

Attachments

(2 files)

[Affected versions]: - Firefox 55.0a1 (20170608030205) [Affected platforms]: - Windows 7 64-bit - Ubuntu 16.04 32-bit [Steps to reproduce]: 1.Launch Firefox with clean profile. 2.Open about:config and create the pref xpinstall.signatures.dev-root then set it to true. 3.Install https://addons-dev.allizom.org/en-US/firefox/addon/themextensionv1-0/ 4.Press on the Themextension icon. [Expected results]: - The Themextension updates the tab of the browser with different colors at a certain interval of time. - Here is a video: https://www.dropbox.com/s/pqxi3d6oxrjcrp8/Themextension1.gif?dl=0 [Actual results]: - The Themextension doesn’t update the tab of the browser with different colors at a certain interval of time and an error is displayed in the browser console every time the Themextension tries to change the color. - Here is a video:https://www.dropbox.com/s/jltr4lr9jakpfl7/ThemextensionXPI.gif?dl=0 [Additional notes]: - This issue is reproducing all the time. - Loaded locally in about:debugging with the files unzipped, the Themextension it works. Here is a video:https://www.dropbox.com/s/pafz69xc6siqhi7/UnzippedThemex.gif?dl=0 - After you load in about:debugging a .xpi format file and you press on the Themextension icon, the browser console will display the same error as in the [Actual results]. Here is a video:https://www.dropbox.com/s/1ei96h8tv91lcaq/AboutDebugThemext.gif?dl=0
Attached file themextension-0.3.zip
This version uses alarms, not setInterval. It also removes the need to press the button because I'm inpatient :)
Attached file themextension-0.4.zip
The original extension calls: browser.theme.update({ images: { headerURL: "weather.png", }, No weather.png exists in the extension and it fails. It works when run unpacked through about:debugging, however when run as an .xpi we get an error message and the update fails: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIWebBrowserPersist.saveURI]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: resource://gre/modules/LightweightThemeManager.jsm :: _persistImage :: line 877" data: no] Ideally we should try and make the behaviour between running unpacked and packed the same if possible.
Component: WebExtensions: General → WebExtensions: Frontend
Summary: Themextension with the .xpi format file is not working after it was installed → Handle with missing images in theme.update consistently
Priority: -- → P5
Whiteboard: triaged
Summary: Handle with missing images in theme.update consistently → Handle missing images in theme.update consistently
Component: WebExtensions: Frontend → WebExtensions: Themes
Product: Toolkit → WebExtensions
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: