Use latin-1 external string for UTF8String with ASCII content
Categories
(Core :: DOM: Bindings (WebIDL), enhancement)
Tracking
()
Tracking | Status | |
---|---|---|
firefox123 | --- | fixed |
People
(Reporter: arai, Assigned: arai)
References
(Blocks 1 open bug)
Details
Attachments
(4 files)
bug 1869688 is going to add external string API for UTF-8, which uses external string if the UTF-8 contains ASCII string.
Assignee | ||
Comment 1•1 year ago
|
||
With prototype patch stack, the following cases are covered in browser startup:
NOTE: External string is used only when the string doesn't fit inline (16 bytes). If it fits inline, the behavior is equivalent to the existing code.
Convert to external string (mostly localization string (see bug 1869688 comment #4)):
"End Private Session"
"Personalize new tab"
"Search with Google or enter address"
"A selection of recent sites and content"
"Change search settings"
"Copy Without Site Tracking"
"End Private Session"
"Exceptional content curated by Pocket, part of the Firefox family"
"Follow the operating system setting for buttons, menus, and windows."
"Import bookmarks from another browser to Nightly."
"Manage extensions"
"Manage more settings"
"Open Developer Tools"
"Open context menu for " + <web page title>
"Open private window"
"Personalize new tab"
"Recommended by Pocket"
"Search in New Tab"
"Search with Google or enter address"
"Set as Default Search Engine"
"Set as Default Search Engine for Private Windows"
"Sites you save or visit"
"Sponsored shortcuts"
"Sync and save data"
"Take a screenshot"
"This plugin enables playback of encrypted media in compliance with the Encrypted Media Extensions specification. Encrypted media is typically used by sites to protect against copying of premium media content. Visit https://www.w3.org/TR/encrypted-media/ for more information on Encrypted Media Extensions."
"This plugin is automatically installed by Mozilla to comply with the WebRTC specification and to enable WebRTC calls with devices that require the H.264 video codec. Visit https://www.openh264.org/ to view the codec source code and learn more about the implementation."
"This time, search with:"
"inspector, devtools"
"logins, passwords"
"settings, preferences, options"
"view source, source"
".ds-layout > .ds-column:nth-child(1) .ds-column-grid > :nth-child(2) .ds-navigation"
CSSStyleRule_Binding::get_selectorText
at activity-stream.bundle.js#8804
"file:///.../mozilla-unified/obj-*/tmp/profile-default/settings/main/ms-language-packs/browser/newtab/asrouter.ftl"
PathUtils_Binding::toFileURI
at at Attachments.sys.mjs#330
Converted to external string, and then assigned back to nsString:
"Change search settings"
"Copy Without Site Tracking"
"End Private Session"
"Import bookmarks from another browser to Nightly."
"Manage extensions"
"Search in New Tab"
"Search with Google or enter address"
"Set as Default Search Engine"
"Set as Default Search Engine for Private Windows"
"This time, search with:"
Assignee | ||
Comment 2•1 year ago
|
||
Depends on D198058
Assignee | ||
Comment 3•1 year ago
|
||
Depends on D198059
Assignee | ||
Comment 4•1 year ago
|
||
Depends on D198060
Assignee | ||
Comment 5•1 year ago
|
||
Depends on D198061
Comment 9•1 year ago
|
||
Is bug 1231541 a duplicate of this? I see these patches added UTF8ToJSVal
.
Assignee | ||
Comment 10•1 year ago
|
||
(In reply to Mathew Hodson from comment #9)
Is bug 1231541 a duplicate of this? I see these patches added
UTF8ToJSVal
.
I don't think so.
Comment 11•1 year ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/f1e6b9b10043
https://hg.mozilla.org/mozilla-central/rev/14280467a98b
https://hg.mozilla.org/mozilla-central/rev/2942452a2bef
https://hg.mozilla.org/mozilla-central/rev/f8ff2e0342cd
Description
•