RESOLVED FIXED 222811
[iOS] Implement additional accessibility support for image overlays
https://bugs.webkit.org/show_bug.cgi?id=222811
Summary [iOS] Implement additional accessibility support for image overlays
Wenson Hsieh
Reported 2021-03-05 10:53:17 PST
Attachments
Patch (24.28 KB, patch)
2021-03-05 12:09 PST, Wenson Hsieh
no flags
Patch (22.36 KB, patch)
2021-03-05 12:13 PST, Wenson Hsieh
no flags
Fix non-internal iOS build (22.89 KB, patch)
2021-03-05 13:20 PST, Wenson Hsieh
no flags
Patch (22.91 KB, patch)
2021-03-05 13:38 PST, Wenson Hsieh
no flags
For EWS (23.35 KB, patch)
2021-03-05 14:55 PST, Wenson Hsieh
ews-feeder: commit-queue-
Fix non-internal iOS build (23.65 KB, patch)
2021-03-05 15:44 PST, Wenson Hsieh
no flags
Fix non-internal iOS build (23.48 KB, patch)
2021-03-05 15:46 PST, Wenson Hsieh
ews-feeder: commit-queue-
Patch (23.38 KB, patch)
2021-03-05 16:18 PST, Wenson Hsieh
no flags
Wenson Hsieh
Comment 1 2021-03-05 12:09:40 PST Comment hidden (obsolete)
Wenson Hsieh
Comment 2 2021-03-05 12:13:37 PST
Wenson Hsieh
Comment 3 2021-03-05 13:20:22 PST
Created attachment 422402 [details] Fix non-internal iOS build
Wenson Hsieh
Comment 4 2021-03-05 13:21:07 PST
Thanks for the review! (Looks like I need a slight adjustment to fix the !ENABLE(IMAGE_EXTRACTION) build)
Devin Rousso
Comment 5 2021-03-05 13:25:56 PST
Comment on attachment 422402 [details] Fix non-internal iOS build View in context: https://bugs.webkit.org/attachment.cgi?id=422402&action=review r=me as well :) > Source/WebKit/ChangeLog:27 > + There's no need to make the regular text interaction duck in favor of the image extraction interaction after "duck"? > Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm:2737 > + if (HTMLElement::isImageOverlayText(*innerNonSharedNode)) Can/Should we assume that this is not `nullptr`? Should we have `HTMLElement::isImageOverlayText` take a `const Node*` instead?
Wenson Hsieh
Comment 6 2021-03-05 13:30:27 PST
(In reply to Devin Rousso from comment #5) > Comment on attachment 422402 [details] > Fix non-internal iOS build > > View in context: > https://bugs.webkit.org/attachment.cgi?id=422402&action=review > > r=me as well :) > > > Source/WebKit/ChangeLog:27 > > + There's no need to make the regular text interaction duck in favor of the image extraction interaction after > > "duck"? As in, "make one thing duck to avoid another thing", but perhaps that isn't so clear — I'll reword this sentence. > > > Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm:2737 > > + if (HTMLElement::isImageOverlayText(*innerNonSharedNode)) > > Can/Should we assume that this is not `nullptr`? Should we have > `HTMLElement::isImageOverlayText` take a `const Node*` instead? Since this is a hit test result, I'm a bit hesitant to assume that it must be non-null.
Wenson Hsieh
Comment 7 2021-03-05 13:38:15 PST
Simon Fraser (smfr)
Comment 8 2021-03-05 13:56:56 PST
Comment on attachment 422407 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=422407&action=review > Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm:9412 > + block(NO); Use an enum? > Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm:9944 > + getConfigurationAndContinue(NO); Use an enum?
Wenson Hsieh
Comment 9 2021-03-05 13:59:54 PST
(In reply to Simon Fraser (smfr) from comment #8) > Comment on attachment 422407 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=422407&action=review > > > Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm:9412 > > + block(NO); > > Use an enum? Good call — added this enum, and changed the block to take it instead of BOOL: enum class ProceedWithImageExtraction : bool { No, Yes }; > > > Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm:9944 > > + getConfigurationAndContinue(NO); > > Use an enum?
Wenson Hsieh
Comment 10 2021-03-05 14:55:38 PST
Wenson Hsieh
Comment 11 2021-03-05 15:44:34 PST
Created attachment 422444 [details] Fix non-internal iOS build
Wenson Hsieh
Comment 12 2021-03-05 15:46:20 PST
Created attachment 422445 [details] Fix non-internal iOS build
Wenson Hsieh
Comment 13 2021-03-05 16:18:39 PST
EWS
Comment 14 2021-03-05 22:33:05 PST
Committed r274031: <https://commits.webkit.org/r274031> All reviewed patches have been landed. Closing bug and clearing flags on attachment 422450 [details].
Note You need to log in before you can comment on or make changes to this bug.