firefox-android

Adding to home screen on Android Firefox does not mask icon

萝らか妹 提交于 2020-03-26 04:04:30
问题 The Google documentation on web app manifests specifies that in order to make web app icons mask properly, an icon should be marked as "purpose": "any maskable" . This works well on Chrome on Android but the mask fails to mask as expected when using "Add to home screen" in Firefox Android (Android 10, Firefox Mobile 68.5.0). In my manifest, I'm providing icons of sizes 192x192 and 512x512; Firefox does indeed take one of the icons from the manifest; it's just not performing the desired

Adding to home screen on Android Firefox does not mask icon

谁说胖子不能爱 提交于 2020-03-26 04:04:07
问题 The Google documentation on web app manifests specifies that in order to make web app icons mask properly, an icon should be marked as "purpose": "any maskable" . This works well on Chrome on Android but the mask fails to mask as expected when using "Add to home screen" in Firefox Android (Android 10, Firefox Mobile 68.5.0). In my manifest, I'm providing icons of sizes 192x192 and 512x512; Firefox does indeed take one of the icons from the manifest; it's just not performing the desired

WebExtensions: How to send a message to content script? (Android)

假如想象 提交于 2019-12-08 22:34:03
问题 I just noticed that the tabs API is only available for the desktop not for Android. In the past I have used this code to send messages to my content scripts: sendMsgToTabs(msg) { return browser.tabs.query({}).then(tabs => { let msgPromises = [] for (let tab of tabs) { let msgPromise = browser.tabs.sendMessage(tab.id, msg) msgPromises.push(msgPromise) } return Promise.all(msgPromises) }) } But how am I supposed to do that when the tabs API is not available? I mean the only thing I can think of