From e36aaa25584aaa7e15ed4229c17196ae910be7fd Mon Sep 17 00:00:00 2001 From: "Michael[tm] Smith" Date: Thu, 24 Apr 2014 17:17:08 +0900 Subject: [PATCH 1/2] Unbork IE support (JSON srlize/parse passed props) --- testharnessreport.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testharnessreport.js b/testharnessreport.js index a57b427..8ac4818 100644 --- a/testharnessreport.js +++ b/testharnessreport.js @@ -386,7 +386,7 @@ metadata_generator.setup(); */ try { if (window.opener && "testharness_properties" in window.opener) { - setup(window.opener.testharness_properties); + setup(JSON.parse(JSON.stringify(window.opener.testharness_properties))); } } catch (e) { } From 5f213c917f9276a5679203cd4fce04c98b185833 Mon Sep 17 00:00:00 2001 From: "Michael[tm] Smith" Date: Thu, 24 Apr 2014 17:50:01 +0900 Subject: [PATCH 2/2] Added comment for IE workaround. --- testharnessreport.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/testharnessreport.js b/testharnessreport.js index 8ac4818..d7df7e2 100644 --- a/testharnessreport.js +++ b/testharnessreport.js @@ -386,6 +386,10 @@ metadata_generator.setup(); */ try { if (window.opener && "testharness_properties" in window.opener) { + /* If we pass the testharness_properties object as-is here without + * JSON stringifying and reparsing it, IE fails & emits the message + * "Could not complete the operation due to error 80700019". + */ setup(JSON.parse(JSON.stringify(window.opener.testharness_properties))); } } catch (e) {