Skip to content

Commit

Permalink
Minimize what a page can make translation-server throw up
Browse files Browse the repository at this point in the history
  • Loading branch information
simonster committed Feb 29, 2012
1 parent f6a221c commit 6716ec3
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion config.js
Expand Up @@ -2,4 +2,32 @@ pref("translation-server.translatorsDirectory", "/Users/simon/Desktop/Developmen
pref("translation-server.httpServer.port", "1969");
pref("translation-server.debug.log", true);
pref("translation-server.debug.time", true);
pref("translation-server.debug.level", 5);
pref("translation-server.debug.level", 5);

// Don't retrieve unrequested links when performing standalone translation
pref("network.prefetch-next", false);

// Let operations run as long as necessary
pref("dom.max_chrome_script_run_time", 0);

// Use basicViewer for opening new DOM windows from content (for TinyMCE)
pref("browser.chromeURL", "chrome://zotero/content/standalone/basicViewer.xul");

pref("network.protocol-handler.expose-all", false);
pref("network.protocol-handler.expose.zotero", true);
pref("network.protocol-handler.expose.http", true);
pref("network.protocol-handler.expose.https", true);

// Never go offline
pref("offline.autoDetect", false);
pref("network.manage-offline-status", false);

// Without this, we will throw up dialogs if asked to translate strange pages
pref("browser.xul.error_pages.enabled", true);

// Without this, scripts may decide to open popups
pref("dom.disable_open_during_load", true);
pref("dom.popup_allowed_events", "");

// Disable places
pref("places.history.enabled", false);

0 comments on commit 6716ec3

Please sign in to comment.