From 1840c0b90721bbfcd73c6363f82273ca1d56947c Mon Sep 17 00:00:00 2001 From: Anny Gakhokidze Date: Thu, 15 Oct 2020 15:53:40 +0000 Subject: [PATCH] Bug 1671179 - Make test_bug132255.html xorigin compatible, r=kmag Differential Revision: https://phabricator.services.mozilla.com/D93605 --- dom/tests/mochitest/bugs/mochitest.ini | 1 - dom/tests/mochitest/bugs/test_bug132255.html | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dom/tests/mochitest/bugs/mochitest.ini b/dom/tests/mochitest/bugs/mochitest.ini index 36984a5122b5..666d1518bb16 100644 --- a/dom/tests/mochitest/bugs/mochitest.ini +++ b/dom/tests/mochitest/bugs/mochitest.ini @@ -43,7 +43,6 @@ prefs = [test_DOMWindowCreated_chromeonly.html] [test_bug132255.html] -fail-if = xorigin [test_bug1551425_reference_to_childnodes_nodelist_keeps_childnodes_alive.html] [test_bug159849.html] [test_bug289714.html] diff --git a/dom/tests/mochitest/bugs/test_bug132255.html b/dom/tests/mochitest/bugs/test_bug132255.html index d69fd727ec1e..31a4016285b9 100644 --- a/dom/tests/mochitest/bugs/test_bug132255.html +++ b/dom/tests/mochitest/bugs/test_bug132255.html @@ -25,7 +25,8 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=132255 SimpleTest.waitForExplicitFinish(); addLoadEvent(function() { is(window.frames[0].document.links[0].href, - window.location.href.replace(/bugs\/test_bug132255\.html/, "foo.html"), + window.location.href.replace(/\?.*/, "") + .replace(/bugs\/test_bug132255\.html/, "foo.html"), "Unexpected anchor href"); is(window.frames[1].document.links[0].href, "http://example.com/foo.html",