Closed Bug 869754 Opened 12 years ago Closed 7 years ago

Lightweight themes doesn´t work with URL like "resources://".

Categories

(Toolkit :: Add-ons Manager, defect)

defect
Not set
normal

Tracking

()

RESOLVED INACTIVE

People

(Reporter: dogcalas, Unassigned)

References

Details

Attachments

(2 files)

User Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0 Build ID: 20130326150557 Steps to reproduce: I am creating an addon, that allows users to save a lightweight theme(save header and footer images in data folder), and lets users to install the theme in a browser without internet access. Actual results: I set the preference "lightweightThemes.usedThemes" using the API "sdk/preferences/service". To get the url of header, footer, icon and preview from data folder I use require("sdk/self").data.url('') that returns "resources://the-rare-id/data/". The theme appears as installed but doesn´t work. Only is seen the icon and the preview images. Expected results: Firefox should accept URL like "resources://the-rare-id/data/" to set the header and footer of lightweightThemes.
Component: Untriaged → General
Product: Firefox → Add-on SDK
Version: 20 Branch → unspecified
Can you attach all of the relevant code for the addon to this bug?
This is the main.js.
Attached file Using sdk/page-worker.
This is the main.js
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
Bug 577606 comment 8 doesn't apply to resource URIs, so it seems like this could/should be solved separately.
Blocks: 577606
Status: RESOLVED → REOPENED
Component: General → Add-ons Manager
Ever confirmed: true
OS: Windows 8 → All
Product: Add-on SDK → Toolkit
Hardware: x86_64 → All
Resolution: DUPLICATE → ---
Per policy at https://wiki.mozilla.org/Bug_Triage/Projects/Bug_Handling/Bug_Husbandry#Inactive_Bugs. If this bug is not an enhancement request or a bug not present in a supported release of Firefox, then it may be reopened.
Status: REOPENED → RESOLVED
Closed: 12 years ago7 years ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: