Closed Bug 76384 Opened 23 years ago Closed 23 years ago

Crash in the default plugin

Categories

(Core Graveyard :: Plug-ins, defect, P2)

x86
Windows NT
defect

Tracking

(Not tracked)

VERIFIED FIXED
mozilla0.9

People

(Reporter: serhunt, Assigned: serhunt)

Details

1. Go to a page with unknown plugin
2. Have Get Plugin dialog poped up
3. Click on the puzzle peace again, you will another Get Plugin
4. Leave the page and  observe the crash
Patch is coming...
Priority: -- → P2
Target Milestone: --- → mozilla0.9
The following patch in CPlugin::showGetPluginDialog will prevent duplicate 
copies of the dialog:

  if((m_szPageURL != NULL) || (m_szFileURL != NULL) || !m_bJavaScript)
  {
+    // we don't want it more than once
+    if(m_hWndDialog == NULL)
      CreateDialogParam(m_hInst, MAKEINTRESOURCE(IDD_PLUGIN_DOWNLOAD), m_hWnd,
                        (DLGPROC)GetPluginDialogProc, (LPARAM)this);
  }
+  else
+    getPlugin();

Also note the ``else'' statement addition which should also be here or 
JavaScript window will not pop up instead of the native dialog when needed. This 
was a regression when we changed the dialog from modal to modeless.
OK - sr=attinasi
Checked in. Marking fixed.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
verifd in 0419 build.
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.