Skip to content

[WebExtensions] Chrome 150 plans to limit alarm name lengths#43933

Merged
rebloor merged 1 commit intomdn:mainfrom
bershanskiy:alarms
Apr 27, 2026
Merged

[WebExtensions] Chrome 150 plans to limit alarm name lengths#43933
rebloor merged 1 commit intomdn:mainfrom
bershanskiy:alarms

Conversation

@bershanskiy
Copy link
Copy Markdown
Contributor

Description

Add note stating upcoming limit for extension alarm names in Google Chrome 150.

Motivation

Chrome 148 introduced a console warning for alarm names longer than 1024 bytes.[1] Safari devs believe "1024 is a good limit".[2] Firefox will likely "take a wait and see approach".[3]

Additional details

Sources:
[1] chromium/chromium@432c30e
[2] w3c/webextensions#935 (comment)
[3] https://github.com/w3c/webextensions/blob/main/_minutes/2026-03-12-wecg.md

Related issues and pull requests

w3c/webextensions#422

@bershanskiy bershanskiy requested a review from a team as a code owner April 25, 2026 08:41
@bershanskiy bershanskiy requested review from willdurand and removed request for a team April 25, 2026 08:41
@github-actions github-actions Bot added Content:WebExt WebExtensions docs size/xs [PR only] 0-5 LoC changed labels Apr 25, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 25, 2026

Preview URLs (1 page)

External URLs (1)

URL: /en-US/docs/Mozilla/Add-ons/WebExtensions/API/alarms/create
Title: alarms.create()

(comment last updated: 2026-04-26 19:07:53)

Alarm names are unique within the scope of a single extension. If an alarm with an identical name exists, the existing alarm will be cleared and the alarm being created will replace it.

Browsers may soon limit alarm name lengths. Chrome 150 will reject alarms with names longer than 1024 bytes. Safari expressed support for this limit.

Copy link
Copy Markdown
Contributor

@rebloor rebloor Apr 26, 2026

Choose a reason for hiding this comment

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

@bershanskiy could you also add a note to the BCD?

Suggested change
From Chrome 150, alarms with names longer than 1024 bytes are rejected. This limit may be implemented on other browsers. See [Proposal: Limits on lengths of strings passed to WebExtension APIs](https://github.com/w3c/webextensions/issues/935) for more information.

Chrome 148 introduced a console warning for alarm names longer than
1024 bytes.[1] Safari devs believe "1024 is a good limit".[2]
Firefox will likely "take a wait and see approach".[3]

Sources:
[1] chromium/chromium@432c30e
[2] w3c/webextensions#935 (comment)
[3] https://github.com/w3c/webextensions/blob/main/_minutes/2026-03-12-wecg.md
@bershanskiy
Copy link
Copy Markdown
Contributor Author

@oliverdunk Courtesy ping in case you would like to review this change.

@rebloor
Copy link
Copy Markdown
Contributor

rebloor commented Apr 26, 2026

@bershanskiy Normally, we just add a note under the Chrome entry for alarm.create, along the lines of

…
            "support": {
              "chrome": {
                "version_added": "22",
                "notes": [
                  "From Chrome 117, alarms are limited to 500 per extension.",
                  "From Chrome 150, alarm names are limited to 1024 bytes."
                ]
              },
…

@oliverdunk
Copy link
Copy Markdown
Contributor

@oliverdunk Courtesy ping in case you would like to review this change.

This SGTM. No strong feelings on the wording or where this is noted.

@bershanskiy
Copy link
Copy Markdown
Contributor Author

bershanskiy commented Apr 27, 2026

Normally, we just add a note under the Chrome entry for alarm.create

I updated mdn/browser-compat-data#29521 accordingly (updated commit, commit message, and force-pushed). Please let me know if I need to do anything else.

Copy link
Copy Markdown
Contributor

@rebloor rebloor left a comment

Choose a reason for hiding this comment

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

Thanks @bershanskiy everything looks good.

@rebloor rebloor merged commit b841475 into mdn:main Apr 27, 2026
9 checks passed
@bershanskiy bershanskiy deleted the alarms branch April 27, 2026 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:WebExt WebExtensions docs size/xs [PR only] 0-5 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants