summaryrefslogtreecommitdiffstats
path: root/browser
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2017-08-15 16:20:19 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-03-11 16:14:57 +0100
commit1275cfecf8608fd8724ba8ac94349f10e266582e (patch)
tree91f93c55fa546e376d8e1af94017d0691cb9c634 /browser
parent8d709fbc81d3f2cbe285e0bba57b68f5d56732a1 (diff)
downloadUXP-1275cfecf8608fd8724ba8ac94349f10e266582e.tar
UXP-1275cfecf8608fd8724ba8ac94349f10e266582e.tar.gz
UXP-1275cfecf8608fd8724ba8ac94349f10e266582e.tar.lz
UXP-1275cfecf8608fd8724ba8ac94349f10e266582e.tar.xz
UXP-1275cfecf8608fd8724ba8ac94349f10e266582e.zip
[minor fix] Places - bookmarks - treeView.js - 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsINavHistoryContainerResultNode.getChildIndex]
Diffstat (limited to 'browser')
-rw-r--r--browser/components/places/content/treeView.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/browser/components/places/content/treeView.js b/browser/components/places/content/treeView.js
index 5baf3a21f..181bb5404 100644
--- a/browser/components/places/content/treeView.js
+++ b/browser/components/places/content/treeView.js
@@ -170,7 +170,9 @@ PlacesTreeView.prototype = {
let row = -1;
let useNodeIndex = typeof(aNodeIndex) == "number";
if (parent == this._rootNode) {
- row = useNodeIndex ? aNodeIndex : this._rootNode.getChildIndex(aNode);
+ if (aNode instanceof Ci.nsINavHistoryResultNode) {
+ row = useNodeIndex ? aNodeIndex : this._rootNode.getChildIndex(aNode);
+ }
}
else if (useNodeIndex && typeof(aParentRow) == "number") {
// If we have both the row of the parent node, and the node's index, we