Closed Bug 1844815 Opened 2 years ago Closed 2 years ago

Migration cleanup and tests for rejecting non-ipv4 hostnames ending in numbers

Categories

(Core :: Networking, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
120 Branch
Tracking Status
firefox120 --- fixed

People

(Reporter: edgul, Assigned: edgul)

References

(Blocks 1 open bug)

Details

(Whiteboard: [necko-triaged])

Attachments

(1 file, 1 obsolete file)

As per Bug 1723456, we changed the validity of non-ipv4 URLs that have hostnames ending in numbers.

As a followup, which ideally lands along side the above bug, we want to also implement DB cleanup/migration that filters out newly invalid URLs from an old DB. We should also add some tests that verify the migration is working.

We will need migrations and testing for (at least) cookie and permission URLs for which the nsICookieManager and https://searchfox.org/mozilla-central/source/extensions/permissions/test/unit/test_permmanager_migrate_11-12.js may be useful.

Other components, in particular indexeddb, may also require this. I will add this once we know.

Blocks: url
Severity: -- → N/A
Component: Networking: Cookies → Networking
Priority: -- → P2
See Also: → 1723456
Whiteboard: [necko-triaged]
Assignee: nobody → edgul
Attachment #9345671 - Attachment description: WIP: Bug 1844815 - Added cookie db cleanup for old non-ipv4 urls with hostnames ending in a number → Bug 1844815 - Added cookie db cleanup for old non-ipv4 urls with hostnames ending in a number. r=valentin,pbz
Attachment #9348018 - Attachment is obsolete: true
Pushed by eguloien@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d18908756603 Added cookie db cleanup for old non-ipv4 urls with hostnames ending in a number. r=valentin,cookie-reviewers
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 120 Branch

Noting that the permissions migration was left out for now, happy to revisit if we can get further clarity on how to proceed.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: