diff --git a/mobile/android/chrome/content/browser.js b/mobile/android/chrome/content/browser.js index e0bde96ccac..945ee6a20b7 100644 --- a/mobile/android/chrome/content/browser.js +++ b/mobile/android/chrome/content/browser.js @@ -1640,12 +1640,10 @@ var NativeWindow = { add: function(aOptions) { let id = uuidgen.generateUUID().toString(); sendMessageToJava({ - gecko: { - type: "PageActions:Add", - id: id, - title: aOptions.title, - icon: aOptions.icon, - } + type: "PageActions:Add", + id: id, + title: aOptions.title, + icon: resolveGeckoUri(aOptions.icon) }); this._items[id] = { clickCallback: aOptions.clickCallback, @@ -1655,10 +1653,8 @@ var NativeWindow = { }, remove: function(id) { sendMessageToJava({ - gecko: { - type: "PageActions:Remove", - id: id - } + type: "PageActions:Remove", + id: id }); delete this._items[id]; }