From c72df622642468f871f482ac5aceed02f87f9415 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 21 Nov 2006 16:05:41 +0000 Subject: [PATCH] Fix saving of gzipped CSS files via nsIWebBrowserPersist -- this will fix some of the pages for which snapshots were losing the CSS, but it doesn't address the @import issue --- chrome/content/zotero/xpcom/attachments.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/attachments.js b/chrome/content/zotero/xpcom/attachments.js index a1e32e2ac8..acbbfe3bb3 100644 --- a/chrome/content/zotero/xpcom/attachments.js +++ b/chrome/content/zotero/xpcom/attachments.js @@ -191,7 +191,7 @@ Zotero.Attachments = new function(){ var wbp = Components .classes["@mozilla.org/embedding/browser/nsWebBrowserPersist;1"] .createInstance(nsIWBP); - //wbp.persistFlags = nsIWBP.PERSIST_FLAGS...; + wbp.persistFlags = nsIWBP.PERSIST_FLAGS_AUTODETECT_APPLY_CONVERSION; var encodingFlags = false; Zotero.DB.beginTransaction(); @@ -300,7 +300,7 @@ Zotero.Attachments = new function(){ var wbp = Components .classes["@mozilla.org/embedding/browser/nsWebBrowserPersist;1"] .createInstance(nsIWBP); - //wbp.persistFlags = nsIWBP.PERSIST_FLAGS...; + wbp.persistFlags = nsIWBP.PERSIST_FLAGS_AUTODETECT_APPLY_CONVERSION; var encodingFlags = false; Zotero.DB.beginTransaction();