mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-10 09:19:28 +00:00
Bug 930452 - GeckoView busted by HelperApps.jsm again r=blassey
This commit is contained in:
parent
d3ac1ff71a
commit
d14eb09865
@ -75,7 +75,11 @@ var HelperApps = {
|
||||
|
||||
// Query for apps that can/can't handle the mimetype
|
||||
let msg = this._getMessage("Intent:GetHandlers", uri, flags);
|
||||
let apps = this._parseApps(this._sendMessage(msg).apps);
|
||||
let data = this._sendMessage(msg);
|
||||
if (!data)
|
||||
return [];
|
||||
|
||||
let apps = this._parseApps(data.apps);
|
||||
|
||||
if (flags.filterHttp) {
|
||||
apps = apps.filter(function(app) {
|
||||
@ -132,7 +136,6 @@ var HelperApps = {
|
||||
},
|
||||
|
||||
_sendMessage: function(msg) {
|
||||
Services.console.logStringMessage("Sending: " + JSON.stringify(msg));
|
||||
let res = Services.androidBridge.handleGeckoMessage(JSON.stringify(msg));
|
||||
return JSON.parse(res);
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user