Closed Bug 1846312 Opened 2 years ago Closed 2 years ago

Include non-text controls as AXAttachments in attributed text

Categories

(Core :: Disability Access APIs, defect)

All
macOS
defect

Tracking

()

RESOLVED FIXED
118 Branch
Tracking Status
firefox118 --- fixed

People

(Reporter: eeejay, Assigned: eeejay)

References

Details

Attachments

(1 file)

Given a range that includes some non-text accessible we need to represent that accessible as an individual attributes run with an attachment for example:

hello<button></button>world

Would be:

hello{
    AXBackgroundColor = "<CGColor 0x600002aa27c0> [<CGColorSpace 0x600002aa2760> (kCGColorSpaceICCBased; kCGColorSpaceModelRGB; Generic RGB Profile)] ( 1 1 1 1 )";
    AXFont =     {
        AXFontFamily = Times;
        AXFontSize = 16;
    };
    AXForegroundColor = "<CGColor 0x600002aa2820> [<CGColorSpace 0x600002aa2760> (kCGColorSpaceICCBased; kCGColorSpaceModelRGB; Generic RGB Profile)] ( 0 0 0 1 )";
    "font-style" = normal;
    "font-weight" = 400;
    "text-position" = baseline;
}{
    AXAttachment = "<AXUIElement 0x60000009c3f0> {pid=18336}";
}world{
    AXBackgroundColor = "<CGColor 0x600002aa2880> [<CGColorSpace 0x600002aa2760> (kCGColorSpaceICCBased; kCGColorSpaceModelRGB; Generic RGB Profile)] ( 1 1 1 1 )";
    AXFont =     {
        AXFontFamily = Times;
        AXFontSize = 16;
    };
    AXForegroundColor = "<CGColor 0x600002aa28e0> [<CGColorSpace 0x600002aa2760> (kCGColorSpaceICCBased; kCGColorSpaceModelRGB; Generic RGB Profile)] ( 0 0 0 1 )";
    "font-style" = normal;
    "font-weight" = 400;
    "text-position" = baseline;
}
Pushed by eisaacson@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e9bad808b74c Use AXAttachment to represent non-text controls in an attributed string. r=Jamie
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 118 Branch
Regressions: 1876150
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: