Bug 903022 - Parent save-as file pickers to the browser window rather than the content window. r=gavin

This commit is contained in:
Jim Mathies 2014-08-25 11:48:58 -05:00
parent 9a24fd35ae
commit e5f32bb35c

View File

@ -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);
},