Closed Bug 961646 Opened 10 years ago Closed 10 years ago

SessionStore and nsISessionStore behave differently

Categories

(Firefox :: Session Restore, defect)

x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 996053

People

(Reporter: tabutils+bugzilla, Unassigned)

References

Details

nsISessionStore.getTabValue always returns string, while SessionStore.getTabValue returns various data types.

Suppose SessionStore.setTabValue(aTab, "locked", true), SessionStore.getTabValue will return boolean true, while nsISessionStore.getTabValue(aTab, "locked") will return "true".

Suppose SessionStore.setTabValue(aTab, "locked", false), SessionStore.getTabValue will return "", while nsISessionStore.getTabValue(aTab, "locked") will return "false".
Blocks: 898732
I think there is a bug that planned to add type checks to get/setTabValue() but I can't find it right now.
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
Bug 908440 is fixed now, but the issue remains. 
SessionStore.setTabValue throws for non-string input, which is annoying, but nsISessionStore.setTabValue never throws.
Status: RESOLVED → UNCONFIRMED
Resolution: DUPLICATE → ---
Blocks: 908440
Summary: SessionStore.getTabValue and nsISessionStore.getTabValue behave differently → SessionStore and nsISessionStore behave differently
Depends on: 996053
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago10 years ago
No longer depends on: 996053
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.