+
Skip to content

Conversation

samuelmaddock
Copy link
Member

@samuelmaddock samuelmaddock commented Mar 2, 2025

Description of Change

Adds scriptURL property to ServiceWorkerMain. This is equivalent to the scriptURL property available in renderers.

This was omitted initially as it wasn't available on a public interface. I've since landed a CL to move it to the public ServiceWorkerVersionBaseInfo struct.
https://chromium-review.googlesource.com/c/chromium/src/+/6243058

Checklist

Release Notes

Notes: Added scriptURL property to ServiceWorkerMain.

@electron-cation electron-cation bot added the new-pr 🌱 PR opened recently label Mar 2, 2025
@samuelmaddock samuelmaddock added semver/minor backwards-compatible functionality no-backport labels Mar 2, 2025
@samuelmaddock samuelmaddock changed the title feat: serviceWorker.scriptURL feat: ServiceWorkerMain.scriptURL Mar 2, 2025
@samuelmaddock samuelmaddock marked this pull request as ready for review March 3, 2025 14:31
@samuelmaddock
Copy link
Member Author

The behavior of these APIs when accessing them after the ServiceWorkerVersion has been destroyed is inconsistent with APIs like WebFrameMain. It should likely throw upon access. I can followup with this in a future PR.

Copy link
Member

@codebytere codebytere left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

API LGTM

@electron-cation electron-cation bot removed the new-pr 🌱 PR opened recently label Mar 10, 2025
Copy link
Member

@itsananderson itsananderson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

API LGTM

@ckerr
Copy link
Member

ckerr commented Mar 14, 2025

@samuelmaddock is this still good to merge?

Just doing a courtesy checkin before hitting "Squash and merge" it looks like this was stuck in the review stage for a couple weeks 😅 sorry I missed this one

@samuelmaddock samuelmaddock merged commit afca4e2 into main Mar 15, 2025
68 checks passed
@samuelmaddock samuelmaddock deleted the feat/sw-script-url branch March 15, 2025 01:00
@release-clerk
Copy link

release-clerk bot commented Mar 15, 2025

Release Notes Persisted

Added scriptURL property to ServiceWorkerMain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载