image-picka icon indicating copy to clipboard operation
image-picka copied to clipboard

Image Picka not working anymore

Open plosadaGRADIANT opened this issue 2 months ago • 7 comments

Describe the bug Hello eight04, Thanks for developing Image Picka, it's super useful. I have used it for years but it stopped working a few days ago, not sure if the extension or Firefox updated. What happens now is that when I click the blue button with the down-pointing white arrow to download an image, nothing is downloaded, nothing happens any more. I tested this on multiple images from different websites, all of them I can download with the right-click-save-as method. I noticed a couple of errors being thrown in the Firefox developer tools console (not sure if this is helpful):

Image

Here are the errors in plain text:

`TypeError: pref002.b.webRequest is undefined o moz-extension://1fa142cd-284b-4f2f-a4e4-74dabe4281ad/background.js:1 o moz-extension://1fa142cd-284b-4f2f-a4e4-74dabe4281ad/background.js:1 x moz-extension://1fa142cd-284b-4f2f-a4e4-74dabe4281ad/background.js:1 t moz-extension://1fa142cd-284b-4f2f-a4e4-74dabe4281ad/background.js:1 F moz-extension://1fa142cd-284b-4f2f-a4e4-74dabe4281ad/background.js:1 F moz-extension://1fa142cd-284b-4f2f-a4e4-74dabe4281ad/background.js:1 moz-extension://1fa142cd-284b-4f2f-a4e4-74dabe4281ad/background.js:1 background.js:1:26422 J moz-extension://1fa142cd-284b-4f2f-a4e4-74dabe4281ad/background.js:1 moz-extension://1fa142cd-284b-4f2f-a4e4-74dabe4281ad/background.js:1 (Async: promise callback) F moz-extension://1fa142cd-284b-4f2f-a4e4-74dabe4281ad/background.js:1 F moz-extension://1fa142cd-284b-4f2f-a4e4-74dabe4281ad/background.js:1 moz-extension://1fa142cd-284b-4f2f-a4e4-74dabe4281ad/background.js:1

pref002.b.webRequest is undefined background.js:1:26422 J moz-extension://1fa142cd-284b-4f2f-a4e4-74dabe4281ad/background.js:1 Q moz-extension://1fa142cd-284b-4f2f-a4e4-74dabe4281ad/background.js:1 (Async: promise callback) F moz-extension://1fa142cd-284b-4f2f-a4e4-74dabe4281ad/background.js:1 moz-extension://1fa142cd-284b-4f2f-a4e4-74dabe4281ad/background.js:1

Source map error: Error: NetworkError when attempting to fetch resource. Resource URL: moz-extension://1fa142cd-284b-4f2f-a4e4-74dabe4281ad/background.js Source Map URL: background.js.map`

I am using Firefox 136.0 (64-bit) on Ubuntu 20.04, Image Picka 0.21.0 installed from Firefox Add-ons Manager, updated to the last version available from there. I checked that the Downloads folder is on a disk with free space, names don't apparently contain strange characters, and all other extensions were disabled.

To Reproduce Steps to reproduce the behavior:

  1. Open the developer tools Console on Firefox
  2. Try to download any image with Image Picka's button (this one for example)
  3. Errors appear in the developer tools console, no image downloaded in the Downloads folder

Expected behavior The picture appears in the downloads folder, as usual.

Environments:

  • OS: Ubuntu 20.04 on 5.15.0-156-generic
  • Browser: Firefox 136.0 (64-bit)
  • Extension Version: Image Picka 0.21

Additional context Super nice extension, I hope this helps.

plosadaGRADIANT avatar Oct 26 '25 13:10 plosadaGRADIANT

Ran into the same issue, but just tried 0.22 and all is well again. It was released a few hours before your post. Seems to be because webRequest API was enabled by default. I am currently on 145.0.b5 and the option isn't working on any image picka version.

lnp5131 avatar Oct 26 '25 16:10 lnp5131

#270

Image

lnp5131 avatar Oct 26 '25 16:10 lnp5131

Seems like a permission error. Try

  1. Enable "use webRequest api" option in the option page (disabled by default in 0.22)
  2. Click the blue arrow and verify the error.
  3. Click the extension button to start a batch download.
  4. Click the blue arrow again.

I'd like to know if step 3 and 4 will also produce errors.

eight04 avatar Oct 26 '25 17:10 eight04

Hello @eight04 , thanks for the reply. I tried what you suggested:

  • Use webRequest api was already enabled for me, clicking the blue arrow with that option enabled leads to the reported error:

  • Disabling this option seems to make version 0.21.0 (Oct 20, 2025) work again.

  • After toggling the webRequest API usage, batch downloads and the blue arrow seem to work fine, I am not able to reproduce the problem anymore, with or without this option enabled. In a few hours I can try the same on a second PC in which I also observed the same issue.

With regard to @lnp5131 suggestion of upgrading to version 0.22, as far as I can tell, only version 0.21 is available right now on addons.mozilla.org, I don't know how to upgrade an extension outside Firefox's addons manager, but I can try if it is useful.

plosadaGRADIANT avatar Oct 27 '25 18:10 plosadaGRADIANT

I repeated the same steps on a second computer running the same versions of Ubuntu and Firefox. First, I confirmed that the previously reported errors were still present. Then, I performed a batch download on a random page containing images — this time, the batch download worked successfully. After that, no further errors occurred when clicking the blue arrow. I did not toggle the "Use webRequest API to collect images" option; it remained enabled throughout the test. I'm not sure why this resolved the issue, but version 0.21 appears to be functioning correctly again.

plosadaGRADIANT avatar Oct 27 '25 20:10 plosadaGRADIANT

Thank you 👍 that helps a lot. I'm pretty sure this will be fixed in 0.22.1 which hasn't been approved on add-ons store.

The issue is that, before using the web request api, the user must initiate an interaction with the extension.

Clicking the blue arrow was counted as "web page interaction" hence the following action failed.

In 0.22.1, we disabled web request api by default, so the user must go to the options page to turn it on, which will be counted as "extension interaction".

Error message is also improved. If the user hasnt interacted with the extension, the error message will suggest going to the options page and disable + reenable the setting.

You only have to interact with the extension once to make it work. That's why everything works again after the batch download - you clicked the extension button.

eight04 avatar Oct 28 '25 03:10 eight04

Thank you for eight04 for developing Image Picka and for the quick answers.

plosadaGRADIANT avatar Oct 28 '25 10:10 plosadaGRADIANT