Bug 1481021: Follow-up: Fix another test that relies on bad COW behavior. r=me,test-only
authorKris Maglione <maglione.k@gmail.com>
Sat, 11 Aug 2018 17:12:34 -0700
changeset 486274 85247ce250af40e6eaf7abbfa2d99cf32a4b4302
parent 486260 385ebda7ee53d91b62dac1ad244ab84551e2b8a2
child 486275 acf69d2b847db39c9c8740606ba8fe8d191b416e
push id9719
push userffxbld-merge
push dateFri, 24 Aug 2018 17:49:46 +0000
treeherdermozilla-beta@719ec98fba77 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme, test-only
bugs1481021
milestone63.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1481021: Follow-up: Fix another test that relies on bad COW behavior. r=me,test-only
browser/modules/test/browser/contentSearch.js
--- a/browser/modules/test/browser/contentSearch.js
+++ b/browser/modules/test/browser/contentSearch.js
@@ -25,17 +25,17 @@ addMessageListener(TEST_MSG, msg => {
     // test that it loaded.
     let loadPromise;
     if (msg.data.type == "Search") {
       loadPromise = waitForLoadAndStopIt(msg.data.expectedURL);
     }
 
     content.dispatchEvent(
       new content.CustomEvent(CLIENT_EVENT_TYPE, {
-        detail: msg.data,
+        detail: Cu.cloneInto(msg.data, content),
       })
     );
 
     if (msg.data.type == "Search") {
       let url = await loadPromise;
 
       sendAsyncMessage(TEST_MSG, {
         type: "loadStopped",