mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 378820 Crash in addVisit (r=mano)
This commit is contained in:
parent
193fefa2b3
commit
62feabd61f
@ -772,7 +772,7 @@ nsNavBookmarks::IsBookmarkedInDatabase(PRInt64 aPlaceId,
|
||||
rv = statement->BindInt64Parameter(0, aPlaceId);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
rv = statement->BindInt32Parameter(0, TYPE_BOOKMARK);
|
||||
rv = statement->BindInt32Parameter(1, TYPE_BOOKMARK);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
return statement->ExecuteStep(aIsBookmarked);
|
||||
|
@ -366,7 +366,7 @@ function run_test() {
|
||||
else
|
||||
do_check_true(node.bookmarkId > 0);
|
||||
}
|
||||
testRoot.containerOpen = false;
|
||||
rootNode.containerOpen = false;
|
||||
}
|
||||
catch(ex) {
|
||||
do_throw("bookmarks query: " + ex);
|
||||
@ -397,7 +397,7 @@ function run_test() {
|
||||
do_check_eq(cc, 2);
|
||||
do_check_eq(rootNode.getChild(0).title, "title 1");
|
||||
do_check_eq(rootNode.getChild(1).title, "title 2");
|
||||
testRoot.containerOpen = false;
|
||||
rootNode.containerOpen = false;
|
||||
}
|
||||
catch(ex) {
|
||||
do_throw("bookmarks query: " + ex);
|
||||
@ -464,9 +464,14 @@ function run_test() {
|
||||
var node = rootNode.getChild(0);
|
||||
do_check_eq(node.title, "ZZZXXXYYY");
|
||||
do_check_true(node.bookmarkId > 0);
|
||||
testRoot.containerOpen = false;
|
||||
rootNode.containerOpen = false;
|
||||
}
|
||||
catch(ex) {
|
||||
do_throw("bookmarks query: " + ex);
|
||||
}
|
||||
|
||||
// bug 378820
|
||||
var uri1 = uri("http://foo.tld/a");
|
||||
bmsvc.insertItem(testRoot, uri1, bmsvc.DEFAULT_INDEX);
|
||||
histsvc.addVisit(uri1, Date.now(), 0, histsvc.TRANSITION_TYPED, false, 0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user