From c8da25aa8bad127ca8437d3d0b4d68746884db52 Mon Sep 17 00:00:00 2001 From: "av%netscape.com" Date: Tue, 25 Sep 2001 22:04:24 +0000 Subject: [PATCH] Fix for bug 91095 -- Default Plugin bypassed if 'code' attribute is missing in 'applet' tag, r=peterl, sr=attinasi --- layout/generic/nsObjectFrame.cpp | 3 +++ layout/html/base/src/nsObjectFrame.cpp | 3 +++ 2 files changed, 6 insertions(+) diff --git a/layout/generic/nsObjectFrame.cpp b/layout/generic/nsObjectFrame.cpp index 7edc4f2e715..945aae24a80 100644 --- a/layout/generic/nsObjectFrame.cpp +++ b/layout/generic/nsObjectFrame.cpp @@ -998,6 +998,9 @@ nsObjectFrame::Reflow(nsIPresContext* aPresContext, // Create an absolute URL rv = NS_NewURI(getter_AddRefs(fullURL), src, baseURL); } + else + fullURL = baseURL; + rv = InstantiatePlugin(aPresContext, aMetrics, aReflowState, pluginHost, "application/x-java-vm", fullURL); } else { // traditional plugin diff --git a/layout/html/base/src/nsObjectFrame.cpp b/layout/html/base/src/nsObjectFrame.cpp index 7edc4f2e715..945aae24a80 100644 --- a/layout/html/base/src/nsObjectFrame.cpp +++ b/layout/html/base/src/nsObjectFrame.cpp @@ -998,6 +998,9 @@ nsObjectFrame::Reflow(nsIPresContext* aPresContext, // Create an absolute URL rv = NS_NewURI(getter_AddRefs(fullURL), src, baseURL); } + else + fullURL = baseURL; + rv = InstantiatePlugin(aPresContext, aMetrics, aReflowState, pluginHost, "application/x-java-vm", fullURL); } else { // traditional plugin