Closed Bug 1127888 Opened 9 years ago Closed 9 years ago

Wedged content process with async plugin init

Categories

(Core Graveyard :: Plug-ins, defect)

x86_64
Windows 7
defect
Not set
normal

Tracking

(firefox38 fixed)

RESOLVED FIXED
mozilla38
Tracking Status
firefox38 --- fixed

People

(Reporter: jimm, Assigned: bugzilla)

References

Details

Attachments

(2 files, 1 obsolete file)

Attached file stacks.txt
See attached stacks. I had just closed a tab when this showed up.
note, chrome was still responsive (the thread's in sitting in WinUtils::WaitForMessage).
Assignee: nobody → aklotz
Status: NEW → ASSIGNED
Attached patch Patch (r1) (obsolete) — Splinter Review
This patch takes care of a few issues that could cause WaitForInit() to get stuck indefinitely.

SetupBridge could result in a hang if we reused an existing PluginModuleChromeParent, since we would end up waiting for NP_Initialize to happen when it never would (as it is not executed in this case).

WaitForInit was modified to check for conditions that would require us to break out if a failure condition occurred while processing IPC events.

Finally the code for handling errors in streams was cleaned up to ensure that failures are better handled.
Attachment #8566381 - Flags: review?(jmathies)
Comment on attachment 8566381 [details] [diff] [review]
Patch (r1)

Review of attachment 8566381 [details] [diff] [review]:
-----------------------------------------------------------------

::: dom/plugins/ipc/PluginAsyncSurrogate.cpp
@@ +450,5 @@
>      dom::ContentChild* cp = dom::ContentChild::GetSingleton();
>      mozilla::ipc::MessageChannel* contentChannel = cp->GetIPCChannel();
>      MOZ_ASSERT(contentChannel);
>      while (!mParent->mNPInitialized) {
> +      if (mParent->mShutdown) {

nit - add a comment here and below explaining the early return / failure.
Attachment #8566381 - Flags: review?(jmathies) → review+
Attached patch Patch (r2)Splinter Review
Added comments. Carrying forward r+.
Attachment #8566381 - Attachment is obsolete: true
Attachment #8567612 - Flags: review+
https://hg.mozilla.org/mozilla-central/rev/92279670ec95
https://hg.mozilla.org/mozilla-central/rev/c07df64140ae
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla38
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: