Bug 86238
Summary: | e.preventDefault on a load error event should silent console spew | ||
---|---|---|---|
Product: | WebKit | Reporter: | Aaron Boodman <aa> |
Component: | Web Inspector (Deprecated) | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED WONTFIX | ||
Severity: | Normal | CC: | arv, mihaip, pfeldman |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Bug Depends on: | 86263 | ||
Bug Blocks: |
Aaron Boodman
var img = new Image();
img.onerror = function(e) {
e.preventDefault();
}
img.src = "non-existant-url";
The following code creates a console error message. There are many cases where code like this might be used to integrate components that may or may not be present. In such cases, the load error isn't a true error, and it would be nice to be able to silence it.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Mihai Parparita
I think the console spew might happen via the inspector directly, before the event is dispatched (at least, if I add a logging statement in the error event handler, it gets output after the red 'GET <url>' line).
Aaron Boodman
I'm just closing this in favor of 86263.