Skip to content

[WebExtensions] Chrome 152 limits extension action badge text length - #45586

Open
bershanskiy wants to merge 1 commit into
mdn:mainfrom
bershanskiy:extension-badge-text
Open

[WebExtensions] Chrome 152 limits extension action badge text length#45586
bershanskiy wants to merge 1 commit into
mdn:mainfrom
bershanskiy:extension-badge-text

Conversation

@bershanskiy

Copy link
Copy Markdown
Contributor

Description

Chrome 152+ throws an error for calls to action.setBadgeText() with text longer than 100 bytes.

Motivation

Inform developers of API limit.

Additional details

Sources:

Related issues and pull requests

MDN BCD PR: mdn/browser-compat-data#30386
WECG Discussion: w3c/webextensions#960
Chrome tracking bug: https://issues.chromium.org/issues/491158086

Chrome 152+ throws an error for calls to `action.setBadgeText()` with `text` longer than 100 bytes.

Sources:
chromium/chromium@8170d1b
w3c/webextensions#960
@bershanskiy
bershanskiy requested a review from a team as a code owner September 9, 2026 07:21
@bershanskiy
bershanskiy requested review from willdurand and removed request for a team September 9, 2026 07:21
@github-actions github-actions Bot added Content:WebExt WebExtensions docs size/xs [PR only] 0-5 LoC changed labels Sep 9, 2026
@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Preview URLs (1 page)

External URLs (1)

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

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.

2 participants