Bug 13601

Summary: plugInViewWithArguments: called with truncated argument dict when baseURL is nil
Product: WebKit Reporter: James G. Speth <speth>
Component: Plug-insAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WONTFIX    
Severity: Normal CC: ahmad.saleem792, ap, rniwa
Priority: P2    
Version: 523.x (Safari 3)   
Hardware: Mac   
OS: OS X 10.4   

James G. Speth
Reported 2007-05-06 07:54:41 PDT
when WebKit plugins are created by WebFrameBridge, if their base URL is nil, the plugInViewWithArguments: method is called with an argument dictionary that is missing some values. most noticeably, WebPlugInContainingElementKey is missing. see the comment at WebFrameBridge.mm:460: // URL might be nil, so add it last however, it's not last anymore, so when it is nil, all the values after it in the call to dictionaryWithObjectsAndKeys: are ignored. so, we need to pay attention to the comment and put WebPlugInBaseURLKey last, or create the dictionary some other way. I'll make a test case and patch for it, unless someone beats me to it, but i wanted get this in bugzilla before I forget again. also, this problem exists both places that dictionary could be created: viewForPluginWithURL:attributeNames:attributeValues:MIMEType:DOMElement:loadManually: pluginViewWithPackage:attributeNames:attributeValues:baseURL:DOMElement:loadManually: so we should fix them both, or have them call a common method to create the dictionary.
Attachments
Ahmad Saleem
Comment 1 2022-06-30 04:07:49 PDT
Webkit plugins support is gone and also "WebFrameBridge.mm" is also removed in bug 17640. Can this be marked as "RESOLVED WONTFIX"? Thanks!
Note You need to log in before you can comment on or make changes to this bug.