Closed Bug 590453 Opened 9 years ago Closed 9 years ago

Scale (slider) refresh bug: shows all previous positions


(Toolkit :: XUL Widgets, defect)

Windows 7
Not set



Tracking Status
blocking2.0 --- final+


(Reporter: pierre, Assigned: jimm)



(Keywords: regression, Whiteboard: [softblocker][fx4-fixed-bugday])


(4 files, 1 obsolete file)

User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20100824 Namoroka/3.6.9pre
Build Identifier: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b4) Gecko/20100818 Firefox/4.0b4

When moving a scale, with mouse of keyboard, previous position does not disappear.
Everything becomes find when I resize the window.

Reproducible: Always

Steps to Reproduce:
1. Open the testcase
2. Move the scale
Actual Results:  
Show all previous positions, see screenshot.

Expected Results:  
Should remove previous positions, showing only current one.
Version: unspecified → Trunk
Attached file Not working test case.
Attached image Screenshot of the bug (obsolete) —
Attached image Screenshot of the bug
Attachment #468994 - Attachment is obsolete: true
The bug disappears when the window is resized, or looses focus.
Works well on Linux and MacOSX.
Bug on Windows 7.
Not tested on Windows XP.
Summary: Scale (slider) shows previous positions → Scale (slider) refresh bug: shows all previous positions
Confirming for Vista.Mozilla/5.0 (Windows NT 6.0; WOW64; rv:2.0b7pre) Gecko/20100919 Firefox/4.0b7preI'm seeing the same thing the original reporter is.  The background behind the scale's sliding head is not refreshing while the mouse is down, so you see trails where the slider has been.  The background refreshes when you release the mouse button.You can see the same thing with the add-on DownThemAll, which uses the scale element in its Preferences dialog.
Component: XUL → XUL Widgets
Ever confirmed: true
Product: Core → Toolkit
QA Contact: xptoolkit.widgets → xul.widgets
Sorry about the lack of line breaks, somehow they got lost during copy-paste ...

Anyway, that u-a string is:

Mozilla/5.0 (Windows NT 6.0; WOW64; rv:2.0b7pre) Gecko/20100919 Firefox/4.0b7pre
I see the same thing on Mozilla/5.0 (Windows NT 6.0; rv:2.0b7pre) Gecko/20100922 Firefox/4.0b7pre. When hardware acceleration is off I see the same as in the screenshot, and when hardware acceleration is on, I see a black background.
Blocks: 592147
On windows XP; Firefox/4.0b9pre the slider background turns black when the cursor first enters the slider's rectangle, but background disappears when cursor is over the slider.
From the most interesting change description seems to be for bug 555133. In that change, the only Windows specific change is in nsNativeThemeWin::GetWidgetTransparency ( ). When I change that function to always return eUnknownTransparency, the problem goes away.
Blocks: 555133
blocking2.0: --- → ?
Unless this is visible somewhere in the main Firefox UI I think this only softblocks.

Rob, Jim, this sounds like one of yours?
blocking2.0: ? → final+
Whiteboard: [softblocker]
Attached patch patchSplinter Review
Odd, IsThemeBackgroundPartiallyTransparent return false, yet, the background of the control is the underlying content. Attached is a patch that fixes the problem.
Assignee: nobody → jmathies
Attachment #507184 - Flags: review?(roc)
Pushed to mozilla-central
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.0b11
The testcase does not seem to open.  Is there a way we can verify this bug as fixed?
Whiteboard: [softblocker] → [softblocker][fx4-fixed-bugday]
(In reply to comment #16)
> The testcase does not seem to open.  Is there a way we can verify this bug as
> fixed?

Install this extension:

add '' in the white list config under tools

It should open.

Or you can restrict this to local files you save to your desktop by adding <Local files>.
Thanks for the help, Jim.

Verified fixed on Firefox 4.0b12pre 20110214.
On Firefox 4.0b11, the fixed version does not show the dotted box around the slider when it gains the focus.
You need to log in before you can comment on or make changes to this bug.