Closed Bug 2094726 Opened 11 days ago Closed 6 days ago

test_warning_for_blocked_cross_site_request.html times out when run twice in a row

Categories

(Core :: DOM: Core & HTML, task)

task

Tracking

()

RESOLVED FIXED
163 Branch
Tracking Status
firefox163 --- fixed

People

(Reporter: florian, Assigned: florian)

References

Details

Attachments

(1 external file)

When dom/base/test/test_warning_for_blocked_cross_site_request.html runs a second time in the same browser (the upcoming mochitest-plain-repeat jobs), it times out. It waits for the CORS warnings for its shape-outside and mask-image images, and they never come.

On the second load, those two images are not requested again, so nothing is blocked or reported.

The fix sets these two properties from script, with URLs unique to each load, so every run makes its own requests.

Blocks: 2095794

On a reload of the test, the shape-outside and mask-image images are not
requested again, so their CORS warnings never come.

Pushed by fqueze@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/9e59e826cdfb https://hg.mozilla.org/integration/autoland/rev/d7f9e25e72b2 Use per-load URLs for the CSS images in test_warning_for_blocked_cross_site_request.html, r=dom-core-reviewers,smaug.
Pushed by fqueze@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/e29fe548ee66 https://hg.mozilla.org/integration/autoland/rev/918bd52fc83b Use per-load URLs for the CSS images in test_warning_for_blocked_cross_site_request.html, r=dom-core-reviewers,smaug.
Status: ASSIGNED → RESOLVED
Closed: 6 days ago
Resolution: --- → FIXED
Target Milestone: --- → 163 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: