Problem with HTMLCanvasElement.toBlob(), "image/webp", & anchor (<a>) using download attribute

I have a local HTML/Javascript document I use for compressing local image files. It relies on HTMLCanvasElement.toBlob() to achieve the compression in the usual way; a p… (læs mere)

I have a local HTML/Javascript document I use for compressing local image files. It relies on HTMLCanvasElement.toBlob() to achieve the compression in the usual way; a pertinent excerpt:

                   const output = document.getElementById("outputDiv");
                   const blobURL = URL.createObjectURL(file);
                   const img = new Image();
                   img.src = blobURL;
                   // ...
                   img.onload = function () {
                       URL.revokeObjectURL(this.src);
                       const canvas = document.createElement("canvas");
                       canvas.width = img.width;
                       canvas.height = img.height;
                       const ctx = canvas.getContext("2d");
                       ctx.drawImage(img, 0, 0, img.width, img.height);
                       canvas.toBlob(
                           (blob) => {
                               const anchor = document.createElement("a");
                               anchor.download = getNewFileName(file.name); /* uses extension .webm for .webm, .jpg for everything else */
                               anchor.href = URL.createObjectURL(blob);
                               anchor.textContent = "DOWNLOAD";
                               output.append(anchor);
                           },
                           mime,  /* set earlier based on file extension: .webm -> "image/webm", everything else -> "image/jpeg"
                           quality / 100    /* (user-specified) */
                       );
                   };

Here's the quirky thing, though: when I'm compressing, say, a .jpeg file (or a .png), clicking on the download link opens a save-file dialog, but when using a .webm file, it opens the compressed image in a new tab! True, I can always then save the image from there (the resulting file is in Firefox's temp folder), but I don't understand the difference in behavior -- and indeed, in at least one other browser I tried (the latest Vivaldi) the download happens as expected regardless of input file type. In all cases the anchor hrefs look like, e.g., "blob:null/724ab85e-53ba-4890-9868-7f1ba27d4278".

Any idea why this is happening? I highly doubt it's the intended behavior.

Browser: Firefox 132.0.2 for Windows. Environment: Windows 10 Home 22H2 version 10.0.19045.

Stillet af E.C. Marm for 3 dage siden

Seneste svar af E.C. Marm for 3 dage siden

Excel online via Sharepoint: Spreadsheet zoom controls not showing in lower right corner

FF v132.0.2 (64-bit). We utilize Sharepoint/Microsoft 365, and since switching to Firefox, the zoom controls normally located in the lower righthand corner for Excel spre… (læs mere)

FF v132.0.2 (64-bit). We utilize Sharepoint/Microsoft 365, and since switching to Firefox, the zoom controls normally located in the lower righthand corner for Excel spreadsheets is just gone. This is with extensions disabled, even tried Private View. Chrome properly shows it.

Screenshots attached showing Firefox/Chrome. That basically eliminates our ability to use FireFox if that's the case since there's no other way to do it.

Stillet af DGDomtar for 3 dage siden

Firefox won't launch after updating macOS unless booting the MBP in safe mode

Hi everyone, I recently updated my macOS to Ventura 13.6.9 along with updating to the newest Firefox Nightly; now whenever I try to launch Firefox, it just hangs and wil… (læs mere)

Hi everyone,

I recently updated my macOS to Ventura 13.6.9 along with updating to the newest Firefox Nightly; now whenever I try to launch Firefox, it just hangs and will never load the start page. If I give it about 5-10 minutes, it will eventually load the favorites bar, and then when I click into the address bar to type, it hangs again. If I give it another few minutes, I can type but hitting enter/return, nothing happens.

If I restart my MBP and hold shift to boot into safe mode, Firefox loads perfectly fine with no issues or hangs at all. I'm just not sure what is different that would be causing it to hang when booting into regular mode?

I saved the Apple crash report to see if that's any help for diagnosing the issue, here's a link to the .txt file - https://file.io/ZRVgd3A8jzoA

If there's anything else I can provide that would help, please let me know!

Thanks all!

Stillet af partial for for 3 måneder siden

Seneste svar af partial for 3 dage siden

Different page size across different platforms: laptop vs. PC?

I'm logged in to my Firefox account, I visit (for example) ESPN.com on my PC. I adjust the size to fit my PC screen, then when I visit the same site on my laptop the webs… (læs mere)

I'm logged in to my Firefox account, I visit (for example) ESPN.com on my PC. I adjust the size to fit my PC screen, then when I visit the same site on my laptop the website doesn't look right so I have to size down, but then when I visit on my PC I have to size up again etc etc etc.

I want to individualize the size of webpages, how do I do that?

Stillet af batboy42 for 1 uge siden

Seneste svar af batboy42 for 3 dage siden

Appearance issues

My firefox browser is displaying webpages with a black background despite being set on light mode.

Stillet af Nick for 3 dage siden

Cannot use Firefox to access internat Intranet due to not http or https

Firefox automatically adding the https to our internat Intranet and I cannot access it. Auto adding the https is off. This site is only available within our firewall. I h… (læs mere)

Firefox automatically adding the https to our internat Intranet and I cannot access it. Auto adding the https is off. This site is only available within our firewall. I have had access forever until recent updates have made it impossible to access it.

I type in the URL: ourintranet/ and that has always gone to the site. Now, it is changing it to https://ourintranet/ when I hit enter...never done this before. I have this setting: Don’t enable HTTPS-Only Mode enabled.

Stillet af jbehymer for 3 dage siden

Seneste svar af jbehymer for 3 dage siden

Cannot move cursor by word using Option key in URL Search bar anymore.

I beleive in the recent versions of Firefox, shortcut keys have been added/changed such that holding the Option key while in the URL Search bar activates other functions … (læs mere)

I beleive in the recent versions of Firefox, shortcut keys have been added/changed such that holding the Option key while in the URL Search bar activates other functions (Switching search engines: Option + Up/Down Arrow) and completely disables my ability to move left or right through the URL by word.

Is there any way I can disable this shortcut key combination?

Stillet af Richard for 3 dage siden

allow certain cookies

I need to ensure a smooth experience on the website - Select the menu symbol. - done Select Settings. - done Select Privacy & Security. ? Choose on… (læs mere)

I need to ensure a smooth experience on the website -

   Select the menu symbol. - done
   Select Settings. - done
   Select Privacy & Security. ?
   Choose one of the following options:
       Option 1: To allow cookies from all (third-party) websites, check Standard.
       Option 2: Scroll down. To allow cookies only from Pearson, select Manage Exceptions…
   If you chose Option 2, under Address of website, select the text box and enter the websites listed below, selecting Allow after each one:
   pearson.com
   pearsoned.com
   pearsoncmg.com
   mathxl.com
   myitlab.com
   ecollege.com
   pi.pearsoned.com
   Select Save Changes.
   Click the X symbol to the right of the Settings tab to close it.
   Refresh the Pearson page to ensure that your browser will accept cookies.

Stillet af Powell.Lesley-Jane for 3 dage siden

Windows 10 on my Laptop. Firefox will not open attachments saved in my password manager. Another browser does open them. Firefox version is 132.0.1

Are there settings in Firefox that can solve the problem? Or is more information needed from me? I have been using Firefox for many years, and am reluctant to switch to a… (læs mere)

Are there settings in Firefox that can solve the problem? Or is more information needed from me? I have been using Firefox for many years, and am reluctant to switch to another browser.

Stillet af Chris and Emily McCarthy for 1 uge siden

Seneste svar af Chris and Emily McCarthy for 3 dage siden

Save Settings

I just had a suggestion regarding settings that you set. I would like to know if there is any feature being worked on to be able to save all your settings (or maybe even… (læs mere)

I just had a suggestion regarding settings that you set. I would like to know if there is any feature being worked on to be able to save all your settings (or maybe even back up) to your login? or back them up to a file that can be imported later? or is there one that i'm missing? I have a custom toolbar and any time I log in to a different computer where I have to install firefox again...I would rather have an import function for all my settings/toolbars

Stillet af Tim Budoff, JR for 3 dage siden

Firefox won't open

I starting having trouble getting Firefox to open last week on a win 10 PC. I could only open a window if I ran as administrator. If I got a window open, then it would no… (læs mere)

I starting having trouble getting Firefox to open last week on a win 10 PC. I could only open a window if I ran as administrator. If I got a window open, then it would not go to any website I tried. I thought it was issues with my PC because it is old and I was having other issues as well. I got a new Win 11 PC and fire fox opened when I first downloaded it but now, I can't get it to open again. It is my preferred browser of choice. Any help on this? TIA, Stephanie

Stillet af stephaniemolsbee for 3 dage siden