michael@0: /* Any copyright is dedicated to the Public Domain. michael@0: http://creativecommons.org/publicdomain/zero/1.0/ */ michael@0: Cu.import("resource://gre/modules/NetUtil.jsm"); michael@0: michael@0: function test() { michael@0: var file = new File(new Blob(['test'], {type: 'text/plain'}), {name: 'test-name'}); michael@0: var url = URL.createObjectURL(file); michael@0: var channel = NetUtil.newChannel(url); michael@0: michael@0: is(channel.contentDispositionFilename, 'test-name', "filename matches"); michael@0: }