Skip to content

Commit

Permalink
[Blob URL] Add more delay to second iframe in subframe partitioning test
Browse files Browse the repository at this point in the history
Hopefully this will help cut down on the remaining flakiness in the
test.

Bug: 390049422
Change-Id: Ife67023670f110563441ba6bf52b0c7e7e719333
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6293167
Commit-Queue: Andrew Williams <awillia@chromium.org>
Reviewed-by: Janice Liu <janiceliu@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1424053}
  • Loading branch information
recvfrom authored and chromium-wpt-export-bot committed Feb 24, 2025
1 parent 2f96197 commit d6f0f95
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions FileAPI/BlobURL/cross-partition-navigation.https.html
Original file line number Diff line number Diff line change
Expand Up @@ -141,15 +141,16 @@
const create_iframe_with_blob_url = (blob_url, response_queue_uuid) => `
const iframe = document.createElement('iframe');
iframe.src = "${blob_url}";
iframe.onload = () => {
const same_site_message = "same_partition_loaded";
const blob_url_iframe_html = ${blob_url_iframe_html};
const same_top_level_site_blob = new Blob([blob_url_iframe_html("${response_queue_uuid}", same_site_message)], {type : "text/html"});
const same_top_level_site_blob_url = URL.createObjectURL(same_top_level_site_blob);
const iframe2 = document.createElement('iframe');
iframe2.src = same_top_level_site_blob_url;
document.body.appendChild(iframe2);
};
document.body.appendChild(iframe);
const same_site_message = "same_partition_loaded";
const blob_url_iframe_html = ${blob_url_iframe_html};
const same_top_level_site_blob = new Blob([blob_url_iframe_html("${response_queue_uuid}", same_site_message)], {type : "text/html"});
const same_top_level_site_blob_url = URL.createObjectURL(same_top_level_site_blob);
const iframe2 = document.createElement('iframe');
iframe2.src = same_top_level_site_blob_url;
document.body.appendChild(iframe2);
`;

// Tests blob URL subframe navigations for same and cross partition iframes.
Expand Down

0 comments on commit d6f0f95

Please sign in to comment.