mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 982182 - fix regressions that hang checking for updates for webapps; r=mfinkle
This commit is contained in:
parent
fff999707e
commit
cf0c6d5f85
@ -112,7 +112,7 @@ public class EventListener implements GeckoEventListener {
|
||||
JSONObject obj = new JSONObject();
|
||||
obj.put("profile", preInstallWebapp(name, manifestURL, origin).toString());
|
||||
EventDispatcher.sendResponse(message, obj);
|
||||
} else if (event.equals("WebApps:GetApkVersions")) {
|
||||
} else if (event.equals("Webapps:GetApkVersions")) {
|
||||
JSONObject obj = new JSONObject();
|
||||
obj.put("versions", getApkVersions(GeckoAppShell.getGeckoInterface().getActivity(),
|
||||
message.getJSONArray("packageNames")).toString());
|
||||
|
@ -23,6 +23,7 @@ Cu.import("resource://gre/modules/Task.jsm");
|
||||
Cu.import("resource://gre/modules/PluralForm.jsm");
|
||||
|
||||
XPCOMUtils.defineLazyModuleGetter(this, "Notifications", "resource://gre/modules/Notifications.jsm");
|
||||
XPCOMUtils.defineLazyModuleGetter(this, "sendMessageToJava", "resource://gre/modules/Messaging.jsm");
|
||||
|
||||
XPCOMUtils.defineLazyGetter(this, "Strings", function() {
|
||||
return Services.strings.createBundle("chrome://browser/locale/webapp.properties");
|
||||
@ -39,10 +40,6 @@ function debug(aMessage) {
|
||||
#endif
|
||||
}
|
||||
|
||||
function sendMessageToJava(aMessage) {
|
||||
return Services.androidBridge.handleGeckoMessage(JSON.stringify(aMessage));
|
||||
}
|
||||
|
||||
this.WebappManager = {
|
||||
__proto__: DOMRequestIpcHelper.prototype,
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user