зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1367334 - Use pdf name as default name of save to file in embedded pdf case. r=brsun
MozReview-Commit-ID: 1AZxOj5DZzC --HG-- extra : rebase_source : 241d6ee0717ed2fc6137c649ee90c82caee5402e
This commit is contained in:
Родитель
8004ac9538
Коммит
715b00892d
|
@ -1811,7 +1811,8 @@ class PPAPIInstance {
|
|||
this.mm.sendAsyncMessage("ppapi.js:setFullscreen", message.fullscreen);
|
||||
break;
|
||||
case 'save':
|
||||
this.mm.sendAsyncMessage("ppapipdf.js:save");
|
||||
this.mm.sendAsyncMessage("ppapipdf.js:save", {
|
||||
url: this.info.url });
|
||||
break;
|
||||
case 'setHash':
|
||||
this.mm.sendAsyncMessage("ppapipdf.js:setHash", message.hash);
|
||||
|
|
|
@ -222,8 +222,8 @@ mm.addMessageListener("ppapipdf.js:openLink", ({data}) => {
|
|||
}
|
||||
});
|
||||
|
||||
mm.addMessageListener("ppapipdf.js:save", () => {
|
||||
let url = containerWindow.document.location;
|
||||
mm.addMessageListener("ppapipdf.js:save", ({ data }) => {
|
||||
let url = new containerWindow.URL(data.url);
|
||||
let filename = getFileName(url);
|
||||
let originalUri = NetUtil.newURI(url.href);
|
||||
let extHelperAppSvc =
|
||||
|
|
Загрузка…
Ссылка в новой задаче