Title: [288444] trunk/Tools
Revision
288444
Author
[email protected]
Date
2022-01-24 08:18:33 -0800 (Mon, 24 Jan 2022)

Log Message

[GTK][a11y] Test accessibility/url-test.html fails with ATSPI
https://bugs.webkit.org/show_bug.cgi?id=235486

Reviewed by Darin Adler.

Ensure we don't remove the fragment id of URL when removing the base path.

* WebKitTestRunner/InjectedBundle/atspi/AccessibilityUIElementAtspi.cpp:
(WTR::AccessibilityUIElement::url):

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (288443 => 288444)


--- trunk/Tools/ChangeLog	2022-01-24 16:13:21 UTC (rev 288443)
+++ trunk/Tools/ChangeLog	2022-01-24 16:18:33 UTC (rev 288444)
@@ -1,3 +1,15 @@
+2022-01-24  Carlos Garcia Campos  <[email protected]>
+
+        [GTK][a11y] Test accessibility/url-test.html fails with ATSPI
+        https://bugs.webkit.org/show_bug.cgi?id=235486
+
+        Reviewed by Darin Adler.
+
+        Ensure we don't remove the fragment id of URL when removing the base path.
+
+        * WebKitTestRunner/InjectedBundle/atspi/AccessibilityUIElementAtspi.cpp:
+        (WTR::AccessibilityUIElement::url):
+
 2022-01-24  Aakash Jain  <[email protected]>
 
         Allow configuring multiple user credentials on ews

Modified: trunk/Tools/WebKitTestRunner/InjectedBundle/atspi/AccessibilityUIElementAtspi.cpp (288443 => 288444)


--- trunk/Tools/WebKitTestRunner/InjectedBundle/atspi/AccessibilityUIElementAtspi.cpp	2022-01-24 16:13:21 UTC (rev 288443)
+++ trunk/Tools/WebKitTestRunner/InjectedBundle/atspi/AccessibilityUIElementAtspi.cpp	2022-01-24 16:18:33 UTC (rev 288444)
@@ -1381,16 +1381,14 @@
     if (axURL.isNull())
         return JSStringCreateWithUTF8CString("AXURL: (null)");
 
+    auto stringURL = axURL.string();
     if (axURL.isLocalFile()) {
         // Do not expose absolute paths.
-        auto path = axURL.fileSystemPath();
-        auto index = path.find("LayoutTests");
+        auto index = stringURL.find("LayoutTests");
         if (index != notFound)
-            path = path.substring(index);
-        return OpaqueJSString::tryCreate(makeString("AXURL: ", path)).leakRef();
+            stringURL = stringURL.substring(index);
     }
-
-    return OpaqueJSString::tryCreate(makeString("AXURL: ", axURL.string())).leakRef();
+    return OpaqueJSString::tryCreate(makeString("AXURL: ", stringURL)).leakRef();
 }
 
 bool AccessibilityUIElement::addNotificationListener(JSValueRef functionCallback)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to