summaryrefslogtreecommitdiff
path: root/common/content
diff options
context:
space:
mode:
authorKris Maglione <maglione.k@gmail.com>2011-02-19 00:24:07 -0500
committerKris Maglione <maglione.k@gmail.com>2011-02-19 00:24:07 -0500
commit34c0c5a10e40eb0e4e337216be77c7d60d1ebbad (patch)
tree248ee7288d813e771b8ffe966d0fc24189d0957b /common/content
parentcb0a07ddd18f1f0f2a807736d4809b301f10edf8 (diff)
downloadpentadactyl-34c0c5a10e40eb0e4e337216be77c7d60d1ebbad.tar.gz
Small fix for Minefield.
Diffstat (limited to 'common/content')
-rw-r--r--common/content/bookmarks.js2
-rw-r--r--common/content/marks.js5
2 files changed, 3 insertions, 4 deletions
diff --git a/common/content/bookmarks.js b/common/content/bookmarks.js
index b0443396..cb411ba9 100644
--- a/common/content/bookmarks.js
+++ b/common/content/bookmarks.js
@@ -661,7 +661,7 @@ var Bookmarks = Module("bookmarks", {
ctxt.compare = CompletionContext.Sort.unsorted;
ctxt.filterFunc = null;
- let words = ctxt.filter.split(/\s+/g);
+ let words = ctxt.filter.toLowerCase().split(/\s+/g);
ctxt.completions = ctxt.completions.filter(function (i) words.every(function (w) i.toLowerCase().indexOf(w) >= 0));
ctxt.hasItems = ctxt.completions.length;
diff --git a/common/content/marks.js b/common/content/marks.js
index 73a9805d..c6c88179 100644
--- a/common/content/marks.js
+++ b/common/content/marks.js
@@ -12,9 +12,8 @@
*/
var Marks = Module("marks", {
init: function init() {
- function replacer(key, val) val instanceof Ci.nsISupports ? null : val;
- this._localMarks = storage.newMap("local-marks", { privateData: true, replacer: replacer, store: true });
- this._urlMarks = storage.newMap("url-marks", { privateData: true, replacer: replacer, store: true });
+ this._localMarks = storage.newMap("local-marks", { privateData: true, replacer: Storage.Replacer.skipXpcom, store: true });
+ this._urlMarks = storage.newMap("url-marks", { privateData: true, replacer: Storage.Replacer.skipXpcom, store: true });
try {
if (isArray(Iterator(this._localMarks).next()[1]))