Closed Bug 786842 Opened 13 years ago Closed 13 years ago

Fix replaceBrs() typo for checking whitespace

Categories

(Firefox for Android Graveyard :: Reader View, defect, P1)

ARM
Android
defect

Tracking

(firefox16 verified, firefox17 verified, firefox18 verified)

VERIFIED FIXED
Firefox 18
Tracking Status
firefox16 --- verified
firefox17 --- verified
firefox18 --- verified

People

(Reporter: bnicholson, Assigned: bnicholson)

Details

Attachments

(1 file)

replaceBrs() looks for whitespace between <br> nodes to collapse them. Right now, we have: !whitespace.test(next.textContent) which continues the loop if the sibling is *not* whitespace.
Attachment #656629 - Flags: review?(lucasr.at.mozilla)
Comment on attachment 656629 [details] [diff] [review] Fix replaceBrs() typo for checking whitespace Review of attachment 656629 [details] [diff] [review]: ----------------------------------------------------------------- Does this fix the problem I was seeing mobile.washingtonpost.com?
Attachment #656629 - Flags: review?(lucasr.at.mozilla) → review+
Priority: -- → P1
(In reply to Lucas Rocha (:lucasr) from comment #2) > Comment on attachment 656629 [details] [diff] [review] > Fix replaceBrs() typo for checking whitespace > > Review of attachment 656629 [details] [diff] [review]: > ----------------------------------------------------------------- > > Does this fix the problem I was seeing mobile.washingtonpost.com? I haven't tried reproducing that problem, but I hope so. http://hg.mozilla.org/integration/mozilla-inbound/rev/ec63d3b35553
Comment on attachment 656629 [details] [diff] [review] Fix replaceBrs() typo for checking whitespace [Approval Request Comment] Bug caused by (feature/regressing bug #): bug 777966 User impact if declined: articles may have extra space between them Testing completed (on m-c, etc.): Risk to taking this patch (and alternatives if risky): low risk String or UUID changes made by this patch: none
Attachment #656629 - Flags: approval-mozilla-beta?
Attachment #656629 - Flags: approval-mozilla-aurora?
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 18
Comment on attachment 656629 [details] [diff] [review] Fix replaceBrs() typo for checking whitespace [Triage Comment] Low risk Reader Mode readability fix. Approved for branches.
Attachment #656629 - Flags: approval-mozilla-beta?
Attachment #656629 - Flags: approval-mozilla-beta+
Attachment #656629 - Flags: approval-mozilla-aurora?
Attachment #656629 - Flags: approval-mozilla-aurora+
Changes were applied on all branches. Closing bug as verified fixed. -- Device: Galaxy Note OS: Android 4.0.4
Status: RESOLVED → VERIFIED
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: