The default bug view has changed. See this FAQ.

contentStyleFile breaks relative paths in stylesheets

RESOLVED FIXED

Status

Add-on SDK
General
P1
normal
RESOLVED FIXED
5 years ago
4 years ago

People

(Reporter: kinger, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

5 years ago
I've been playing around with using contentStyleFile in page-mod:

https://addons.mozilla.org/en-US/developers/docs/sdk/latest/packages/addon-kit/page-mod.html#Styling_web_pages

What I found is that if you have media in the style sheets added that are using relative paths, e.g.

background: rgb(249, 249, 249) url('../../img/mozorg-gradient.png') repeat-x top center;

... they are not found.

What scope are files loaded via contentStyleFile in? How can I include images and other media in these stylesheets? It might get painful to add custom paths to each, especially in the case of stylesheets of 3rd party libraries for example.

Updated

5 years ago
Priority: -- → P1

Updated

5 years ago
Blocks: 760233
Depends on: 837494
This bug should be fixed now, by bug 837494. Feel free to re-open it if the behavior persist.
Status: NEW → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.