mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-27 15:55:16 +00:00
Fixing regression: Default plugin shows for ActiveX controls and hides Netscape plugin (users sent to PFS to fetch plugin for application/x-oleobject), bug 151074 r=bryner sr=jst
This commit is contained in:
parent
141a7cd3e1
commit
64fd02fac7
@ -986,7 +986,6 @@ nsObjectFrame::Reflow(nsIPresContext* aPresContext,
|
||||
nsCOMPtr<nsIURI> fullURL;
|
||||
|
||||
nsAutoString classid;
|
||||
PRInt32 nameSpaceID;
|
||||
|
||||
if (NS_SUCCEEDED(rv = GetBaseURL(*getter_AddRefs(baseURL)))) {
|
||||
nsAutoString codeBase;
|
||||
@ -1002,8 +1001,7 @@ nsObjectFrame::Reflow(nsIPresContext* aPresContext,
|
||||
}
|
||||
|
||||
// if we have a clsid, we're either an internal widget, an ActiveX control, or an applet
|
||||
mContent->GetNameSpaceID(nameSpaceID);
|
||||
if (NS_CONTENT_ATTR_HAS_VALUE == mContent->GetAttr(nameSpaceID, nsHTMLAtoms::classid, classid)) {
|
||||
if (NS_CONTENT_ATTR_HAS_VALUE == mContent->GetAttr(kNameSpaceID_None, nsHTMLAtoms::classid, classid)) {
|
||||
PRBool bJavaObject;
|
||||
|
||||
bJavaObject = !nsCRT::strncmp(classid.get(), NS_LITERAL_STRING("java:").get(), 5);
|
||||
|
@ -986,7 +986,6 @@ nsObjectFrame::Reflow(nsIPresContext* aPresContext,
|
||||
nsCOMPtr<nsIURI> fullURL;
|
||||
|
||||
nsAutoString classid;
|
||||
PRInt32 nameSpaceID;
|
||||
|
||||
if (NS_SUCCEEDED(rv = GetBaseURL(*getter_AddRefs(baseURL)))) {
|
||||
nsAutoString codeBase;
|
||||
@ -1002,8 +1001,7 @@ nsObjectFrame::Reflow(nsIPresContext* aPresContext,
|
||||
}
|
||||
|
||||
// if we have a clsid, we're either an internal widget, an ActiveX control, or an applet
|
||||
mContent->GetNameSpaceID(nameSpaceID);
|
||||
if (NS_CONTENT_ATTR_HAS_VALUE == mContent->GetAttr(nameSpaceID, nsHTMLAtoms::classid, classid)) {
|
||||
if (NS_CONTENT_ATTR_HAS_VALUE == mContent->GetAttr(kNameSpaceID_None, nsHTMLAtoms::classid, classid)) {
|
||||
PRBool bJavaObject;
|
||||
|
||||
bJavaObject = !nsCRT::strncmp(classid.get(), NS_LITERAL_STRING("java:").get(), 5);
|
||||
|
Loading…
x
Reference in New Issue
Block a user