Closed Bug 1733425 Opened 3 years ago Closed 3 years ago

SessionStore.getClosedTabData should always return an object

Categories

(Firefox :: Session Restore, task)

task

Tracking

()

RESOLVED FIXED
95 Branch
Tracking Status
firefox95 --- fixed

People

(Reporter: standard8, Assigned: claubatista, Mentored)

References

(Blocks 1 open bug)

Details

(Whiteboard: [lang=js][good-next-bug])

Attachments

(1 file)

SessionStore.getClosedTabData is only called in production code with the aAsString argument as false.

In test code, the majority of tests call JSON.parse to translate the string back into an object.

We can therefore drop the string option, and have it always return an object. Note this is split out from bug 1505572.

For running tests (after building), you'll want to do ./mach mochitest path/to/test.

I'm happy to mentor this. For instructions on how to get your local build of Firefox up and running and submit your patch, see https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html

Note this bug will be auto-assigned when the first patch is attached.

Assignee: nobody → contatodaclau
Status: NEW → ASSIGNED
Pushed by mbanner@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e370b1861c12
Change SessionStore.getClosedTabData to always return an object insteaf of a string. r=Standard8,extension-reviewers,zombie
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 95 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: