JoeG wrote:OK, but that bug was marked fixed on 11 Oct, and we've still got things broken. I don't understand.
In Mozilla land everything is a bug including enhancements and new features.
https://hg.mozilla.org/mozilla-central/rev/eff426a003e1#l21.99The function signature of internalSave() changed:
Before:
Code: Select all
function internalSave(aURL, aDocument, aDefaultFileName, aContentDisposition,
aContentType, aShouldBypassCache, aFilePickerTitleKey,
aChosenData, aReferrer, aSkipPrompt, aCacheKey)
After:
Code: Select all
function internalSave(aURL, aDocument, aDefaultFileName, aContentDisposition,
aContentType, aShouldBypassCache, aFilePickerTitleKey,
aChosenData, aReferrer, aInitiatingDocument, aSkipPrompt,
aCacheKey)
The difference is the extra "aInitiatingDocument" parameter inserted in position 10. If you don't care about private browsing just use
document (or
window.document) for this parameter.
https://hg.mozilla.org/mozilla-central/rev/eff426a003e1#l21.28Similarly saveURL() now has an extra parameter tacked on to the end:
Code: Select all
function saveURL(aURL, aFileName, aFilePickerTitleKey, aShouldBypassCache,
aSkipPrompt, aReferrer, aSourceDocument)
Phil