Closed Bug 1512980 Opened 5 years ago Closed 5 years ago

Contrast ratio indicator is not working in iframes.

Categories

(DevTools :: Accessibility Tools, defect)

defect
Not set
normal

Tracking

(firefox-esr60 unaffected, firefox64 unaffected, firefox65 verified, firefox66 verified)

VERIFIED FIXED
Firefox 66
Tracking Status
firefox-esr60 --- unaffected
firefox64 --- unaffected
firefox65 --- verified
firefox66 --- verified

People

(Reporter: yzen, Assigned: yzen)

References

Details

(Keywords: regression)

Attachments

(1 file)

Contrast ratio indicator shows up as "Unable to calculate" when trying to hover over text in iframes because the styling applied for contrast calculations is applied on the root window instead of the window that the node belongs to.
Pushed by yura.zenevich@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/883d0ac7c183
ensure that the right window is used when calculating the contrast ratio in accessibility highlighter. r=pbro
Comment on attachment 9030233 [details]
Bug 1512980 - ensure that the right window is used when calculating the contrast ratio in accessibility highlighter. r=pbro

[Beta/Release Uplift Approval Request]

Feature/Bug causing the regression: Bug 1505848

User impact if declined: Users will not be able to use highlighter's colour contrast indicator in iframes. In cases like that it will display: Unable to calculate.

Is this code covered by automated tests?: No

Has the fix been verified in Nightly?: No

Needs manual test from QE?: No

If yes, steps to reproduce: 

List of other uplifts needed: None

Risk to taking this patch: Low

Why is the change risky/not risky? (and alternatives if risky): Simply updating which window is used to apply styles that are needed to calculate colour contrast.

String changes made/needed: None
Attachment #9030233 - Flags: approval-mozilla-beta?
https://hg.mozilla.org/mozilla-central/rev/883d0ac7c183
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 66
Comment on attachment 9030233 [details]
Bug 1512980 - ensure that the right window is used when calculating the contrast ratio in accessibility highlighter. r=pbro

[Triage Comment]
Fixes users being unable to use the color contrast indicator in iframes. Approved for 64.0b4.
Attachment #9030233 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Flags: qe-verify+
I successfully reproduced the issue on Firefox Nightly 65.0a1 (2018-12-09) under Ubuntu 18.04 (x64) with some help from Yura.
The issue is not reproducible anymore on latest Firefox Beta 65.0b4 and latest Nightly 66.0a1 (2018-12-12). Tests were performed under Ubuntu 18.04 (x64), Windows 10 (x64) and macOS 10.11.
Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: