[Webkit-unassigned] [Bug 86238] New: e.preventDefault on a load error event should silent console spew

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri May 11 11:40:02 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=86238

           Summary: e.preventDefault on a load error event should silent
                    console spew
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML Events
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: aa at chromium.org
                CC: pfeldman at chromium.org, arv at chromium.org


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.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list