diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs index 77e037406f7..f6bcff56177 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -3128,7 +3128,7 @@ impl ScriptThread { incomplete.pipeline_id, incomplete.parent_info, incomplete.window_size, - origin, + origin.clone(), incomplete.navigation_start, incomplete.navigation_start_precise, self.webgl_chan.as_ref().map(|chan| chan.channel()), @@ -3212,7 +3212,7 @@ impl ScriptThread { &window, HasBrowsingContext::Yes, Some(final_url.clone()), - incomplete.origin, + origin, is_html_document, content_type, last_modified, diff --git a/tests/wpt/mozilla/meta/MANIFEST.json b/tests/wpt/mozilla/meta/MANIFEST.json index 39eaca61b93..1ac3961804f 100644 --- a/tests/wpt/mozilla/meta/MANIFEST.json +++ b/tests/wpt/mozilla/meta/MANIFEST.json @@ -9534,6 +9534,9 @@ "mozilla/details_ui_opened_ref.html": [ [] ], + "mozilla/document_origin_redirect_subpage.html": [ + [] + ], "mozilla/duplicated_scroll_ids_ref.html": [ [] ], @@ -11527,6 +11530,12 @@ {} ] ], + "mozilla/document_origin_redirect.html": [ + [ + "mozilla/document_origin_redirect.html", + {} + ] + ], "mozilla/document_readystate.html": [ [ "mozilla/document_readystate.html", @@ -18601,6 +18610,14 @@ "3a0172826d4ff2d9a754ffb6a437055bb2cf6ec9", "testharness" ], + "mozilla/document_origin_redirect.html": [ + "009c899a45482b835dad186a822859f12e0e53fd", + "testharness" + ], + "mozilla/document_origin_redirect_subpage.html": [ + "3e68ff395f5475e2b618147f270117f576a5b7bd", + "support" + ], "mozilla/document_readystate.html": [ "7ff8f66cdf74430f86ed7028294530229809d8de", "testharness" diff --git a/tests/wpt/mozilla/tests/mozilla/document_origin_redirect.html b/tests/wpt/mozilla/tests/mozilla/document_origin_redirect.html new file mode 100644 index 00000000000..009c899a454 --- /dev/null +++ b/tests/wpt/mozilla/tests/mozilla/document_origin_redirect.html @@ -0,0 +1,22 @@ + +
+