Closed Bug 609602 Opened 14 years ago Closed 8 years ago

[e10s] User-stylesheets and agent-Stylesheets not rendered in remote tabs

Categories

(Firefox for Android Graveyard :: General, defect)

defect
Not set
major

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: droettsches.oss, Unassigned)

References

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.12) Gecko/20101027 Ubuntu/10.04 (lucid) Firefox/3.6.12
Build Identifier: Fennec Nightly 4.0b3pre (http://hg.mozilla.org/mozilla-central/rev/f7016571b472)

Fennec does not take into account user-stylesheets or agent-stylesheets that are specified through the userContent.css mechanism, registered into the agent-style-sheet category through a chrome.manifest or programmatically registered with the nsIStyleSheetService.


Reproducible: Always

Steps to Reproduce:
1) Download and unpack fennec nightly
2) Run it once to create profile
3) Edit chrome/userContent.css in .mozilla/fennec/<profile>/ and put something like:
body {
	background-color: pink !important;
}
4) Load "remote" pages, i.e. http:// addresses, www.google.com etc.

Actual Results:  
Page-specified background color is visible, i.e. white in most cases.

Expected Results:  
Pink background for any http:// page
Dominik Röttsches can you still reproduce this?
Try using latest build: http://ftp.mozilla.org/pub/mozilla.org/mobile/candidates/7.0b5-candidates/
Yes, still reproducible with http://ftp.mozilla.org/pub/mozilla.org/mobile/candidates/7.0b5-candidates/build1/linux/en-US/fennec-7.0b5.en-US.linux-i686.tar.bz2

Local pages, like the startup "your previous tabs" overview, incorporate the style change. Pink example style not incorporated/rendered for remote pages loaded via http.
Still an issue on Nightly 2012-02-23 linux i686 - Last linux build.
Status: UNCONFIRMED → NEW
Ever confirmed: true
We don't build desktop versions of Firefox mobile any more.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WONTFIX
I don't think this bug is desktop-only.
Status: RESOLVED → REOPENED
OS: Linux → All
Hardware: x86 → All
Resolution: WONTFIX → ---
Blocks: 739078
This is important for MathML on mobile devices. Quoting Bill Gianopoulos:

'In order to resolve bug 295193, an extension has been developed to package and include the math fonts required for proper display of MathML.  This extension does not work on Android XUL builds because of this issue.

It is especially important for this to work on mobile devices which typically do not permit users installing additional fonts without "rooting" the device.'

The extension mentioned is

https://addons.mozilla.org/en-US/firefox/addon/mathml-fonts/

In addition, we plan to display an information bar suggesting users to install it when they visit pages that require mathematical fonts.
I'm trying to make Stylish work on Fennec and this makes it a non-starter. Stylish uses nsIStylesheetService to register data URI stylesheets. Some findings after experimentation (testing on Fennec 10 on Linux):

-Registering stylesheets works on things like Fennec Start, the preferences page, and an HTML page I include with Stylish, but not on remote pages.
-Registering stylesheets from the content scripts does not apply to remote tabs, but does still apply to chrome.
-Setting browser.tabs.remote = false makes it work everywhere.
This works perfectly fine in native Fennec.
We don't need to track these XUL Fennec bugs for desktop e10s.
Userstyles still appear to be broken for e10s (on desktop) and this is kind of a major regression. Is this the wrong bug for that? It's making me lean towards turning e10s back off on my machines.
tracking-e10s: - → ---
This is graveyard fennec and is showing up under e10s desktop triage links. If this is an open issue with the mobile android browser please file a fresh bug under that product.
Status: REOPENED → RESOLVED
Closed: 12 years ago8 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.