firefox-3.{5,6} bug, merge review comments don't get wrapped in <pre> block

Bug #326129 reported by Dominic Evans
60
This bug affects 7 people
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Low
Tim Penhey
Mozilla Firefox
Invalid
Medium
firefox-3.1 (Ubuntu)
Invalid
Medium
Unassigned
firefox-3.5 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

The long paragraph comment on this merge doesn't get word-wrapped into the div when using firefox-3.2

This can be considered a low priority bug because a) firefox-3.2 is a long way from a stable release, b) this could be a css bug in firefox-3.2 itself rather than launchpad's choice of css -- but edge.launchpad.net does say 'Report _all_ bugs' :-)

URL of problem page:
https://code.edge.launchpad.net/~human-microft/gwibber/custom/+merge/3432

Screenshots in Mozilla Firefox 3.0 and Firefox 3.2 (Minefield) attached.

Root cause of this bug is dropped support for -moz-pre-wrap. See https://bugzilla.mozilla.org/show_bug.cgi?id=433065

Dominic explains the solution in https://bugs.edge.launchpad.net/launchpad-foundations/+bug/326129/comments/19

Related branches

Revision history for this message
Dominic Evans (oldmanuk) wrote :
Revision history for this message
Dominic Evans (oldmanuk) wrote :
Revision history for this message
Fernando Miguel (fernandomiguel) wrote :

I can confirm this bug, using a new firefox 3.2 profile, and with my current 3.1 profile too.

So I guess its not so low priority like that.

$ apt-cache policy firefox-3.2
firefox-3.2:
  Installed: 3.2~a1~hg20090127r24317+nobinonly-0ubuntu1~fta1
  Candidate: 3.2~a1~hg20090127r24317+nobinonly-0ubuntu1~fta1
  Version table:
 *** 3.2~a1~hg20090127r24317+nobinonly-0ubuntu1~fta1 0
        500 http://ppa.launchpad.net jaunty/main Packages
        100 /var/lib/dpkg/status

$ apt-cache policy firefox-3.1
firefox-3.1:
  Installed: 3.1~b3~hg20090122r22900+nobinonly-0ubuntu1
  Candidate: 3.1~b3~hg20090122r22900+nobinonly-0ubuntu1
  Version table:
 *** 3.1~b3~hg20090122r22900+nobinonly-0ubuntu1 0
        500 ftp://darkstar.ist.utl.pt jaunty/universe Packages
        500 ftp://archive.ubuntu.com jaunty/universe Packages
        100 /var/lib/dpkg/status
     3.1~b3~hg20090122r22900+nobinonly-0ubuntu1~fta1 0
        500 http://ppa.launchpad.net jaunty/main Packages

Revision history for this message
Dominic Evans (oldmanuk) wrote : Re: firefox-3.{1,2} bug, merge review comments don't get wrapped into div box

FYI, also a problem on Firefox 3.2 on Windows XP. So not platform-specific.

Revision history for this message
Alexander Sack (asac) wrote :

firefox-3.1 has this issue too fwiw.

Changed in firefox-3.1:
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Tim Penhey (thumper) wrote :

This isn't a Launchpad problem AFAIK. Looks correct with Firefox 3.0.6.

Changed in launchpad:
status: New → Invalid
Revision history for this message
Dominic Evans (oldmanuk) wrote :

s/firefox-3.1/firefox-3.5/
s/firefox-3.2/firefox-3.6/

summary: - firefox-3.{1,2} bug, merge review comments don't get wrapped into div
+ firefox-3.{5,6} bug, merge review comments don't get wrapped into div
box
Revision history for this message
John Vivirito (gnomefreak) wrote : Re: firefox-3.{5,6} bug, merge review comments don't get wrapped into div box

Dominic: We are unable to provide support for 3.6. Can you please provide the commands and output for the following commands

apt-cache policy firefox-3.0 firefox-3.5 firefox-3.6
lsb_release -a

The commands above should be typed the way i did, first the policy command than after that is finished run the lsb_ command.

Changed in firefox-3.1 (Ubuntu):
status: Triaged → Invalid
Changed in firefox-3.5 (Ubuntu):
status: New → Triaged
Revision history for this message
Dominic Evans (oldmanuk) wrote :

John: no problem, I was just reporting that it effects both firefox-3.5 and firefox-3.6 (i.e., it is also broken in firefox trunk), I would only expect the bug to be tracked against 3.5 for Ubuntu

$ apt-cache policy firefox-3.0 firefox-3.5 firefox-3.6
firefox-3.0:
  Installed: 3.0.8+nobinonly-0ubuntu2
  Candidate: 3.0.8+nobinonly-0ubuntu2
  Version table:
 *** 3.0.8+nobinonly-0ubuntu2 0
        500 http://archive.ubuntu.com jaunty/main Packages
        100 /var/lib/dpkg/status
firefox-3.5:
  Installed: 3.5~b4~hg20090330r24021+nobinonly-0ubuntu1
  Candidate: 3.5~b4~hg20090330r24021+nobinonly-0ubuntu1
  Version table:
 *** 3.5~b4~hg20090330r24021+nobinonly-0ubuntu1 0
        500 http://archive.ubuntu.com jaunty/universe Packages
        100 /var/lib/dpkg/status
     3.5~b4~hg20090330r24021+nobinonly-0ubuntu1~fta1 0
        500 http://ppa.launchpad.net jaunty/main Packages
firefox-3.6:
  Installed: 3.6~a1~hg20090330r26723+nobinonly-0ubuntu1~fta1
  Candidate: 3.6~a1~hg20090330r26723+nobinonly-0ubuntu1~fta1
  Version table:
 *** 3.6~a1~hg20090330r26723+nobinonly-0ubuntu1~fta1 0
        500 http://ppa.launchpad.net jaunty/main Packages
        100 /var/lib/dpkg/status

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu jaunty (development branch)
Release: 9.04
Codename: jaunty

Revision history for this message
Fernando Miguel (fernandomiguel) wrote :

$ apt-cache policy firefox-3.0 firefox-3.5 firefox-3.6
firefox-3.0:
  Installed: 3.0.8+nobinonly-0ubuntu3
  Candidate: 3.0.8+nobinonly-0ubuntu3
  Version table:
 *** 3.0.8+nobinonly-0ubuntu3 0
        500 ftp://darkstar.ist.utl.pt jaunty/main Packages
        500 ftp://archive.ubuntu.com jaunty/main Packages
        100 /var/lib/dpkg/status
firefox-3.5:
  Installed: 3.5~b4~hg20090407r24256+nobinonly-0ubuntu1~umd1
  Candidate: 3.5~b4~hg20090407r24256+nobinonly-0ubuntu1~umd1
  Version table:
 *** 3.5~b4~hg20090407r24256+nobinonly-0ubuntu1~umd1 0
        500 http://ppa.launchpad.net jaunty/main Packages
        100 /var/lib/dpkg/status
     3.5~b4~hg20090330r24021+nobinonly-0ubuntu1 0
        500 ftp://darkstar.ist.utl.pt jaunty/universe Packages
        500 ftp://archive.ubuntu.com jaunty/universe Packages
     3.5~b4~hg20090330r24021+nobinonly-0ubuntu1~fta1 0
        500 http://ppa.launchpad.net jaunty/main Packages
firefox-3.6:
  Installed: 3.6~a1~hg20090404r26915+nobinonly-0ubuntu1~umd1
  Candidate: 3.6~a1~hg20090404r26915+nobinonly-0ubuntu1~umd1
  Version table:
 *** 3.6~a1~hg20090404r26915+nobinonly-0ubuntu1~umd1 0
        500 http://ppa.launchpad.net jaunty/main Packages
        100 /var/lib/dpkg/status
     3.6~a1~hg20090330r26723+nobinonly-0ubuntu1~fta1 0
        500 http://ppa.launchpad.net jaunty/main Packages

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu jaunty
Release: 9.04
Codename: jaunty

Revision history for this message
John Vivirito (gnomefreak) wrote :

No one has not shown me an example outside orf Launchpad, until than i can only assume its LP reopened task. If this is not a LP problem please provide a reason or 2 so ican file it upstream (would love another site this happens on before i report bug upstream

Changed in launchpad:
status: Invalid → New
Revision history for this message
Fernando Miguel (fernandomiguel) wrote :

Opera Works ok
$ apt-cache policy opera
opera:
  Installed: 9.64.2480.gcc4.qt3
  Candidate: 9.64.2480.gcc4.qt3
  Version table:
 *** 9.64.2480.gcc4.qt3 0
        500 http://deb.opera.com stable/non-free Packages
        500 http://deb.opera.com unstable/non-free Packages
        100 /var/lib/dpkg/status

lynx too (see attach)
$ apt-cache policy lynx
lynx:
  Installed: 2.8.7dev11-2
  Candidate: 2.8.7dev11-2
  Version table:
 *** 2.8.7dev11-2 0
        500 ftp://darkstar.ist.utl.pt jaunty/main Packages
        500 ftp://archive.ubuntu.com jaunty/main Packages
        100 /var/lib/dpkg/status

Konqueror Fails
$ apt-cache policy konqueror
konqueror:
  Installed: 4:4.2.2-0ubuntu3
  Candidate: 4:4.2.2-0ubuntu3
  Version table:
 *** 4:4.2.2-0ubuntu3 0
        500 ftp://darkstar.ist.utl.pt jaunty/main Packages
        500 ftp://archive.ubuntu.com jaunty/main Packages
        100 /var/lib/dpkg/status

so i guess this is not Genko specific?

Revision history for this message
John Vivirito (gnomefreak) wrote :

doesn't seem to be related to Mozilla browser but to Lp from above comment by BUGabundo
Closing Mozilla tasks

Changed in firefox-3.5 (Ubuntu):
status: Triaged → Invalid
Revision history for this message
Dominic Evans (oldmanuk) wrote :

To help with debugging, I have attached a fully reduced test case for the issue showing the <pre> with white-space css property.

The HTML validates, the CSS doesn't as it is using browser-specific -moz-pre-wrap -o-pre-wrap white-space properties.

I have fixed the border width to 320px. firefox-3.0 correctly wraps the text within this, firefox-3.5 doesn't

Dominic Evans (oldmanuk)
summary: - firefox-3.{5,6} bug, merge review comments don't get wrapped into div
- box
+ firefox-3.{5,6} bug, merge review comments don't get wrapped in <pre>
+ block
Revision history for this message
Dominic Evans (oldmanuk) wrote :

http://oldman.litmusapp.com/pub/f2b2bb2
^ results here show Internet Explorer 7.0 and Firefox 2.0 on Windows are both happy with this CSS+HTML

Revision history for this message
Dominic Evans (oldmanuk) wrote :

some more examples in the attached browsershots.zip (these are the original launchpad page rather than the reduced test case)

Safari 4.0 is interesting, it wraps within the border successfully but breaks on character rather than word boundaries

Revision history for this message
Dominic Evans (oldmanuk) wrote :

please confirm whether the reduced test case is a firefox-3.5 rendering problem or a misuse/misunderstanding of the -moz-pre-wrap -o-pre-wrap white-space properties?

Changed in firefox-3.5 (Ubuntu):
status: Invalid → New
Revision history for this message
In , Dominic Evans (oldmanuk) wrote :

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1b4pre) Gecko/20090401 Ubuntu/9.04 (jaunty) Shiretoko/3.5b4pre
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2a1pre) Gecko/20090330 Ubuntu/9.04 (jaunty) Minefield/3.6a1pre

originally reported downstream to ubuntu at https://bugs.launchpad.net/ubuntu/+source/firefox-3.5/+bug/326129

The long paragraph comment on the merge text on launchpad doesn't get word-wrapped into the div when using firefox-3.5 or firefox-3.6. This is a regression from firefox-3.0 on which this worked correctly.

Have linked to the reduced test case at http://launchpadlibrarian.net/25017026/3432.html which highlights the issue.

Reproducible: Always

Steps to Reproduce:
1.Load http://launchpadlibrarian.net/25017026/3432.html on firefox-3.0
2.Load http://launchpadlibrarian.net/25017026/3432.html on firefox-3.6

Actual Results:
Compare output (wrapped on 3.0, unwrapped on 3.6)

Expected Results:
Output should match with text wrapped on both firefoxes.

Revision history for this message
Dominic Evans (oldmanuk) wrote :

raised upstream on mozilla bugzilla

Changed in firefox:
status: Unknown → New
Revision history for this message
In , Crazy-daniel (crazy-daniel) wrote :

Thanks for reporting.

This is no bug. Since Firefox 3.0 the CSS 2.1 standardized pre-wrap value is available. Support for -moz-pre-wrap was thus dropped from Firefox 3.1 in bug 433065.

If it's necessary to keep compatible to Firefox versions prior to 3.0, please use both values, e.g.:

white-space: -moz-pre-wrap;
white-space: pre-wrap;

Revision history for this message
Dominic Evans (oldmanuk) wrote :

Confirm upstream to not be a bug in firefox, but a bug in launchpad

{{{
Thanks for reporting.

This is no bug. Since Firefox 3.0 the CSS 2.1 standardized pre-wrap value is
available. Support for -moz-pre-wrap was thus dropped from Firefox 3.1 in bug
433065
.

If it's necessary to keep compatible to Firefox versions prior to 3.0, please
use both values, e.g.:

white-space: -moz-pre-wrap;
white-space: pre-wrap;
}}}

so launchpad's CSS needs to be updated to include both values

Changed in firefox-3.5 (Ubuntu):
status: New → Invalid
Revision history for this message
Dominic Evans (oldmanuk) wrote :
Changed in launchpad:
status: New → Confirmed
Revision history for this message
Dominic Evans (oldmanuk) wrote :

confirmed that adding

 white-space: pre-wrap;

as an additional property in the CSS in the reduced test case fixes the issue on firefox-3.5 and firefox-3.6

Changed in firefox:
status: New → Invalid
Revision history for this message
Diogo Matsubara (matsubara) wrote :

Marking as low because firefox 3.5 is not released yet. I'll update the description to point to mozilla's bug and add the solution provided by Dominic. Thanks.

affects: launchpad → launchpad-foundations
Changed in launchpad-foundations:
importance: Undecided → Low
status: Confirmed → Triaged
description: updated
tags: added: trivial ui
Revision history for this message
Dominic Evans (oldmanuk) wrote :

small addition, it has now been decided at uds that firefox 3.5 will replace firefox 3.0 as the default (i.e. main) firefox in karmic soon.

Revision history for this message
William Grant (wgrant) wrote :

The importance of this bug is increasing; Firefox 3.5 will be released soon, and might be the default in Karmic even sooner. Lots of people are using Karmic.

Revision history for this message
Tim Penhey (thumper) wrote :

Using firebug, the code review comments do use: <pre style="white-space: pre-wrap;">, not the -moz-pre-wrap.

So I'm unclear as what to do.

Revision history for this message
Display Name (user340562791542-deactivatedaccount) wrote :

I'm using firebug with firefox 3.5, and the style of the comment is "word-wrap: break-word;" (invalid css afaik) in the following proposal:

https://code.launchpad.net/~renatosilva/bzr-java-lib/log-view-fix/+merge/8377.

Revision history for this message
Adam Blackburn (adamblackburn) wrote :

Just to confirm this is still a problem in Firefox 3.5.1 and Konqueror.

Since comments and merge proposals use similar style boxes, would it not be possible to borrow the bug-comment class (comments are surrounded with <div class="bug-comment"></div>) for use in merge proposals? Bug comments seem to work just fine.

Revision history for this message
Tim Penhey (thumper) wrote : Re: [Bug 326129] Re: firefox-3.{5, 6} bug, merge review comments don't get wrapped in <pre> block

On Sun, 19 Jul 2009 16:54:37 Adam Blackburn wrote:
> Just to confirm this is still a problem in Firefox 3.5.1 and Konqueror.
>
> Since comments and merge proposals use similar style boxes, would it not
> be possible to borrow the bug-comment class (comments are surrounded
> with <div class="bug-comment"></div>) for use in merge proposals? Bug
> comments seem to work just fine.

Yes, I'll take a look at this.

  assignee thumper

Changed in launchpad-foundations:
assignee: nobody → Tim Penhey (thumper)
Tim Penhey (thumper)
affects: launchpad-foundations → launchpad-code
Revision history for this message
Tim Penhey (thumper) wrote :

It seems firebug confused me by showing the style when inspected as "white-space: pre-wrap" when in fact it wasn't at all.

Konqueror 4.2.4 also shows non-wrapping, which is fixed by adding pre-wrap, but it also doesn't show monospace font (which I find annoying).

It is my understanding that the "word-wrap: break-word" is there for some obscure IE compatibility (IE/Win and Saf 1.3+ only according to a quick google).

Changed in launchpad-code:
milestone: none → 2.2.8
status: Triaged → In Progress
Revision history for this message
Display Name (user340562791542-deactivatedaccount) wrote :

I don't like monospace fonts for bug and proposal comments. I'd use them for source codes only.

Revision history for this message
Tim Penhey (thumper) wrote :

Fixed in RF 8983.

Changed in launchpad-code:
status: In Progress → Fix Committed
Tim Penhey (thumper)
Changed in launchpad-code:
status: Fix Committed → Fix Released
Changed in firefox:
importance: Unknown → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.