Skip to content

fix: include permission element string resources in locale paks#51374

Merged
ckerr merged 1 commit into
42-x-yfrom
trop/42-x-y-bp-fix-include-permission-element-string-resources-in-locale-paks-1777400739259
Apr 29, 2026
Merged

fix: include permission element string resources in locale paks#51374
ckerr merged 1 commit into
42-x-yfrom
trop/42-x-y-bp-fix-include-permission-element-string-resources-in-locale-paks-1777400739259

Conversation

@trop
Copy link
Copy Markdown
Contributor

@trop trop Bot commented Apr 28, 2026

Backport of #51346

See that PR for details.

Notes: Fixed a renderer crash when a page uses the <geolocation> HTML element.

The `<geolocation>` HTML element looks up IDS_PERMISSION_REQUEST_GEOLOCATION
via ResourceBundle::GetLocalizedString(). These string IDs are defined in
third_party/blink/public/strings/permission_element_strings.grd.
Electron didn't include that in its pak file, causing CHECK(!data->empty()).

Ths PR adds the per-locale permission_element_strings paks and the
aggregated permission_element_generated_strings pak to electron_paks.gni.
This matches how it's done in `chrome/chrome_repack_locales.gni` and
in `chrome/chrome_paks.gni`.

Xref: https://chromium-review.googlesource.com/c/chromium/src/+/5907626

Co-authored-by: Charles Kerr <charles@charleskerr.com>
@trop trop Bot requested a review from ckerr April 28, 2026 18:25
@trop trop Bot added 42-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes labels Apr 28, 2026
@ckerr ckerr merged commit 8f58d58 into 42-x-y Apr 29, 2026
263 of 278 checks passed
@release-clerk
Copy link
Copy Markdown

release-clerk Bot commented Apr 29, 2026

Release Notes Persisted

Fixed a renderer crash when a page uses the &lt;geolocation&gt; HTML element.

@ckerr ckerr deleted the trop/42-x-y-bp-fix-include-permission-element-string-resources-in-locale-paks-1777400739259 branch April 29, 2026 23:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

42-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant