зеркало из https://github.com/mozilla/pjs.git
Bug 536931. Check whether we found a content node before trying to get its primary frame. r=dbaron
This commit is contained in:
Родитель
e282ee6a75
Коммит
c4cf269ebe
|
@ -0,0 +1,4 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<listbox id="listbox" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"><tab/></listbox>
|
||||
<script>window.addEventListener("load", function() { document.documentElement.appendChild(document.getElementById("listbox")); }, false);</script>
|
||||
</html>
|
|
@ -67,3 +67,4 @@ load 488210-1.xhtml
|
|||
load 495728-1.xul
|
||||
load 508927-1.xul
|
||||
load 508927-2.xul
|
||||
load 536931-1.xhtml
|
||||
|
|
|
@ -202,6 +202,9 @@ nsListBoxObject::GetListBoxBody(PRBool aFlush)
|
|||
nsCOMPtr<nsIContent> content;
|
||||
FindBodyContent(frame->GetContent(), getter_AddRefs(content));
|
||||
|
||||
if (!content)
|
||||
return nsnull;
|
||||
|
||||
// this frame will be a nsGFXScrollFrame
|
||||
frame = content->GetPrimaryFrame();
|
||||
if (!frame)
|
||||
|
|
Загрузка…
Ссылка в новой задаче