[Webkit-unassigned] [Bug 63150] New: [UNIX] Increment/decrement module load conter in NetscapePluginModule::getPluginInfo()

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jun 22 09:54:29 PDT 2011


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

           Summary: [UNIX] Increment/decrement module load conter in
                    NetscapePluginModule::getPluginInfo()
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Keywords: Gtk, Qt
          Severity: Normal
          Priority: P2
         Component: WebKit2
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: cgarcia at igalia.com
                CC: andersca at apple.com


Since the method is static, we are using NetscapePluginModule::getOrCreate() to get the module. If it's created, the load counter is 0, so that when module is deleted, shutdown() hasn't been called and the destructor crashes in the assert that checks the module has been removed from the initialized module list. We should increment the load counter, and decrement it before getPluginInfo() returns, so that decrementLoadCount() will call shutdown() if counter is 0 and the module will be deleted from the list.

-- 
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