зеркало из https://github.com/mozilla/gecko-dev.git
Fix for bug 564114 (Crash [@ nsINode::CompareDocumentPosition] passing null). r=bz.
This commit is contained in:
Родитель
ec5f439556
Коммит
b3668213b6
|
@ -0,0 +1,11 @@
|
|||
<html>
|
||||
<head>
|
||||
<script type="text/javascript">
|
||||
|
||||
document.documentElement.compareDocumentPosition(null);
|
||||
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body></body>
|
||||
</html>
|
|
@ -64,3 +64,4 @@ asserts(1) load 554230-1.xhtml # bug 336104
|
|||
load 552651.html
|
||||
load 558973.html
|
||||
load 564079-1.html
|
||||
load 564114.html
|
||||
|
|
|
@ -999,11 +999,8 @@ nsNode3Tearoff::CompareDocumentPosition(nsIDOMNode* aOther,
|
|||
PRUint16* aReturn)
|
||||
{
|
||||
nsCOMPtr<nsINode> other = do_QueryInterface(aOther);
|
||||
NS_ENSURE_ARG(other);
|
||||
|
||||
*aReturn = mNode->CompareDocumentPosition(other);
|
||||
|
||||
return NS_OK;
|
||||
return mNode->CompareDocumentPosition(other, aReturn);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
|
|
@ -723,9 +723,7 @@ customMethodCalls = {
|
|||
},
|
||||
'nsIDOM3Node_CompareDocumentPosition': {
|
||||
'thisType': 'nsINode',
|
||||
'arg0Type': 'nsINode',
|
||||
'code': ' PRUint16 result = self->CompareDocumentPosition(arg0);',
|
||||
'canFail': False
|
||||
'arg0Type': 'nsINode'
|
||||
},
|
||||
'nsIDOM3Node_GetTextContent': {
|
||||
'thisType': 'nsINode',
|
||||
|
|
Загрузка…
Ссылка в новой задаче