Closed Bug 658959 Opened 14 years ago Closed 14 years ago

Fix DownloadManager (and tests) usage of deprecated Storage binding APIs.

Categories

(SeaMonkey :: Download & File Handling, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
seamonkey2.2

People

(Reporter: philip.chee, Assigned: ewong)

References

Details

Attachments

(1 file, 2 obsolete files)

Bug 584316 - Fix DownloadManager usage of deprecated Storage binding APIs Bug 645049 - Update tests to no longer use a deprecated API From Bug 584316: > bug 507414 declared deprecated a bunch of binding functions download manager > uses, you should update to the new code. We will need to update our download manager UI code and tests since the APIs have changed on trunk. Attachment 521862 [details] [diff] and Attachment 521875 [details] [diff] look relevant.
Assignee: nobody → ewong
Status: NEW → ASSIGNED
Attachment #535934 - Flags: feedback? → feedback?(philip.chee)
Comment on attachment 535934 [details] [diff] [review] Fix DownloadManager (and tests) usage of deprecated Storage binding APIs. bindStringParameter() and bindInt64Parameter() need to be replaced as well. > +++ b/suite/common/downloads/tests/chrome/test_action_keys_respect_focus.xul > stmt.bindStringParameter(0, "Finished Download"); > stmt.bindStringParameter(1, filePath); > stmt.bindStringParameter(2, "http://" + site + "/file"); > - stmt.bindInt32Parameter(3, dm.DOWNLOAD_FINISHED); > + stmt.bindByIndex(3, dm.DOWNLOAD_FINISHED); stmt.bindStringParameter() => stmt.bindByIndex(() (Other tests as well) > +++ b/suite/common/downloads/tests/chrome/test_multiword_search.xul > stmt.bindStringParameter(0, "Super Pimped Download"); > stmt.bindStringParameter(1, filePath); > stmt.bindStringParameter(2, "http://" + site + "/file"); > - stmt.bindInt32Parameter(3, dm.DOWNLOAD_FINISHED); > + stmt.bindByIndex(3, dm.DOWNLOAD_FINISHED); > stmt.bindInt64Parameter(4, new Date(1985, 7, 2) * 1000); > stmt.bindInt64Parameter(5, 111222333444); stmt.bindInt64Parameter() => stmt.bindByIndex(() (Other tests as well)
Attachment #535934 - Flags: feedback?(philip.chee) → feedback-
In /suite/common/contentAreaClick.js addToUrlbarHistory() uses bindStringParameter() twice.
Attachment #535934 - Attachment is obsolete: true
Attachment #536064 - Flags: feedback?(philip.chee)
Attachment #536064 - Attachment is obsolete: true
Attachment #536064 - Flags: feedback?(philip.chee)
Attachment #536078 - Flags: feedback?(philip.chee)
Comment on attachment 536078 [details] [diff] [review] Fix DownloadManager (and tests) usage of deprecated Storage binding APIs.(v3) Passed all the download manager tests. Also tested clicking on links.
Attachment #536078 - Flags: feedback?(philip.chee) → feedback+
Neil would be an appropriate reviewer.
Attachment #536078 - Flags: review?(neil)
Attachment #536078 - Flags: review?(neil) → review+
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Keywords: checkin-needed
Target Milestone: --- → seamonkey2.2
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: