[webkit-changes] [WebKit/WebKit] 63d05e: Cherry-pick e0e146fe111c. rdar://problem/104881175
Timothy Hatcher
noreply at github.com
Tue Feb 7 15:26:15 PST 2023
Branch: refs/heads/safari-7616.1.1-branch
Home: https://github.com/WebKit/WebKit
Commit: 63d05ea8db1eddc491861b51610a2e2baf1c7804
https://github.com/WebKit/WebKit/commit/63d05ea8db1eddc491861b51610a2e2baf1c7804
Author: Andres Gonzalez <andresg_22 at apple.com>
Date: 2023-02-07 (Tue, 07 Feb 2023)
Changed paths:
M Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm
Log Message:
-----------
Cherry-pick e0e146fe111c. rdar://problem/104881175
AX: Retain AXTextMarkerRefs and AXTextMarkerRangeRefs passed from the AX thread to the main thread.
https://bugs.webkit.org/show_bug.cgi?id=251451
<rdar://problem/104881175>
Reviewed by Chris Fleizach.
* Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
(-[WebAccessibilityObjectWrapper doAXAttributedStringForTextMarkerRange:spellCheck:]):
(-[WebAccessibilityObjectWrapper _accessibilitySetValue:forAttribute:]):
(-[WebAccessibilityObjectWrapper _indexForTextMarker:]):
(-[WebAccessibilityObjectWrapper textMarkerRangeAtTextMarker:forUnit:]):
(-[WebAccessibilityObjectWrapper lineTextMarkerRangeForTextMarker:forUnit:]):
(-[WebAccessibilityObjectWrapper textMarkerForTextMarker:atUnit:]):
(-[WebAccessibilityObjectWrapper accessibilityAttributeValue:forParameter:]):
Canonical link: https://commits.webkit.org/259918@main
Canonical link: https://commits.webkit.org/259456.417@safari-7616.1.1-branch
Commit: 90b6842566c0fb1b902775d5e55c7f331742a0ec
https://github.com/WebKit/WebKit/commit/90b6842566c0fb1b902775d5e55c7f331742a0ec
Author: Andres Gonzalez <andresg_22 at apple.com>
Date: 2023-02-07 (Tue, 07 Feb 2023)
Changed paths:
M Source/WebCore/accessibility/AXObjectCache.cpp
M Source/WebCore/accessibility/AXObjectCache.h
Log Message:
-----------
Cherry-pick c11d33bb0bb2. rdar://problem/104956200
AX: Object IDs should not be generated with AXTreeStore::generateNewID().
https://bugs.webkit.org/show_bug.cgi?id=251577
<rdar://problem/104956200>
Reviewed by Chris Fleizach.
In the patch for
https://bugs.webkit.org/show_bug.cgi?id=249480
<rdar://problem/103449294>
I erroneously switched the generation of object IDS in the AXObjectCache to use AXTreeStore::generateNewID. This is wrong because generateNewID checks the presence of the ID against the IDs of AX trees and not against object IDs. This patch rectifies this by bringing back AXObjectCache::generateNewObjectID (new name).
* Source/WebCore/accessibility/AXObjectCache.cpp:
(WebCore::AXObjectCache::generateNewObjectID const):
(WebCore::AXObjectCache::getAXID):
* Source/WebCore/accessibility/AXObjectCache.h:
(WebCore::AXObjectCache::objectForID const): No need to pass AXID by reference since it just wraps an unsgined.
Canonical link: https://commits.webkit.org/259922@main
Canonical link: https://commits.webkit.org/259456.418@safari-7616.1.1-branch
Commit: 4db7f9fa4f2d5e8fb03aa761743f2eedb4b44236
https://github.com/WebKit/WebKit/commit/4db7f9fa4f2d5e8fb03aa761743f2eedb4b44236
Author: Timothy Hatcher <timothy at apple.com>
Date: 2023-02-07 (Tue, 07 Feb 2023)
Changed paths:
M Source/WebKit/NetworkProcess/NetworkProcess.cpp
M Tools/TestWebKitAPI/Tests/WebKitCocoa/WKURLSchemeHandler-1.mm
Log Message:
-----------
Cherry-pick d8706351a89a. rdar://problem/103793194
Cross-Origin-Resource-Policy blocks fetch from extensions.
https://webkit.org/b/251858
rdar://103793194
Reviewed by Chris Dumez.
SecurityPolicy was blocking the fetch load due to the Cross-Origin-Resource-Policy check
in the NetworkProcess. In the WebProcess, SecurityPolicy checks were succeeding due to the
existing call to SecurityPolicy::allowAccessTo() when parsing the corsDisablingPatterns.
This step was missing in the NetworkProcess. Now both processes have the same checks.
* Source/WebKit/NetworkProcess/NetworkProcess.cpp:
(WebKit::NetworkProcess::setCORSDisablingPatterns): Add the pattern to SecurityPolicy to
match WebPage.cpp's parseAndAllowAccessToCORSDisablingPatterns().
* Tools/TestWebKitAPI/Tests/WebKitCocoa/WKURLSchemeHandler-1.mm:
(TEST(URLSchemeHandler, DisableCORSAndCORP)): Added.
Canonical link: https://commits.webkit.org/259976@main
Canonical link: https://commits.webkit.org/259456.419@safari-7616.1.1-branch
Compare: https://github.com/WebKit/WebKit/compare/233599b2aa6d...4db7f9fa4f2d
More information about the webkit-changes
mailing list