Open Bug 1933614 Opened 11 months ago Updated 11 months ago

[wpt-sync] Sync PR 49386 - Make script tags with relative paths work in ShadowRealm scopes

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(Not tracked)

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Philip Chimento <pchimento@igalia.com> wrote:

Make script tags with relative paths work in ShadowRealm scopes

This is necessary so that imports inside a ShadowRealm will work regardless of the outer realm's base URL. Pass the document path into all of the virtual methods that result in generating dynamic imports in the served script.

As requested in https://github.com/web-platform-tests/wpt/pull/49286#issuecomment-2499230773 and https://github.com/web-platform-tests/wpt/pull/49325#discussion_r1858119060.

PR 49386 applied with additional changes from upstream: 9c8db8af89efbe0f67b215af2a6b49e9564e2971, 65a205aea5d02ff5bea7b1a0579287035d02d6c4, eb9c8e7259ef8bd5cca5019c1ca15ccd430e81dc, 3a20c56893472783b5e20c0d61cbb7b7b278cc6d, 7d8458ed291b139307430a102180c9a617d7876e, 42160ae827c863ac6787c8451fe377901c8f0652, 59367bb21d053abb9ed6de3cca5409486816acc9, 60d6c48e5fa76876bc3924b9d6185dfb56c9ab1c
You need to log in before you can comment on or make changes to this bug.