Closed Bug 1787490 Opened 2 years ago Closed 2 years ago

High-contrast mode adds scrollbar to the text recognition modal regardless of scale

Categories

(Core :: DOM: Core & HTML, defect, P3)

Unspecified
macOS
defect

Tracking

()

RESOLVED FIXED
106 Branch
Tracking Status
firefox105 --- disabled
firefox106 --- verified

People

(Reporter: pmagyari, Assigned: gregtatum)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

Note

  • Make sure "dom.text-recognition.enabled"=true in about:config.

Found in

  • Firefox Beta 105.0b2

Affected versions

  • Firefox Beta 105
  • Firefox Nightly 106

Affected platforms

  • MacOS 10.15
  • MacOS 11.6
  • MacOS 12.4

Steps to reproduce

  1. Open browser.
  2. Navigate to: https://bit.ly/3QV8Op7
  3. Right-click on the image to open the context menu.
  4. Select the "Copy Text From Image" command.
  5. Go to System Preferences-> Accessibility-> Display and check "Increase Contrast".
  6. Bring Firefox back to focus and check the text recognition modal.

Expected result

  • The modal does not have a scrollbar.

Actual result

  • The modal does have a scrollbar with HC enabled.

Regression range

  • This is not a regression.
Assignee: nobody → gtatum
Priority: -- → P3
Has STR: --- → yes

The border was causing layout issues with a new dialog, whereas the
outline CSS property won't affect the layout.

Pushed by gtatum@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/19af54f9ece1
Use an outline rather than borders for HCM dialogs; r=morgan
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 106 Branch

I have verified the fix using Nightly 106.0a1 (20220901095452) on MacOS 10.15, MacOS 12.4 and M1 MacOS 11.6.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: