Closed Bug 1124665 Opened 10 years ago Closed 10 years ago

API changed for nsIWebBrowserPersist.saveURI in Firefox 36 beta?

Categories

(Firefox :: Untriaged, defect)

36 Branch
x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: danny0838, Unassigned)

References

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.99 Safari/537.36 Steps to reproduce: A firefox addon with something similar to the following codes var aURL = "http://path.to/an/url" var WBP = Components.classes['@mozilla.org/embedding/browser/nsWebBrowserPersist;1'].createInstance(Components.interfaces.nsIWebBrowserPersist); WBP.persistFlags |= WBP.PERSIST_FLAGS_FROM_CACHE; WBP.persistFlags |= WBP.PERSIST_FLAGS_AUTODETECT_APPLY_CONVERSION; WBP.saveURI(aURL, null, aRefURLObj, null, null, aFile, null); Actual results: When running a "Not enough arguments" error on WBP.saveURI line is got Expected results: Is worked normally on Firefox < 36. Is there an API change for WBP.saveURI in Firefox 36? If yes, where to get the documentation of the latest API ?
Blocks: 704320
I've added rudimentary docs on MDN. You should pass a referrer policy argument after the referrer - or better yet, switch to using Downloads.jsm.
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.