Skip to content
This repository has been archived by the owner on Oct 3, 2020. It is now read-only.

Commit

Permalink
Bug 444963: Java hangs browser. Release branch landing. r+sr=peterv
Browse files Browse the repository at this point in the history
  • Loading branch information
Johnny Stenback committed Jul 25, 2008
1 parent 9ab9981 commit 61b8ad1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/plugin/base/src/nsPluginHostImpl.cpp
Expand Up @@ -3979,6 +3979,12 @@ nsPluginHostImpl::TrySetUpPluginInstance(const char *aMimeType,
PRBool isJavaPlugin = pluginTag->mIsJavaPlugin;

if (isJavaPlugin && !pluginTag->mIsNPRuntimeEnabledJavaPlugin) {
#if !defined(OJI) && defined(XP_MACOSX)
// The MRJ plugin hangs if you try to load it with OJI disabled,
// don't even try to go there.
return NS_ERROR_FAILURE;
#endif

// We must make sure LiveConnect is started, if needed.
nsCOMPtr<nsIDocument> document;
aOwner->GetDocument(getter_AddRefs(document));
Expand Down

0 comments on commit 61b8ad1

Please sign in to comment.