From 606ea93d46acf7187a9d983acbd6069405169a08 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Fri, 21 Feb 2014 00:23:34 -0800 Subject: [PATCH] Flush literal cache when loading plugins and such. --- common/content/dactyl.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/content/dactyl.js b/common/content/dactyl.js index b30e766e..080d9495 100644 --- a/common/content/dactyl.js +++ b/common/content/dactyl.js @@ -458,6 +458,9 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), { * should be loaded. */ loadScript: function loadScript(uri, context) { + let prefix = "literal:" + uri + ":"; + cache.flush(s => s.indexOf(prefix) == 0); + delete literal.files[uri]; JSMLoader.loadSubScript(uri, context, File.defaultEncoding); },