Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2010-04-14 Andrey Kosyakov <caseq@chromium.ru>
Reviewed by Timothy Hatcher. Log error message to inspector console if a resource fails to load. Disable checking of mime-type consistency for failed resources. https://bugs.webkit.org/show_bug.cgi?id=37215 * inspector/console-resource-errors-expected.txt: Added. * inspector/console-resource-errors.html: Added. 2010-04-14 Andrey Kosyakov <caseq@chromium.ru> Reviewed by Timothy Hatcher. Log error message to inspector console if a resource fails to load. Disable checking of mime-type consistency for failed resources. https://bugs.webkit.org/show_bug.cgi?id=37215 Test: inspector/console-resource-errors.html * inspector/InspectorController.cpp: (WebCore::InspectorController::didReceiveResponse): (WebCore::InspectorController::didFailLoading): * inspector/front-end/Resource.js: (WebInspector.Resource.prototype._mimeTypeIsConsistentWithType): * inspector/front-end/ResourcesPanel.js: (WebInspector.ResourcesPanel.prototype.recreateViewForResourceIfNeeded): Canonical link: https://commits.webkit.org/48897@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@57609 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
7 changed files
with
87 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Tests that errors to load a resource cause error messages to be logged to console. | ||
|
||
missing.cssFailed to load resource: file doesn’t exist console-message console-other-source console-error-level | ||
non-existent-script.jsFailed to load resource: file doesn’t exist console-message console-other-source console-error-level | ||
non-esitent-iframe.htmlFailed to load resource: file doesn’t exist console-message console-other-source console-error-level | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<html> | ||
<head> | ||
<script src="../http/tests/inspector/inspector-test.js"></script> | ||
<script src="console-tests.js"></script> | ||
|
||
<link rel="stylesheet" type="text/css" href="missing.css"> | ||
|
||
<script> | ||
function doit() | ||
{ | ||
var xhr = new XMLHttpRequest(); | ||
xhr.open("GET","non-existent-xhr", false); | ||
xhr.send(null); | ||
dumpConsoleMessagesWithClasses(); | ||
} | ||
|
||
</script> | ||
</head> | ||
|
||
<body onload="onload()"> | ||
<p> | ||
<script src="non-existent-script.js"></script> | ||
<iframe src="non-esitent-iframe.html"></iframe> | ||
|
||
Tests that errors to load a resource cause error messages to be logged to console. | ||
</p> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters