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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector-protocol/network/resources/xhr-iframe.html

Issue 2739323003: DevTools protocol interception, blocking & modification of requests (Closed)
Patch Set: Add a comment Created 3 years, 7 months 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/http/tests/inspector-protocol/network/resources/xhr-iframe.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector-protocol/network/resources/xhr-iframe.html b/third_party/WebKit/LayoutTests/http/tests/inspector-protocol/network/resources/xhr-iframe.html
new file mode 100644
index 0000000000000000000000000000000000000000..4dbe0001acfabe3773860f8090c904e3d7f9356e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector-protocol/network/resources/xhr-iframe.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+var xhr = new XMLHttpRequest();
+xhr.onload = function() {
+ if (xhr.status == 200) {
+ console.log('xhr.responseText = ' + xhr.responseText);
+ }
+};
+xhr.open("GET", "example.txt");
+xhr.send();
+</script>
+</head>
+</html>

Powered by Google App Engine
This is Rietveld 408576698