On behalf of zack-weg@gmx.de. Add pointer check to prevent crash on js links. b=173308 r=adamlock@netscape.com sr=alecf@netscape.com

This commit is contained in:
locka%iol.ie 2003-06-20 18:12:02 +00:00
Родитель 711bca1ff8
Коммит b4bdc20238
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -5004,7 +5004,8 @@ nsDocShell::InternalLoad(nsIURI * aURI,
//
if (mDisallowPopupWindows) {
PRBool bIsChromeOrResource = PR_FALSE;
mCurrentURI->SchemeIs("chrome", &bIsChromeOrResource);
if (mCurrentURI)
mCurrentURI->SchemeIs("chrome", &bIsChromeOrResource);
if (!bIsChromeOrResource) {
aURI->SchemeIs("chrome", &bIsChromeOrResource);
if (!bIsChromeOrResource) {