[Webkit-unassigned] [Bug 26638] New: WebKitErrors.m: _initWithPluginErrorCode: does not set localizedDescription

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jun 22 20:23:33 PDT 2009


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

           Summary: WebKitErrors.m: _initWithPluginErrorCode: does not set
                    localizedDescription
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh
               URL: http://content.eska.pl/streamplayers/eska_rock/
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: WebKit API
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: opendarwin at lapcatsoftware.com


Overview Description:
Most WebKit errors get a localizedDescription set in the method -[NSError
_webkit_initWithDomain:code:URL]. However, plugin errors created with -[NSError
_initWithPluginErrorCode:contentURL:pluginPageURL:pluginName:MIMEType:] do not
get a localizedDescription set, so they end up having a generic "Operation
could not be completed" localizedDescription, which is not good for the client
app that has to present errors to the user.

Steps to Reproduce:
Load http://content.eska.pl/streamplayers/eska_rock/

Actual Results:
The <WebResourceLoadDelegate> method webView:plugInFailedWithError:dataSource:
is called, but the localizedDescription of the error is the generic "Operation
could not be completed. (WebKitErrorDomain error 200.)"

Expected Results:
The <WebResourceLoadDelegate> method webView:plugInFailedWithError:dataSource:
is called, and the localizedDescription of the error is the string defined by
WebKitErrorDescriptionCannotFindPlugin in WebKitErrors.m

Build Date & Platform:
git commit c12acbedcaab7593e406017bf40680761bef6ba8, corresponding to svn
r44927 Mon Jun 22 01:39:12 2009 +0000


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



More information about the webkit-unassigned mailing list