Closed Bug 612230 Opened 11 years ago Closed 11 years ago

The bookmarks toolbar is empty in RTL Firefox if even one bookmark overflows the width of the toolbar


(Firefox :: Bookmarks & History, defect)

Not set



Firefox 4.0b8
Tracking Status
blocking2.0 --- final+


(Reporter: smontagu, Assigned: mano)



(Keywords: regression, rtl)


(1 file)

In RTL mode the bookmarks toolbar works fine as long as it fits into the window width with no overflow. As soon as any bookmark overflows the width, all the bookmarks disappear into the overflow pop-up.

Regression range: which looks like bug 528884

This was reported on the Mozilla Israel forum: (link in Hebrew)
blocking2.0: --- → ?
tentatively assigning to Mano, feel free to opt-out if you don't have time available.
Assignee: nobody → mano
Blocks: 560198
Blocking. The impression of all toolbar bookmarks being gone is pretty serious primary UI breakage.
blocking2.0: ? → final+
Attached patch PatchSplinter Review
Whoever reviewed that should, well, review this patch too.
Attachment #490639 - Flags: review?(mak77)
Comment on attachment 490639 [details] [diff] [review]

>diff -r 23dcbd0c286c browser/components/places/content/browserPlacesViews.js

>@@ -1049,19 +1050,20 @@
>   _updateChevronTimerCallback: function PT__updateChevronTimerCallback() {
>     let scrollRect = this._rootElt.getBoundingClientRect();
>     let childOverflowed = false;
>     for (let i = 0; i < this._rootElt.childNodes.length; i++) {
>       let child = this._rootElt.childNodes[i];
>       // Once a child overflows, all the next ones will.
>       if (!childOverflowed) {
>-        let childRect = child.getBoundingClientRect();
>-        childOverflowed = this._isRTL ? (childRect.left < scrollRect.left)
>-                                      : (childRect.right > scrollRect.right);
>+              let childRect = child.getBoundingClientRect();

this indentation change is probably a typo

thank you!
Attachment #490639 - Flags: review?(mak77) → review+

and the nit fix (mano, don't put checkin-needed if there's more fix needed!):

the first check-in i forgot to set mano as user, so probably going to back this all out again and re-land. ugh.
And now I've totally screwed my tree up trying to backout these. I'm going to leave it in as-is. Mano, if you want me to change it, ping me and I'll figure it out.
In case you back this out and reland it: the second getComputedStyle argument is optional.
Keywords: checkin-needed
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 4.0b8
You need to log in before you can comment on or make changes to this bug.