Add test case for Cookie database migration to new schema versions

ASSIGNED
Assigned to

Status

()

P5
normal
ASSIGNED
3 years ago
11 months ago

People

(Reporter: ethan, Assigned: ethan)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(firefox45 affected)

Details

(Whiteboard: [necko-would-take])

(Assignee)

Description

3 years ago
Right now we don't have test cases for cookie database migration from the old versions to the newer versions, including version 4, 5, 6 and 7.

Aurora 43 uses cookie schema version 5, and Aurora 44 uses the latest cookie schema version 7.
So, this bug is intended to add at least a test case to migrate from version 5 to 7. Perhaps we should also add the opposite direction (downgrading).
(Assignee)

Comment 1

3 years ago
=== Note ===
Refer to the existing tests:
- extensions/cookie/test/unit/test_schema_2_migration.js
- extensions/cookie/test/unit/test_schema_3_migration.js
QA Contact: ettseng
(Assignee)

Updated

3 years ago
Assignee: nobody → ettseng
Status: NEW → ASSIGNED
QA Contact: ettseng
(Assignee)

Updated

3 years ago
See Also: → bug 1165267
(Assignee)

Comment 2

3 years ago
While writing a new test case, I realize we have an interface:
nsICookieManager2::countCookiesFromHost(), which is mostly used by tests and extensions.

I am thinking that we should add a new interface, such as countCookiesFromOriginAttributes().
I am not sure whether it is necessary, but at least would be helpful for automation tests.

Yoshi and Honza, what do you think?
Flags: needinfo?(allstars.chh)
I don't know the code, add it if you need it
Flags: needinfo?(allstars.chh)
Whiteboard: [necko-would-take]
You need to log in before you can comment on or make changes to this bug.