Bug 16884

Summary: Circular Dependency between PluginPackageWin and PluginDatabaseWin
Product: WebKit Reporter: Rodney Dawes <dobey>
Component: Plug-insAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: jhoneycutt
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Windows XP   
Attachments:
Description Flags
Patch to remove circular dependency
none
Updated patch to clean up as per comments
jhoneycutt: review+
Updated patch to move constants into fuction and add punctuation to ChangeLog jhoneycutt: review+

Description Rodney Dawes 2008-01-15 11:18:26 PST
There is a circular dependency between these too classes. The attached patch removes this dependency by moving the isPluginBlacklisted class method to a static internal method in PluginPackageWin.cpp, as the method does not appear to require any other parts of the PluginDatabaseWin code.
Comment 1 Rodney Dawes 2008-01-15 11:19:11 PST
Created attachment 18460 [details]
Patch to remove circular dependency
Comment 2 Jon Honeycutt 2008-01-15 12:21:58 PST
(In reply to comment #1)
> Created an attachment (id=18460) [edit]
> Patch to remove circular dependency
> 
Looks good, but I think you could make isPluginBlacklisted a private member method of PluginPackageWin. Then you could remove the getFileVersion method, as this is its only caller.
Comment 3 Rodney Dawes 2008-01-15 15:11:50 PST
Created attachment 18462 [details]
Updated patch to clean up as per comments
Comment 4 Jon Honeycutt 2008-01-15 17:51:23 PST
Comment on attachment 18462 [details]
Updated patch to clean up as per comments

I think your ChangeLog entry could use some punctuation. I think you could also put the Silverlight version constants inside the function body. Otherwise looks great. Thanks for working on this!

r=me
Comment 5 Rodney Dawes 2008-01-16 07:37:12 PST
Created attachment 18472 [details]
Updated patch to move constants into fuction and add punctuation to ChangeLog
Comment 6 Jon Honeycutt 2008-01-16 13:15:45 PST
Comment on attachment 18472 [details]
Updated patch to move constants into fuction and add punctuation to ChangeLog

Submitted in r29532. Thanks!