태그된 질문 보이기: 모든 질문 보이기

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… (자세히 살펴보기)

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.

4일 전에 E.C. Marm님이 질문

3일 전에 E.C. Marm님이 마지막 답변

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… (자세히 살펴보기)

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.

3일 전에 DGDomtar님이 질문

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… (자세히 살펴보기)

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?

1주 전에 batboy42님이 질문

3일 전에 batboy42님이 마지막 답변

Appearance issues

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

3일 전에 Nick님이 질문

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… (자세히 살펴보기)

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.

3일 전에 jbehymer님이 질문

3일 전에 jbehymer님이 마지막 답변

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 … (자세히 살펴보기)

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?

3일 전에 Richard님이 질문

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… (자세히 살펴보기)

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.

3일 전에 Powell.Lesley-Jane님이 질문

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… (자세히 살펴보기)

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.

1주 전에 Chris and Emily McCarthy님이 질문

3일 전에 Chris and Emily McCarthy님이 마지막 답변

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… (자세히 살펴보기)

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

3일 전에 Tim Budoff, JR님이 질문

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… (자세히 살펴보기)

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

3일 전에 stephaniemolsbee님이 질문

Getting update your browser messages when my browser IS updated.

I have the updated version of Firefox but when I go to either Facebook or Instagram pages, I get a message saying "This version is no longer supported, please upgrade you… (자세히 살펴보기)

I have the updated version of Firefox but when I go to either Facebook or Instagram pages, I get a message saying "This version is no longer supported, please upgrade your browser." How can I fix this?

3일 전에 Richard Stenz님이 질문

ctrl+shift+o hotkey for bookmarks?

so i need that "ctrl+shift+o" hotkey for my amd adrenaline. i tried googling on how to turn off/change hotkeys for firefox but i couldnt find anything that helps me find … (자세히 살펴보기)

so i need that "ctrl+shift+o" hotkey for my amd adrenaline. i tried googling on how to turn off/change hotkeys for firefox but i couldnt find anything that helps me find this hotkey setting.

1주 전에 STERBEN_BLADE님이 질문

3일 전에 STERBEN_BLADE님이 마지막 답변