From b73f80719d704d46c3f906d6482adb4b4b9075cf Mon Sep 17 00:00:00 2001 From: Nikhil Marathe Date: Wed, 9 Oct 2013 18:23:47 -0400 Subject: [PATCH] Bug 484305 - Worker scripts should always be decoded as UTF-8. r=bent --- dom/workers/ScriptLoader.cpp | 4 +- dom/workers/test/loadEncoding_worker.js | 7 ++++ dom/workers/test/mochitest.ini | 2 + dom/workers/test/test_loadEncoding.html | 50 +++++++++++++++++++++++++ 4 files changed, 62 insertions(+), 1 deletion(-) create mode 100644 dom/workers/test/loadEncoding_worker.js create mode 100644 dom/workers/test/test_loadEncoding.html diff --git a/dom/workers/ScriptLoader.cpp b/dom/workers/ScriptLoader.cpp index 4b799d8c149..23a150419c7 100644 --- a/dom/workers/ScriptLoader.cpp +++ b/dom/workers/ScriptLoader.cpp @@ -440,8 +440,10 @@ public: // Use the regular nsScriptLoader for this grunt work! Should be just fine // because we're running on the main thread. + // Unlike + + + +Bug 484305 - Load workers as UTF-8 +

+ +
+
+
+
+ +