зеркало из https://github.com/mozilla/pjs.git
Bug 343604 make <applet> and <embed> handling consistent when there is no
src/code attribute, aka instantiate java even for <applet/> r+sr=bz
This commit is contained in:
Родитель
8027b6ce97
Коммит
323dbdcaf4
|
@ -394,17 +394,10 @@ nsHTMLSharedObjectElement::StartObjectLoad(PRBool aNotify)
|
|||
|
||||
nsAutoString uri;
|
||||
if (!GetAttr(kNameSpaceID_None, URIAttrName(), uri)) {
|
||||
if (mNodeInfo->Equals(nsGkAtoms::applet)) {
|
||||
// The constructor set the type to eType_Loading; but if we have no code
|
||||
// attribute, then we aren't really a plugin
|
||||
Fallback(aNotify);
|
||||
}
|
||||
else {
|
||||
// Be sure to call the nsIURI version if we have no attribute
|
||||
// That handles the case where no URI is specified. An empty string would
|
||||
// get interpreted as the page itself, instead of absence of URI.
|
||||
LoadObject(nsnull, aNotify, type);
|
||||
}
|
||||
// Be sure to call the nsIURI version if we have no attribute
|
||||
// That handles the case where no URI is specified. An empty string would
|
||||
// get interpreted as the page itself, instead of absence of URI.
|
||||
LoadObject(nsnull, aNotify, type);
|
||||
}
|
||||
else {
|
||||
LoadObject(uri, aNotify, type);
|
||||
|
|
Загрузка…
Ссылка в новой задаче