WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
268523
AX: The value of date time fields is not read by VoiceOver when the VO cursor lands on them.
https://bugs.webkit.org/show_bug.cgi?id=268523
Summary
AX: The value of date time fields is not read by VoiceOver when the VO cursor...
Andres Gonzalez
Reported
2024-01-31 18:26:05 PST
.
Attachments
Patch
(39.66 KB, patch)
2024-01-31 18:30 PST
,
Andres Gonzalez
no flags
Details
Formatted Diff
Diff
Patch
(40.49 KB, patch)
2024-02-01 05:59 PST
,
Andres Gonzalez
no flags
Details
Formatted Diff
Diff
Patch
(41.19 KB, patch)
2024-02-01 09:21 PST
,
Andres Gonzalez
no flags
Details
Formatted Diff
Diff
Patch
(42.70 KB, patch)
2024-02-01 16:35 PST
,
Andres Gonzalez
no flags
Details
Formatted Diff
Diff
Patch
(43.50 KB, patch)
2024-02-02 06:11 PST
,
Andres Gonzalez
no flags
Details
Formatted Diff
Diff
Patch
(43.52 KB, patch)
2024-02-03 10:38 PST
,
Andres Gonzalez
no flags
Details
Formatted Diff
Diff
Show Obsolete
(5)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2024-01-31 18:26:15 PST
<
rdar://problem/122059024
>
Andres Gonzalez
Comment 2
2024-01-31 18:30:40 PST
Created
attachment 469642
[details]
Patch
Andres Gonzalez
Comment 3
2024-02-01 05:59:46 PST
Created
attachment 469650
[details]
Patch
Tyler Wilcock
Comment 4
2024-02-01 07:46:11 PST
Comment on
attachment 469650
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=469650&action=review
> Source/WebCore/accessibility/AccessibilitySpinButton.h:72 > + bool m_isIncrementor : true;
I think the colon syntax is for bitfields. Do we want to keep it, or use the more standard: bool m_isIncrementor { true }
> Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:1004 > - > - if (self.axBackingObject->isNonNativeTextControl()) > - return true; > > - // Links can sometimes be elements (when they only contain static text or don't contain anything). > - // They should not be elements when containing text and other types. > + if (backingObject->isNonNativeTextControl()) > + return true; > + > + // Links can sometimes be elements (when they only contain static text or don't contain anything). > + // They should not be elements when containing text and other types.
I'm confused by this, both before and after your patch. Is this an if-statement wedged between switch case statements that doesn't belong to any case? If so, probably the indentation should at least match the cases (this patch moves indents it forwards one level) because it's some kind of ad-hoc "case". But seems odd in any case, unless this is standard practice I'm unaware of.
Andres Gonzalez
Comment 5
2024-02-01 09:21:45 PST
Created
attachment 469658
[details]
Patch
Andres Gonzalez
Comment 6
2024-02-01 09:25:24 PST
(In reply to Tyler Wilcock from
comment #4
)
> Comment on
attachment 469650
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=469650&action=review
> > > Source/WebCore/accessibility/AccessibilitySpinButton.h:72 > > + bool m_isIncrementor : true; > > I think the colon syntax is for bitfields. Do we want to keep it, or use the > more standard: > > bool m_isIncrementor { true }
AG: Fixed.
> > > Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:1004 > > - > > - if (self.axBackingObject->isNonNativeTextControl()) > > - return true; > > > > - // Links can sometimes be elements (when they only contain static text or don't contain anything). > > - // They should not be elements when containing text and other types. > > + if (backingObject->isNonNativeTextControl()) > > + return true; > > + > > + // Links can sometimes be elements (when they only contain static text or don't contain anything). > > + // They should not be elements when containing text and other types. > > I'm confused by this, both before and after your patch. Is this an > if-statement wedged between switch case statements that doesn't belong to > any case? If so, probably the indentation should at least match the cases > (this patch moves indents it forwards one level) because it's some kind of > ad-hoc "case". But seems odd in any case, unless this is standard practice > I'm unaware of.
AG: thanks for catching that. Removed the dead code and put the comment in the right place.
Tyler Wilcock
Comment 7
2024-02-01 10:19:09 PST
(In reply to Andres Gonzalez from
comment #6
)
> (In reply to Tyler Wilcock from
comment #4
) > > > Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:1004 > > > - > > > - if (self.axBackingObject->isNonNativeTextControl()) > > > - return true; > > > > > > - // Links can sometimes be elements (when they only contain static text or don't contain anything). > > > - // They should not be elements when containing text and other types. > > > + if (backingObject->isNonNativeTextControl()) > > > + return true; > > > + > > > + // Links can sometimes be elements (when they only contain static text or don't contain anything). > > > + // They should not be elements when containing text and other types. > > > > I'm confused by this, both before and after your patch. Is this an > > if-statement wedged between switch case statements that doesn't belong to > > any case? If so, probably the indentation should at least match the cases > > (this patch moves indents it forwards one level) because it's some kind of > > ad-hoc "case". But seems odd in any case, unless this is standard practice > > I'm unaware of. > > AG: thanks for catching that. Removed the dead code and put the comment in > the right place.
TW: Did the if-statement have no effect? Or is removing it a behavior change? I'm not sure how this code would behave, never seen something like it before.
Andres Gonzalez
Comment 8
2024-02-01 10:29:20 PST
(In reply to Tyler Wilcock from
comment #7
)
> (In reply to Andres Gonzalez from
comment #6
) > > (In reply to Tyler Wilcock from
comment #4
) > > > > Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:1004 > > > > - > > > > - if (self.axBackingObject->isNonNativeTextControl()) > > > > - return true; > > > > > > > > - // Links can sometimes be elements (when they only contain static text or don't contain anything). > > > > - // They should not be elements when containing text and other types. > > > > + if (backingObject->isNonNativeTextControl()) > > > > + return true; > > > > + > > > > + // Links can sometimes be elements (when they only contain static text or don't contain anything). > > > > + // They should not be elements when containing text and other types. > > > > > > I'm confused by this, both before and after your patch. Is this an > > > if-statement wedged between switch case statements that doesn't belong to > > > any case? If so, probably the indentation should at least match the cases > > > (this patch moves indents it forwards one level) because it's some kind of > > > ad-hoc "case". But seems odd in any case, unless this is standard practice > > > I'm unaware of. > > > > AG: thanks for catching that. Removed the dead code and put the comment in > > the right place. > TW: Did the if-statement have no effect? Or is removing it a behavior > change? I'm not sure how this code would behave, never seen something like > it before.
That if statement wasn't ever executed because the previous line is a return. Doesn't matter that is inside a case block.
Andres Gonzalez
Comment 9
2024-02-01 16:35:51 PST
Created
attachment 469666
[details]
Patch
Andres Gonzalez
Comment 10
2024-02-02 06:11:23 PST
Created
attachment 469674
[details]
Patch
Andres Gonzalez
Comment 11
2024-02-03 10:38:46 PST
Created
attachment 469692
[details]
Patch
EWS
Comment 12
2024-02-03 16:42:24 PST
Committed
274057@main
(7c62441425c1): <
https://commits.webkit.org/274057@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 469692
[details]
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug