зеркало из https://github.com/mozilla/gecko-dev.git
[not part of build] Don't crash when codeBase/archive attributes of applet tag are NULL.
This commit is contained in:
Родитель
94722a4de0
Коммит
dc48873609
|
@ -484,8 +484,8 @@ void MRJContext::processAppletTag()
|
|||
const char* archive;
|
||||
PRBool mayScript;
|
||||
if (tagInfo2->GetUniqueID(&documentID) != NS_OK) documentID = 0;
|
||||
if (jvmTagInfo->GetCodeBase(&codeBase) != NS_OK) codeBase = NULL;
|
||||
if (jvmTagInfo->GetArchive(&archive) != NS_OK) archive = NULL;
|
||||
if (jvmTagInfo->GetCodeBase(&codeBase) != NS_OK || codeBase == NULL) codeBase = "";
|
||||
if (jvmTagInfo->GetArchive(&archive) != NS_OK || archive == NULL) archive = "";
|
||||
if (jvmTagInfo->GetMayScript(&mayScript) != NS_OK) mayScript = PR_FALSE;
|
||||
MRJPageAttributes pageAttributes = { documentID, codeBase, archive, mayScript };
|
||||
mPage = findPage(pageAttributes);
|
||||
|
|
Загрузка…
Ссылка в новой задаче