Closed Bug 1811916 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 38113 - Mixed Content behavior related to CORS requests

Categories

(Core :: DOM: Security, task, P4)

task

Tracking

()

RESOLVED FIXED
111 Branch
Tracking Status
firefox111 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 38113 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/38113
Details from upstream follow.

moztomer <105853975+moztomer@users.noreply.github.com> wrote:

Mixed Content behavior related to CORS requests

Intro

This patch is about testing mixed content behavior regarding CORS requests. It should run successfully for all chromium based browsers that enabled mixed content upgrading and Firefox nightly.

Some background:

Since the implementation of Mixed content seems to differ from the spec according to its behavior with CORS requests. In the spec it says mixed content should NOT upgrade any CORS requests.
But the yet-implemented versions of mixed content auto upgrading do so. This patch is ensuring that mixed content auto upgrading is upgrading CORS requests, that is towards the spec is likely to be adjusted to.

Test

  1. Creates a type an element (img, audio or video) with HTTP URL.
  2. Sets a crossOrigin attribute and a CORS header.
  3. Adds element from step 1 to document.
    Expected result: URL of element gets successfully upgraded to HTTPS.
Component: web-platform-tests → DOM: Security
Product: Testing → Core

CI Results

Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 1 tests and 3 subtests

Status Summary

Firefox

OK : 1
PASS: 3

Chrome

OK : 1
PASS: 3

Safari

OK : 1
FAIL: 3

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/46ee328443e4 [wpt PR 38113] - Mixed Content behavior related to CORS requests, a=testonly
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 111 Branch
Regressions: 1814728
You need to log in before you can comment on or make changes to this bug.