Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: third_party/WebKit/LayoutTests/inspector/console/console-log-linkify-links.html

Issue 2527763003: [DevTools] Turn links into spans to prevent default behavior. (Closed)
Patch Set: fixed comments Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/inspector/console/console-log-linkify-links.html
diff --git a/third_party/WebKit/LayoutTests/inspector/console/console-log-linkify-links.html b/third_party/WebKit/LayoutTests/inspector/console/console-log-linkify-links.html
index 09c7dcabcb8a3ac09e439ae64b315c8fe573f68b..7cc4a5ce4361de7cffe058de9bce304cb81902db 100644
--- a/third_party/WebKit/LayoutTests/inspector/console/console-log-linkify-links.html
+++ b/third_party/WebKit/LayoutTests/inspector/console/console-log-linkify-links.html
@@ -20,9 +20,11 @@ function test()
for (var i = 0; i < viewMessages.length; ++i) {
var uiMessage = viewMessages[i];
var element = uiMessage.contentElement();
- var hrefs = element.querySelectorAll(".webkit-html-resource-link");
- for (var href of hrefs)
- InspectorTest.addResult("linked url:" + href.href);
+ var links = element.querySelectorAll(".devtools-link");
+ for (var link of links) {
+ var info = Components.Linkifier._linkInfo(link);
+ InspectorTest.addResult("linked url:" + (info && info.url));
+ }
}
InspectorTest.completeTest();

Powered by Google App Engine
This is Rietveld 408576698