From e5f32bb35cc72c7b0b8b180530bf4063b69c78c3 Mon Sep 17 00:00:00 2001 From: Jim Mathies Date: Mon, 25 Aug 2014 11:48:58 -0500 Subject: [PATCH] Bug 903022 - Parent save-as file pickers to the browser window rather than the content window. r=gavin --- browser/base/content/nsContextMenu.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/browser/base/content/nsContextMenu.js b/browser/base/content/nsContextMenu.js index 17e262bdf9b..bb4a9354ff6 100644 --- a/browser/base/content/nsContextMenu.js +++ b/browser/base/content/nsContextMenu.js @@ -1160,13 +1160,13 @@ nsContextMenu.prototype = { return; } - var extHelperAppSvc = + let extHelperAppSvc = Cc["@mozilla.org/uriloader/external-helper-app-service;1"]. getService(Ci.nsIExternalHelperAppService); - var channel = aRequest.QueryInterface(Ci.nsIChannel); - this.extListener = + let channel = aRequest.QueryInterface(Ci.nsIChannel); + this.extListener = extHelperAppSvc.doContent(channel.contentType, aRequest, - doc.defaultView, true); + doc.defaultView, true, window); this.extListener.onStartRequest(aRequest, aContext); },