Closed Bug 357081 Opened 19 years ago Closed 18 years ago

tab bar doesn't resume scrolling when moving off button and back on while holding mouse button

Categories

(Firefox :: Tabbed Browser, defect)

2.0 Branch
defect
Not set
minor

Tracking

()

VERIFIED FIXED
Firefox 3 alpha8

People

(Reporter: bugzilla, Assigned: dao)

References

Details

Attachments

(1 file, 3 obsolete files)

this occurs on: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1) Gecko/20061010 Firefox/2.0 <--- this is win XP home Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1) Gecko/20061013 Firefox/2.0 Flock/0.7.99 <--- this is danphe (trunk) this is knoppix 4.0.2 Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1) Gecko/2006101304 BonEcho/2.0 <--- this is knoppix 4.0.2 STR: Create enough new tabs that you have room to scroll around. Click and hold arrow at either end of tab bar. Continue holding, move off arrow and back on. Expected: Scrolling should resume if mouse button held continuously and pointer returns to the arrow. Actual: Tab bar doesn't resume scrolling when moving off button and back on while holding mouse button.
Flags: blocking-firefox2?
Flags: blocking-firefox2? → blocking1.8.1.1?
Why are you nominating a minor bug to block 1.8.1.1?
Need an assignee and a patch before we could consider blocking for this.
Flags: blocking1.8.1.1? → blocking1.8.1.1-
A fix for this should be trivial. I can do it as a follow-up to bug 347363.
Assignee: nobody → dao
Depends on: 347363
Status: NEW → ASSIGNED
Attached patch patch (obsolete) — Splinter Review
Attachment #276941 - Flags: review?(mano)
Attached patch patch v2 (obsolete) — Splinter Review
no need to add listeners if the mouse button has already been released
Attachment #276941 - Attachment is obsolete: true
Attachment #276942 - Flags: review?(mano)
Attachment #276941 - Flags: review?(mano)
Attachment #276942 - Flags: review?(mano) → review?(enndeakin)
Comment on attachment 276942 [details] [diff] [review] patch v2 > >+ <!-- initially empty fields: > <field name="_scrollTimer">null</field> >+ <field name="_mousedown">false</field> >+ --> Why are these commented out? >+ <method name="handleEvent"> >+ <parameter name="aEvent"/> >+ <body><![CDATA[ >+ if (aEvent.type == "mouseup" || >+ aEvent.type == "blur" && aEvent.target == document) { && has higher precedence, so you want parantheses here Otherwise, looks good.
(In reply to comment #6) > (From update of attachment 276942 [details] [diff] [review]) > > > >+ <!-- initially empty fields: > > <field name="_scrollTimer">null</field> > >+ <field name="_mousedown">false</field> > >+ --> > > Why are these commented out? These values are needed for |if (!this._foo)| checks only, which works with undefined properties as well. The construction of the fields can therefore be avoided, which possibly helps performance (as in attachment 270748 [details] [diff] [review], for instance). > >+ <method name="handleEvent"> > >+ <parameter name="aEvent"/> > >+ <body><![CDATA[ > >+ if (aEvent.type == "mouseup" || > >+ aEvent.type == "blur" && aEvent.target == document) { > > && has higher precedence Yes, that was desired. The target check isn't needed for the mouseup event, is it?
(In reply to comment #6) > (From update of attachment 276942 [details] [diff] [review]) > > > >+ <!-- initially empty fields: > > <field name="_scrollTimer">null</field> > >+ <field name="_mousedown">false</field> > >+ --> > > Why are these commented out? See also http://groups.google.com/group/mozilla.dev.performance/browse_thread/thread/6db1639b028850f5/c269064401098281
I meant, why are they commented out instead of just removing them?
I found that useful as you can easily spot the properties that will be used, as well as their types.
Attached patch patch v2.1 (obsolete) — Splinter Review
... then again, it's not that important to me. If that eases the review, let's ditch the comment.
Attachment #276942 - Attachment is obsolete: true
Attachment #277515 - Flags: review?(enndeakin)
Attachment #276942 - Flags: review?(enndeakin)
Attachment #277515 - Flags: review?(enndeakin) → review+
Keywords: checkin-needed
somebody check this in, please.
Attachment #277515 - Attachment is obsolete: true
Checking in browser/base/content/tabbrowser.xml; /cvsroot/mozilla/browser/base/content/tabbrowser.xml,v <-- tabbrowser.xml new revision: 1.238; previous revision: 1.237 done Checking in toolkit/content/widgets/scrollbox.xml; /cvsroot/mozilla/toolkit/content/widgets/scrollbox.xml,v <-- scrollbox.xml new revision: 1.25; previous revision: 1.24 done
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 3 M8
Flags: in-litmus?
Litmus Triage: marcia will handle this test case.
https://litmus.mozilla.org/show_test.cgi?id=5084 was added in Litmus. Verified fixed using Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9b3pre) Gecko/2008010705 Minefield/3.0b3pre.
Status: RESOLVED → VERIFIED
Flags: in-litmus? → in-litmus+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: