From 2f9ea4b994769416882c5904c4b23083cbeccf05 Mon Sep 17 00:00:00 2001 From: Chris Dumez Date: Thu, 5 Dec 2024 12:50:52 -0800 Subject: [PATCH] navigation-api/navigation-history-entry/entries-after-blob-navigation.html doesn't run in WebKit Pass the content type when constructing the Blob so that it is guaranteed to be rendered inside the iframe. Without specifying the content type, Gecko was treating treating the blob as HTML, Blink was treating it as text and WebKit was treating it as binary and downloading it instead of rendering it inside the iframe. --- .../navigation-history-entry/entries-after-blob-navigation.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/navigation-api/navigation-history-entry/entries-after-blob-navigation.html b/navigation-api/navigation-history-entry/entries-after-blob-navigation.html index 67611f4d446cc2..0ad2b059697f9a 100644 --- a/navigation-api/navigation-history-entry/entries-after-blob-navigation.html +++ b/navigation-api/navigation-history-entry/entries-after-blob-navigation.html @@ -19,7 +19,7 @@ assert_true(isUUID(entries[1].key)); assert_true(isUUID(entries[1].id)); }); - i.src = URL.createObjectURL(new Blob([""])); + i.src = URL.createObjectURL(new Blob([""], { type: "text/html" })); }); }, "entries() after navigation to a blob: URL");