HTML sizes broken on Fx 3.0.x and below, NS 1.9.9.36
Re: Enlarged Fonts on Firefox 3.0.x and below, NoScript 1.9.9.36
Is Firefox 3.0.x still correct for the title of this thread? The reports (including the OP's) seem to indicate that this is a 2.0 issue.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.3a1pre) Gecko/20100118 Minefield/3.7a1pre
Re: Enlarged Fonts on Firefox 3.0.x and below, NoScript 1.9.9.36
So yes, FF2 & FF3.Giorgio wrote:so it must be a subtler Gecko < 1.9.1 bug
FF3=Gecko 1.9.0
FF2=Gecko 1.8.1
(FF3.5=Gecko 1.9.1)
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.7) Gecko/20100104 SeaMonkey/2.0.2
Re: Enlarged Fonts on Firefox 3.0.x and below, NoScript 1.9.9.36
I'm using Firefox 3.0.17 on Linux + NoScript 1.9.9.36 and having same problem with fonts. I used Firebug to investigate and found that FF uses additional stylesheet (resource://gre/res/quirk.css) on those pages (FF reports that pages are in standard compliance mode). I think, NoScript somehow forces FF to switch to quirks mode on page load and then back to standard compliance mode, but FF "forgets" to detach quirk.css.
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.17) Gecko/2010010604 Ubuntu/8.10 (intrepid) Firefox/3.0.17
- Giorgio Maone
- Site Admin
- Posts: 9524
- Joined: Wed Mar 18, 2009 11:22 pm
- Location: Palermo - Italy
- Contact:
Re: Enlarged Fonts on Firefox 3.0.x and below, NoScript 1.9.9.36
Good call, investigating...Guest wrote:I'm using Firefox 3.0.17 on Linux + NoScript 1.9.9.36 and having same problem with fonts. I used Firebug to investigate and found that FF uses additional stylesheet (resource://gre/res/quirk.css) on those pages (FF reports that pages are in standard compliance mode). I think, NoScript somehow forces FF to switch to quirks mode on page load and then back to standard compliance mode, but FF "forgets" to detach quirk.css.
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 (.NET CLR 3.5.30729)
Re: Enlarged Fonts on Firefox 3.0.x and below, NoScript 1.9.9.36
I've had the exact same problem, with Noscript on Flock's latest release.
At first I thought it was the flock browser, as I checked it against Chrome and IE with no problems. Then I remembered that there had been some updates this morning to a couple of extentions. Sure enough by process of elimination its No Script. Its odd because it only affects some sites. Before today it was fine.
At first I thought it was the flock browser, as I checked it against Chrome and IE with no problems. Then I remembered that there had been some updates this morning to a couple of extentions. Sure enough by process of elimination its No Script. Its odd because it only affects some sites. Before today it was fine.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.13) Gecko/2009080717 Firefox/3.0.13
Re: Enlarged Fonts on Firefox 3.0.x and below, NoScript 1.9.9.36
Have same problem with css font at 3.0.17 and .36 all was ok at .35 
Guys could you test your extantion on 3.0.x before make it public?
Where to get old version?
Thanks

Guys could you test your extantion on 3.0.x before make it public?
Where to get old version?
Thanks
Mozilla/5.0 (Windows; U; Windows NT 6.0; ru; rv:1.9.0.17) Gecko/2009122116 Firefox/3.0.17 (.NET CLR 3.5.30729)
- Giorgio Maone
- Site Admin
- Posts: 9524
- Joined: Wed Mar 18, 2009 11:22 pm
- Location: Palermo - Italy
- Contact:
Re: Enlarged Fonts on Firefox 3.0.x and below, NoScript 1.9.9.36
We do. This issue happens on some sites only, and we can't test every site in every browser, you know.SVlad wrote:Guys could you test your extantion on 3.0.x before make it public?
Here and here in this thread.SVlad wrote: Where to get old version?
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 (.NET CLR 3.5.30729)
Re: HTML sizes broken on Fx 3.0.x and below, NS 1.9.9.36
Some more info in case someone needs it. (Previous post was by me, but unregistered.)
- Setting noscript.surrogate.enabled to false indeed fixes the problem (as a workaround, of course).
- You can view the contents of resource://gre/res/quirk.css file by copy-pasting the URI to address bar and hitting Enter. That file is a browser stylesheet, obviously designed to be used in quirks mode only.
- quirk.css affects many things. One of them is font size in <table> HTML elements: it resets font size and some other font props to browser default values (otherwise these values are inherited from parent HTML element), that's why we see larger/smaller fonts on some sites. Another thing is sizing model in <input> elements, it causes some text fields to reduce size.
- How can I see that quirk.css is applied to the page? Navigate to affected page and select some <input> or <table> element in Firebug (or in DOM Inspector). Switch to CSS of the element (in Firebug you'll have to check "Show User Agent CSS").
- I also have Stylish 1.0.7 addon installed. If I toggle (enable/disable) some style for page after page is loaded, all font sizes etc. return to normal. If I then reload the page, problem reappears. That makes me think that: 1) FF is in standard compliance mode after page is loaded; 2) Stylish triggers some sort of re-rendering the page, during which FF realizes that it doesn't need the quirk.css stylesheet in standard compliance mode.
Last edited by Power on Wed Jan 20, 2010 1:04 am, edited 1 time in total.
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.17) Gecko/2010010604 Ubuntu/8.10 (intrepid) Firefox/3.0.17
Re: HTML sizes broken on Fx 3.0.x and below, NS 1.9.9.36
breaks webpages on routers also,
seems to affekt poorly coded webpages were ' is missed in java scripts.
there is a need of string cleanup or something, my guess
divide by zero
were stars come out at night
seems to affekt poorly coded webpages were ' is missed in java scripts.
there is a need of string cleanup or something, my guess

divide by zero
were stars come out at night
Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:2.7.1x) Gecko/20100118 Firefox/2.x
- Giorgio Maone
- Site Admin
- Posts: 9524
- Joined: Wed Mar 18, 2009 11:22 pm
- Location: Palermo - Italy
- Contact:
Re: HTML sizes broken on Fx 3.0.x and below, NS 1.9.9.36
Should be finally fixed in latest development build 1.9.3.39, needed two different approaches in Gecko 1.8.x (Fx2) and Gecko 1.9.0 (Fx 3.0) 

Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 (.NET CLR 3.5.30729)
Re: HTML sizes broken on Fx 3.0.x and below, NS 1.9.9.36
That fixed it! Thanks.Giorgio Maone wrote:Should be finally fixed in latest development build 1.9.3.39, needed two different approaches in Gecko 1.8.x (Fx2) and Gecko 1.9.0 (Fx 3.0)
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.13) Gecko/2009080717 Firefox/3.0.13
Re: HTML sizes broken on Fx 3.0.x and below, NS 1.9.9.36
Yes, seems working.Giorgio Maone wrote:Should be finally fixed in latest development build 1.9.3.39, needed two different approaches in Gecko 1.8.x (Fx2) and Gecko 1.9.0 (Fx 3.0)
But have you any idea why script surrogates affected page styles?
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.17) Gecko/2010010604 Ubuntu/8.10 (intrepid) Firefox/3.0.17
- Giorgio Maone
- Site Admin
- Posts: 9524
- Joined: Wed Mar 18, 2009 11:22 pm
- Location: Palermo - Italy
- Contact:
Re: HTML sizes broken on Fx 3.0.x and below, NS 1.9.9.36
Starting with Gecko 1.9.0, javascript: URIs are loaded asynchronously.Power wrote:But have you any idea why script surrogates affected page styles?
Therefore using the old location.href="javascript:x()" to inject content Javascript safely in a web page doesn't serve the purpose anymore for page-level surrogates, which need to run synchronously before the page content starts to be parsed.
Using Components.utils.Sandbox doesn't work either, because it wraps the DOM, thus preventing tricks like method or getter substitution which are used routinely by most surrogates.
So I had to find an alternate injection method, and came up with insertion and automatic deletion of <script> DOM nodes.
But as soon as I reference document.documentElement (needed as an anchor node), Gecko creates a temporary minimal DOM: in Gecko < 1.9.1, this sets the "quirks mode" flag (because there's no DOCTYPE at that time), and it's never reset when a DOCTYPE is actually found, later. In Gecko 1.9.1 and above the DOCTYPE gets honored as soon as it's found, no matter what had happened earlier.
Now, working around on Gecko 1.8.x was relatively simple: I just reverted to the old location.href method.
Gecko 1.9.0 was a tougher beast, since as I said this method won't work for page surrogates and I need to stick with DOM insertion.
However your suggestion about Stylish provided with a hackish but effective work-around: just after page surrogates have run, I add and remove an empty AGENT stylesheet, which causes the layout flags to be reset.
Of course, these tricks are unneeded on Gecko 1.9.1 and above, therefore now we've got three code paths for page-level surrogates. Ouch.
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 (.NET CLR 3.5.30729)
Re: HTML sizes broken on Fx 3.0.x and below, NS 1.9.9.36
Yeah, pages are back to normal now. Using Firefox 2.0.0.20 with latest build is okay.Giorgio Maone wrote:Should be finally fixed in latest development build 1.9.3.39, needed two different approaches in Gecko 1.8.x (Fx2) and Gecko 1.9.0 (Fx 3.0)
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.20) Gecko/20081217 Firefox/2.0.0.20
Re: HTML sizes broken on Fx 3.0.x and below, NS 1.9.9.36
Thank you for the fix on the fonts.
Your next coffee I will buy.
NoScript v1.9.9.39 fixed it.
Your next coffee I will buy.
NoScript v1.9.9.39 fixed it.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.20) Gecko/20081217 Firefox/2.0.0.20 (.NET CLR 3.5.30729)