Title: [293461] branches/safari-613-branch
Revision
293461
Author
[email protected]
Date
2022-04-26 15:17:48 -0700 (Tue, 26 Apr 2022)

Log Message

Cherry-pick r291724. rdar://problem/91975589

    Expose the AX tree of PDFs loaded via iframes on the Mac
    https://bugs.webkit.org/show_bug.cgi?id=238168

    Reviewed by Chris Fleizach.

    Source/WebKit:

    Given this markup:

    <iframe src=""

    An accessibility tree is built for paystub.pdf, but we don't expose it
    to AX clients, making the PDF entirely inaccessible.

    This happens because we were setting the AX parent to be the webpage
    for full-frame PDF plugins (which an iframe with this markup is).
    This behavior is correct only for main-frame (i.e. not iframe)
    full-frame plugins, so this patch adds an extra condition to that logic.

    Test: accessibility/mac/iframe-pdf.html

    * WebProcess/Plugins/PDF/PDFPlugin.mm:
    (WebKit::PDFPlugin::PDFPlugin):

    LayoutTests:

    * accessibility/mac/iframe-pdf-expected.txt: Added.
    * accessibility/mac/iframe-pdf.html: Added.
    * platform/mac-wk1/TestExpectations:
    Skip new test as it always times out in WK1 (similar to
    accessibility/mac/basic-embed-pdf-accessibility.html)

    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@291724 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Modified Paths

Diff

Modified: branches/safari-613-branch/LayoutTests/ChangeLog (293460 => 293461)


--- branches/safari-613-branch/LayoutTests/ChangeLog	2022-04-26 22:17:45 UTC (rev 293460)
+++ branches/safari-613-branch/LayoutTests/ChangeLog	2022-04-26 22:17:48 UTC (rev 293461)
@@ -1,5 +1,57 @@
 2022-04-22  Alan Coon  <[email protected]>
 
+        Cherry-pick r291724. rdar://problem/91975589
+
+    Expose the AX tree of PDFs loaded via iframes on the Mac
+    https://bugs.webkit.org/show_bug.cgi?id=238168
+    
+    Reviewed by Chris Fleizach.
+    
+    Source/WebKit:
+    
+    Given this markup:
+    
+    <iframe src=""
+    
+    An accessibility tree is built for paystub.pdf, but we don't expose it
+    to AX clients, making the PDF entirely inaccessible.
+    
+    This happens because we were setting the AX parent to be the webpage
+    for full-frame PDF plugins (which an iframe with this markup is).
+    This behavior is correct only for main-frame (i.e. not iframe)
+    full-frame plugins, so this patch adds an extra condition to that logic.
+    
+    Test: accessibility/mac/iframe-pdf.html
+    
+    * WebProcess/Plugins/PDF/PDFPlugin.mm:
+    (WebKit::PDFPlugin::PDFPlugin):
+    
+    LayoutTests:
+    
+    * accessibility/mac/iframe-pdf-expected.txt: Added.
+    * accessibility/mac/iframe-pdf.html: Added.
+    * platform/mac-wk1/TestExpectations:
+    Skip new test as it always times out in WK1 (similar to
+    accessibility/mac/basic-embed-pdf-accessibility.html)
+    
+    
+    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@291724 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+    2022-03-22  Tyler Wilcock  <[email protected]>
+
+            Expose the AX tree of PDFs loaded via iframes on the Mac
+            https://bugs.webkit.org/show_bug.cgi?id=238168
+
+            Reviewed by Chris Fleizach.
+
+            * accessibility/mac/iframe-pdf-expected.txt: Added.
+            * accessibility/mac/iframe-pdf.html: Added.
+            * platform/mac-wk1/TestExpectations:
+            Skip new test as it always times out in WK1 (similar to
+            accessibility/mac/basic-embed-pdf-accessibility.html)
+
+2022-04-22  Alan Coon  <[email protected]>
+
         Cherry-pick r292274. rdar://problem/80544133
 
     [Cocoa] Automatically relayout the page when new fonts are installed

Modified: branches/safari-613-branch/Source/WebKit/ChangeLog (293460 => 293461)


--- branches/safari-613-branch/Source/WebKit/ChangeLog	2022-04-26 22:17:45 UTC (rev 293460)
+++ branches/safari-613-branch/Source/WebKit/ChangeLog	2022-04-26 22:17:48 UTC (rev 293461)
@@ -1,5 +1,68 @@
 2022-04-22  Alan Coon  <[email protected]>
 
+        Cherry-pick r291724. rdar://problem/91975589
+
+    Expose the AX tree of PDFs loaded via iframes on the Mac
+    https://bugs.webkit.org/show_bug.cgi?id=238168
+    
+    Reviewed by Chris Fleizach.
+    
+    Source/WebKit:
+    
+    Given this markup:
+    
+    <iframe src=""
+    
+    An accessibility tree is built for paystub.pdf, but we don't expose it
+    to AX clients, making the PDF entirely inaccessible.
+    
+    This happens because we were setting the AX parent to be the webpage
+    for full-frame PDF plugins (which an iframe with this markup is).
+    This behavior is correct only for main-frame (i.e. not iframe)
+    full-frame plugins, so this patch adds an extra condition to that logic.
+    
+    Test: accessibility/mac/iframe-pdf.html
+    
+    * WebProcess/Plugins/PDF/PDFPlugin.mm:
+    (WebKit::PDFPlugin::PDFPlugin):
+    
+    LayoutTests:
+    
+    * accessibility/mac/iframe-pdf-expected.txt: Added.
+    * accessibility/mac/iframe-pdf.html: Added.
+    * platform/mac-wk1/TestExpectations:
+    Skip new test as it always times out in WK1 (similar to
+    accessibility/mac/basic-embed-pdf-accessibility.html)
+    
+    
+    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@291724 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+    2022-03-22  Tyler Wilcock  <[email protected]>
+
+            Expose the AX tree of PDFs loaded via iframes on the Mac
+            https://bugs.webkit.org/show_bug.cgi?id=238168
+
+            Reviewed by Chris Fleizach.
+
+            Given this markup:
+
+            <iframe src=""
+
+            An accessibility tree is built for paystub.pdf, but we don't expose it
+            to AX clients, making the PDF entirely inaccessible.
+
+            This happens because we were setting the AX parent to be the webpage
+            for full-frame PDF plugins (which an iframe with this markup is).
+            This behavior is correct only for main-frame (i.e. not iframe)
+            full-frame plugins, so this patch adds an extra condition to that logic.
+
+            Test: accessibility/mac/iframe-pdf.html
+
+            * WebProcess/Plugins/PDF/PDFPlugin.mm:
+            (WebKit::PDFPlugin::PDFPlugin):
+
+2022-04-22  Alan Coon  <[email protected]>
+
         Cherry-pick r291589. rdar://problem/90511155
 
     LayoutTests/imported/w3c:
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to