Closed Bug 1160779 Opened 9 years ago Closed 9 years ago

[10.10] Resizing focused textarea leaves artifacts behind

Categories

(Core :: Widget: Cocoa, defect)

All
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla41

People

(Reporter: ntim, Assigned: mstange)

References

()

Details

(Whiteboard: [STR in comment #5])

Testcase : data:text/html,<textarea></textarea>

Focus the textarea, resize it, and you'll see the artificats
Works fine for me on 10.8.
(In reply to Timothy Nikkel (:tn) from comment #1)
> Works fine for me on 10.8.

Probably a Yosemite only issue then.
Summary: Resizing focused textarea leaves artifacts behind → [10.10] Resizing focused textarea leaves artifacts behind
I don't see this bug, in either FF 37.0.2 or today's mozilla-central nightly, testing on OS X 10.10.3.

Please test with a clean profile.  If that makes the problem go away, try to figure out what non-default setting triggers this problem.
(In reply to Steven Michaud from comment #3)
> I don't see this bug, in either FF 37.0.2 or today's mozilla-central
> nightly, testing on OS X 10.10.3.
> 
> Please test with a clean profile.  If that makes the problem go away, try to
> figure out what non-default setting triggers this problem.

I can reproduce on a blank profile as well. Note that you have to resize to a smaller size than the previous size.
(Following up comment #3)

I take that back.  I *do* see this bug (on OS X 10.10.3) in FF 37.0.2 and today's m-c nightly.  I'd forgotten to focus the testcase.  I only see this when HiDPI mode is on -- and so only on a Retina display.  (The easiest way to turn off HiDPI mode on a Retina display is to righ-click on an FF distro, choose Get Info, then choose Open in Low Resolution.)  The artifacts are pieces of the blue focus highlight.

Proper STR:

1) Run FF on a Retina Mac with a clean profile (or at least vanilla settings).
2) Paste data:text/html,<textarea></textarea> into the location bar.
3) Click on the textarea to give it keyboard focus (and blue focus outline).
4) Resize the textarea bigger and then smaller (using the grow box in its lower right).

When you make the textarea smaller, it leaves pieces of the blue focus highlighting on the page.
Whiteboard: [STR in comment #5]
This sounds related to bug 1154013, and rather more serious.
See Also: → 1154013
I don't see this bug on OS X 10.9.5 (or below).
I think MAX_FOCUS_RING_WIDTH needs a higher value on 10.10, so that the overflow returned by nsNativeThemeCocoa::GetWidgetOverflow actually contains all of the focus ring.
(In reply to Markus Stange [:mstange] from comment #8)
> I think MAX_FOCUS_RING_WIDTH needs a higher value on 10.10, so that the
> overflow returned by nsNativeThemeCocoa::GetWidgetOverflow actually contains
> all of the focus ring.

And that was done in http://hg.mozilla.org/mozilla-central/rev/96c8db2afa1f :-)

Perhaps this is fixed now (I don't have a retina mac, so I can't test)?
Yup, it's fixed. Thanks for pointing me to this bug again; I knew there was one about this somewhere, but I didn't look when I fixed bug 1119106.
Assignee: nobody → mstange
Status: NEW → RESOLVED
Closed: 9 years ago
Depends on: 1119106
Resolution: --- → FIXED
Target Milestone: --- → mozilla41
You need to log in before you can comment on or make changes to this bug.