Port |Bug 606681 - deleteTabValue should not throw an exception| to SeaMonkey

RESOLVED FIXED in seamonkey2.10

Status

RESOLVED FIXED
7 years ago
7 years ago

People

(Reporter: misak.bugzilla, Assigned: misak.bugzilla)

Tracking

SeaMonkey 2.9 Branch
seamonkey2.10

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

7 years ago
Created attachment 602284 [details] [diff] [review]
patch

From parent bug:

I see no reason for deleteTabValue API to throw an exception when the key does not exist. It needs to be fixed, although we can use setTabValue(aTab, aKey, "") instead.

Reproducible: Always

Steps to Reproduce:
var ss = Cc["@mozilla.org/browser/sessionstore;1"].getService(Ci.nsISessionStore);
ss.deleteTabValue(gBrowser.mCurrentTab, "unread");
ss.deleteTabValue(gBrowser.mCurrentTab, "unread");
Attachment #602284 - Flags: review?(neil)
Comment on attachment 602284 [details] [diff] [review]
patch

>   // test deleting 
>+
Nit: unnecessary.
Attachment #602284 - Flags: review?(neil) → review+
(Assignee)

Comment 2

7 years ago
http://hg.mozilla.org/comm-central/rev/1ec9702698fb
Status: ASSIGNED → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → seamonkey2.10
Version: Trunk → SeaMonkey 2.9 Branch
You need to log in before you can comment on or make changes to this bug.