Bug 1450856 - Fix PromptDelegate.onExternalResponse() for non-e10s r=esawin

MozReview-Commit-ID: FFuX0fviAgj
This commit is contained in:
James Willcox 2018-05-03 12:26:40 -05:00
parent 6500846a02
commit ed42963278

View File

@ -23,12 +23,10 @@ ExternalAppService.prototype = {
doContent(mimeType, request, context, forceSave) { doContent(mimeType, request, context, forceSave) {
const channel = request.QueryInterface(Ci.nsIChannel); const channel = request.QueryInterface(Ci.nsIChannel);
const mm = context.QueryInterface(Ci.nsIDocShell).tabChild.messageManager;
debug `doContent: uri=${channel.URI.displaySpec} debug `doContent: uri=${channel.URI.displaySpec}
contentType=${channel.contentType}`; contentType=${channel.contentType}`;
EventDispatcher.forMessageManager(mm).sendRequest({ GeckoViewUtils.getDispatcherForWindow(context).sendRequest({
type: "GeckoView:ExternalResponse", type: "GeckoView:ExternalResponse",
uri: channel.URI.displaySpec, uri: channel.URI.displaySpec,
contentType: channel.contentType, contentType: channel.contentType,