Closed Bug 1861645 Opened 2 years ago Closed 27 days ago

Replace KeywordUtils use of nsIScriptableUnicodeConverter with Services.textToSubURI.ConvertAndEscape

Categories

(Firefox :: Address Bar, task, P3)

task

Tracking

()

RESOLVED FIXED
150 Branch
Tracking Status
firefox150 --- fixed

People

(Reporter: standard8, Assigned: oss)

References

(Blocks 1 open bug)

Details

(Whiteboard: [sng][search-tech-debt])

Attachments

(1 file)

KeywordUtils is currently using nsIScriptableUnicodeConverter in a convert and escape style routine:

https://searchfox.org/mozilla-central/rev/c51359e1e6beeb6cee5eafe67272c9be16fcf5c1/toolkit/modules/KeywordUtils.sys.mjs#66-79

We should be able to replace that section with Services.textToSubURI.ConvertAndEscape.

We may need to be careful to ensure the regexp replacement (/[+@\/]+/g) still works correctly as well.

It is possible we'll need to create some tests for this - or at least find if they exist in the urlbar tests (which is the only place that currently uses it).

Assignee: nobody → oss
Status: NEW → ASSIGNED

Would you be able to update the patch to rebase it, and remove the comment I left mention about in the review?

Flags: needinfo?(oss)
Attachment #9531305 - Attachment description: Bug 1861645 - Replace KeywordUtils use of nsIScriptableUnicodeConverter. r=standard8 → Bug 1861645 - Replace KeywordUtils use of nsIScriptableUnicodeConverter. r=standard8!

I've updated the patch will probably land it tomorrow.

Flags: needinfo?(oss)
Status: ASSIGNED → RESOLVED
Closed: 27 days ago
Resolution: --- → FIXED
Target Milestone: --- → 150 Branch
QA Whiteboard: [search] [qa-triage-done-c150/b149]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: