blob: 2027d18c1672c5a55f7aca82ee79c9a8d3ce2d55 [file] [log] [blame]
Tests that fetch logging works when XMLHttpRequest Logging is Enabled and doesn't show logs when it is Disabled.
Making requests with monitoring ENABLED
console-fetch-logging.js:13 sending a GET request to resources/xhr-exists.html
console-fetch-logging.js:13 sending a GET request to resources/xhr-does-not-exist.html
VM:58 Fetch finished loading: GET "http://127.0.0.1:8000/devtools/resources/xhr-exists.html".
makeFetch @ VM:58
requestHelper @ console-fetch-logging.js:20
step1 @ console-fetch-logging.js:33
makeRequests @ console-fetch-logging.js:27
(anonymous) @ VM:1
VM:58 GET http://127.0.0.1:8000/devtools/resources/xhr-does-not-exist.html 404 (Not Found)
makeFetch @ VM:58
requestHelper @ console-fetch-logging.js:20
step2 @ console-fetch-logging.js:39
setTimeout (async)
delayCallback @ console-fetch-logging.js:18
Promise.then (async)
requestHelper @ console-fetch-logging.js:20
step1 @ console-fetch-logging.js:33
makeRequests @ console-fetch-logging.js:27
(anonymous) @ VM:1
console-fetch-logging.js:13 sending a POST request to resources/post-target.cgi
VM:58 Fetch failed loading: GET "http://127.0.0.1:8000/devtools/resources/xhr-does-not-exist.html".
makeFetch @ VM:58
requestHelper @ console-fetch-logging.js:20
step2 @ console-fetch-logging.js:39
setTimeout (async)
delayCallback @ console-fetch-logging.js:18
Promise.then (async)
requestHelper @ console-fetch-logging.js:20
step1 @ console-fetch-logging.js:33
makeRequests @ console-fetch-logging.js:27
(anonymous) @ VM:1
VM:58 Fetch finished loading: POST "http://127.0.0.1:8000/devtools/resources/post-target.cgi".
makeFetch @ VM:58
requestHelper @ console-fetch-logging.js:20
step3 @ console-fetch-logging.js:45
setTimeout (async)
delayCallback @ console-fetch-logging.js:18
Promise.then (async)
requestHelper @ console-fetch-logging.js:20
step2 @ console-fetch-logging.js:39
setTimeout (async)
delayCallback @ console-fetch-logging.js:18
Promise.then (async)
requestHelper @ console-fetch-logging.js:20
step1 @ console-fetch-logging.js:33
makeRequests @ console-fetch-logging.js:27
(anonymous) @ VM:1
console-fetch-logging.js:13 sending a GET request to http://localhost:8000/devtools/resources/xhr-exists.html
inspected-page.html:1 Failed to load http://localhost:8000/devtools/resources/xhr-exists.html: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://127.0.0.1:8000' is therefore not allowed access. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
VM:58 Fetch finished loading: GET "http://localhost:8000/devtools/resources/xhr-exists.html".
makeFetch @ VM:58
requestHelper @ console-fetch-logging.js:20
step4 @ console-fetch-logging.js:51
setTimeout (async)
delayCallback @ console-fetch-logging.js:18
Promise.then (async)
requestHelper @ console-fetch-logging.js:20
step3 @ console-fetch-logging.js:45
setTimeout (async)
delayCallback @ console-fetch-logging.js:18
Promise.then (async)
requestHelper @ console-fetch-logging.js:20
step2 @ console-fetch-logging.js:39
setTimeout (async)
delayCallback @ console-fetch-logging.js:18
Promise.then (async)
requestHelper @ console-fetch-logging.js:20
step1 @ console-fetch-logging.js:33
makeRequests @ console-fetch-logging.js:27
(anonymous) @ VM:1
Making requests with monitoring DISABLED
console-fetch-logging.js:13 sending a GET request to resources/xhr-exists.html
console-fetch-logging.js:13 sending a GET request to resources/xhr-does-not-exist.html
VM:58 GET http://127.0.0.1:8000/devtools/resources/xhr-does-not-exist.html 404 (Not Found)
makeFetch @ VM:58
requestHelper @ console-fetch-logging.js:20
step2 @ console-fetch-logging.js:39
setTimeout (async)
delayCallback @ console-fetch-logging.js:18
Promise.then (async)
requestHelper @ console-fetch-logging.js:20
step1 @ console-fetch-logging.js:33
makeRequests @ console-fetch-logging.js:27
(anonymous) @ VM:1
console-fetch-logging.js:13 sending a POST request to resources/post-target.cgi
console-fetch-logging.js:13 sending a GET request to http://localhost:8000/devtools/resources/xhr-exists.html
inspected-page.html:1 Failed to load http://localhost:8000/devtools/resources/xhr-exists.html: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://127.0.0.1:8000' is therefore not allowed access. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.