More per-window private browsing fixes.

This commit is contained in:
Kris Maglione committed 2013-04-26 19:14:36 -07:00
1 parent da332e7c2c
commit f166f50780
5 files changed
+26 -7

No files matched your search

+1 -1
View File
@@ -1420,7 +1420,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
document.title = document.title.replace(RegExp("(.*)" + util.regexp.escape(old)), "$1" + current);
}
if (services.has("privateBrowsing")) {
if (win.hasAttribute("titlemodifier_privatebrowsing")) {
let oldValue = win.getAttribute("titlemodifier_normal");
let suffix = win.getAttribute("titlemodifier_privatebrowsing").substr(oldValue.length);