Don't save before CSS has been loaded

This commit is contained in:
Simon Kornblith 2011-08-12 15:36:54 +00:00
parent 58c8e7ccfc
commit 18f7bf1112

View file

@ -352,7 +352,7 @@ Zotero.Server.Connector.SaveSnapshot.prototype = {
var pageShowCalled = false;
var cookieSandbox = new Zotero.CookieSandbox(browser, data["url"], data["cookie"]);
browser.addEventListener("DOMContentLoaded", function() {
browser.addEventListener("pageshow", function() {
if(browser.contentDocument.location.href == "about:blank") return;
if(pageShowCalled) return;
pageShowCalled = true;