News for hackers. Stuff that matters.
Re:Firefox 85 by IvanK_net on Tuesday January 26, 2021 @10:11AM (#25916574)
I am a creator of a web-based image editor www.Photopea.com and here are things I miss in Firefox (and why my users prefer to use Chrome):

- impossible to put an image into a clipboard (so that user can e.g. paste it outside a browser)

- no PWA mode (impossible to put an icon of a website to your homescreen, which will open the website without a browser UI)

- impossible to have keyboard shortcuts with Alt https://bugzilla.mozilla.org/show_bug.cgi?id=1568130

Re:Firefox 85 by evilpie on Tuesday January 26, 2021 @10:23AM (#25916784)
- impossible to put an image into a clipboard (e.g. to paste it outside a browser)

I literally implemented support for the navigator.clipboard.write API, with image/png support included, in today's Firefox Nightly version: https://bugzilla.mozilla.org/show_bug.cgi?id=1619947

Enabling it on release might take a bit longer though. The specification is currently not in a good shape. And there are some open questions around permissions etc.

Re:Firefox 85 by JohnBooty on Tuesday January 26, 2021 @11:10AM (#25917436)
On behalf of millions of users, that's awesome and thank you, thank you, thank you for all that you do.
Re:Firefox 85 by account42 on Wednesday January 27, 2021 @04:16AM (#25925969)
I hope there is a setting to never allow websites to touch the clipboard.
Re:Firefox 85 by thayne on Tuesday January 26, 2021 @12:00PM (#25918199)
image/png is only one of many types of images though.
Re:Firefox 85 by llarsson on Tuesday January 26, 2021 @01:48PM (#25919641)
If the point is a copy-paste raster image that shall be understood by most other programs, then image/png is a fine choice, as it is lossless and well-known.
Re:Firefox 85 by thayne on Tuesday January 26, 2021 @02:23PM (#25920026)
> If the point is a copy-paste raster image

There are other use cases though that aren't supported by PNG, such as vector images and animated images. Or more niche use cases like RAW images.

Re:Firefox 85 by kaslai on Tuesday January 26, 2021 @03:24PM (#25920611)
Vector images don't really need direct support though, do they? A lot of vector image interchange formats are just plaintext so normal text clipboard APIs should suffice.

Animated images could definitely be somewhat useful though, albeit much more niche than static raster images. In most cases where I want an animated image on my clipboard, a link will suffice. What I want may not map to the majority of course, but at least PNG support is a start!

Re:Firefox 85 by thayne on Tuesday January 26, 2021 @03:57PM (#25920964)
> A lot of vector image interchange formats are just plaintext so normal text clipboard APIs should suffice.

Yes, but I don't think you can set the MIME type. So whatever you paste in would have to be smart enough to look at a text/plain clipboard data and figure out if it looks like an SVG (or whatever).

Re:Firefox 85 by kaslai on Wednesday January 27, 2021 @11:03AM (#25929882)
According to MDN you can choose one of the following MIME types:

    text/plain
    text/uri-list
    text/csv
    text/html
    image/svg+xml
    application/xml, text/xml
    application/json
So at the very least there's image/svg+xml, but that is pretty limiting.
Re:Firefox 85 by llarsson on Tuesday January 26, 2021 @03:52PM (#25920899)
My interpretation of the situation exactly. You have to start somewhere.

Raster image support should also be able to support stuff drawn on a canvas element, so I think it is a great place to start.

Re:Firefox 85 by inetknght on Tuesday January 26, 2021 @11:10AM (#25917439)
> I literally implemented support for the navigator.clipboard.write API

I beg you, do not let websites put things into my clipboard.

Re:Firefox 85 by IvanK_net on Tuesday January 26, 2021 @11:33AM (#25917765)
It can be done only after the user confirms, that they want to allow the website to do it (similar to a webcam access, etc).
Re:Firefox 85 by account42 on Wednesday January 27, 2021 @04:21AM (#25925999)
Is there also an option to never show that popup for any website?
Re:Firefox 85 by IvanK_net on Wednesday January 27, 2021 @06:56AM (#25927131)
This is up to a browser. I believe a browser should give you an option to decline all such requests by default, without asking you each time. Just like you can browse the web with JS disabled, without images, etc.
Re:Firefox 85 by Apofis on Tuesday January 26, 2021 @07:48PM (#25922879)
Not without permission, for sure. I dislike how some websites will add extra text when you copy.
Re:Firefox 85 by DyslexicAtheist on Tuesday January 26, 2021 @11:50AM (#25918035)
if this is important to some users (to me it is) why blindly trust an application's claim of what it does without verifying/restricting it[1]? The IMHO logical step for a user (again most don't care) would be to sandbox the application with a precise set of calls that are whitelisted and judge the application not based on trust but based on what they allowed in their security controls (firejail, apparmor, seccomp, SElinux, ...) and so immediately see if they did something different (that breaks the promise/trust)? (even then browsers have million lines of code so even with best intentions ymmv)

Reading/writing clipboards is a problem for sandboxing since they act as a bridge to another layer that otherwise has no contract or understanding of the application. So are many other features not just on browsers but on any application that for some reason needs to handle a gazillion tings (on Linux subscribing to system/user dbus messages is a big issue and out of the box totally unmitigated).

[1] If a monolith like chrome/firefox needs to understand/parse hundreds of protocols, technology-standards, etc, is a challenge to sandbox, maybe it isn't the sandboxing but the application that is the wrong tool for the users threat-model? Note, there is also Tor/Tails/QubesOS if isolation between user-space applications is a serious concern.

Re:Firefox 85 by jjordan on Tuesday January 26, 2021 @11:50AM (#25918036)
The thing I miss most in Firefox is the Smart Bookmarks feature they removed a while ago. Smart Bookmarks were fantastic. Add your favorite sites' RSS feeds to your bookmark toolbar and you'd have all the recent headlines from all your favorite sites at one click. Fortunately I wasn't the only one that appreciated this long neglected feature so someone created Livemarks (https://github.com/nt1m/livemarks/) that mostly replicated its functionality, but it's not quite the same as having native support for them.
Re:Firefox 85 by 51Cards on Tuesday January 26, 2021 @12:08PM (#25918316)
Yes! I loved this feature and had several feeds linked up. Was wonderful to summarize my morning reading quickly.
Re:Firefox 85 by jonathan6 on Wednesday January 27, 2021 @04:24AM (#25926024)
How is performance on Firefox? https://toppctips.com
Re:Firefox 85 by rstuart4133 on Wednesday January 27, 2021 @05:09PM (#25934733)
Yeah, I used that that too, and shed a tear when it died.

But there are extensions that do a similar thing, eg Brief. https://addons.mozilla.org/en-US/firefox/addon/brief/ And once you've got past the pain of the move, they do a much better job.

If Brief synced what you've read between Firefox instances (desktop / mobile in particular for me), it would be heaven. It might even be enough to turn induce me to create an account and turn on Firefox sync. However that is a forlorn wish given it hasn't been updated in 2 years now.

Re:Firefox 85 by joshuaissac on Tuesday January 26, 2021 @10:13AM (#25916611)
> no PWA mode (impossible to put an icon of a website to your homescreen, which will open the website without a browser UI)

Firefox for Android has this. Are you referring to Firefox for desktop?

Re:Firefox 85 by IvanK_net on Tuesday January 26, 2021 @10:28AM (#25916872)
I think a PWA mode is useful in all cases on all devices. But most of users use my program on desktops.
Re:Firefox 85 by emayljames on Tuesday January 26, 2021 @04:08PM (#25921074)
On my Firefox Desktop on Manjaro Linux, I was able to save a link and set it to no toolbars. No magic settings done.
Re:Firefox 85 by tweetle_beetle on Tuesday January 26, 2021 @10:42AM (#25917057)
The Firefox team has more or less said that the feature is not coming to desktop. I think a primitive version was hidden behind a flag, but even that is going to be dropped.
Re:Firefox 85 by eznzt on Tuesday January 26, 2021 @12:07PM (#25918302)
That's bad. I use it with Edgium for Spotify and it's neat, it behaves like a desktop application.
Re:Firefox 85 by moron4hire on Tuesday January 26, 2021 @02:16PM (#25919955)
I use it for about half a dozen apps. Azure Portal, Youtube Music, SoundCloud, Google Cloud Platform, Twitter, Teamwork, and this chat app I maintain. And I keep them pinned to my taskbar. I love this feature.
Re:Firefox 85 by addicted on Tuesday January 26, 2021 @10:58AM (#25917269)
Do you know the reasoning behind this?
Re:Firefox 85 by kenniskrag on Tuesday January 26, 2021 @11:01AM (#25917313)
> As Gijs says, we have limited resources and so have to spend those resources on work that appears to have the most impact on our mission. Based on the available data we have (both the research we performed as well as looking at how Chrome and Edge's implementations are being received) PWAs on desktop fall behind other work right now. https://bugzilla.mozilla.org/show_bug.cgi?id=1682593
Re:Firefox 85 by butz on Tuesday January 26, 2021 @11:28AM (#25917680)
Sadly, "PWA mode" (it probably should be called "Install to desktop") was being worked on under "Site Specific Browser (SSB)" name, but due to lacking resources work will be scrapped. More info here: https://bugzilla.mozilla.org/show_bug.cgi?id=1407202
Re:Firefox 85 by luastoned on Tuesday January 26, 2021 @10:44AM (#25917086)
- impossible to have keyboard shortcuts with Alt https://bugzilla.mozilla.org/show_bug.cgi?id=1568130

I tried the keyboard shortcut fiddle with FF86 and it works just fine after clicking in the white part once.

Re:Firefox 85 by rzzzt on Tuesday January 26, 2021 @11:05AM (#25917364)
I encountered this problem in archive.org's DOS emulator, and at that time there was an about:config fix for it: https://support.mozilla.org/en-US/questions/1278533
Re:Firefox 85 by jansan on Tuesday January 26, 2021 @02:15PM (#25919938)
Those about:config and chrome:flags fixes are only useful for us hackers. You cannot ask your user base to change the deep settings of your browser. For apps it either works out of the box or it does not.
Re:Firefox 85 by ginko on Tuesday January 26, 2021 @10:22AM (#25916765)
> impossible to put an image into a clipboard (e.g. to paste it outside a browser)

That's news to me. I do that almost on a daily basis with Firefox.

Re:Firefox 85 by superbatfish on Tuesday January 26, 2021 @10:30AM (#25916889)
Not sure, but I think he is referring to a programmatic API for doing it (e.g. so he can give users a "click here to copy image" button).
Re:Firefox 85 by muizelaar on Tuesday January 26, 2021 @10:28AM (#25916865)
This is about doing it programmatically. As in https://bugzilla.mozilla.org/show_bug.cgi?id=1619947
Re:Firefox 85 by loudmax on Tuesday January 26, 2021 @10:18AM (#25916682)
How is performance on Firefox?

I can do without the clipboard or PWA mode. Performance and responsiveness are what converted me and plenty others from Firefox when Chrome first appeared. If Firefox performance is at least close to Chrome/Chromium it'd make switching back much more appealing.

Re:Firefox 85 by fckthisguy on Tuesday January 26, 2021 @11:34AM (#25917794)
It's been pretty amazing since the start of the Quantum project. At least since FF70.

I also switched to Chrome rims ago when it came out due to how buttery smooth it was, but switched back after it starter to get slow.

Chrome's a memory hog and it runs slow and clunky on older devices, in my experience.

Re:Firefox 85 by ocdtrekkie on Tuesday January 26, 2021 @10:19AM (#25916702)
Firefox performance since about version 68 or so has been excellent.
Re:Firefox 85 by slizard on Tuesday January 26, 2021 @10:36AM (#25916974)
In fact, _better_ than Chrome for most websites (exceptions perhaps google's). I used to struggle with Chrome/Chromium hang and chew on CPU cores, crawl to a halt, crash, or just simply run out of memory or a regular basis. Switched to Firefox ~67-69 and such issues are completely gone. I still have significant CPU usage from background tabs occasionally even in Firefox, but the rest of the issues are all nearly inexistent (even though I have on average 30+ tabs open).
Re:Firefox 85 by eCa on Tuesday January 26, 2021 @10:59AM (#25917274)
My tabs have gotten out of control (they are in the hundreds (due to reasons)), but Firefox handles it quite nice. It only gets restarted after updates, so they are long-lived as well.

Chrome seem to struggle when there are tens of tabs.

Re:Firefox 85 by foepys on Tuesday January 26, 2021 @04:34PM (#25921351)
I personally know somebody who is currently running a Firefox with 3,000+ (yes, you read that right) tabs as part of their day to day workflow. Firefox just unloads tabs that weren't used for long and cause high memory pressure which is very neat feature for tab addicts.
Re:Firefox 85 by Kliment on Tuesday January 26, 2021 @04:55PM (#25921520)
This describes me. I currently have 3467 tabs. Firefox is the only browser that can handle this.
Re:Firefox 85 by gpvos on Tuesday January 26, 2021 @07:28PM (#25922737)
6400+ currently. Firefox does not break a sweat.
Re:Firefox 85 by bnkamalesh on Wednesday January 27, 2021 @02:45AM (#25925427)
Forget Firefox, my brain can't handle more than 10 tabs 0_0
Re:Firefox 85 by KamBha on Tuesday January 26, 2021 @07:45PM (#25922861)
I daily drive FF and even develop using it. Everyone else in the company use Chrome. Recently one of our clients complained about a performance issue, I tried to replicate it on my fast PC, but could not replicate. The people who could replicate it were on Chrome, but when they followed the replication steps in FF, the problem disappeared.

Google web applications still not great, but still usable I find. Facebook performance isn't great either.

Re:Firefox 85 by toyg on Wednesday January 27, 2021 @03:07AM (#25925539)
> Google web applications still not great

Sadly Google will typically "accidentally sabotage" performance of their key apps on Firefox.

Re:Firefox 85 by wejick on Tuesday January 26, 2021 @03:23PM (#25920604)
Browser performance is not only about objective benchmark but also subjectivity on our feeling when using the browser. So trying it first hand and be open-minded would help confirming it on your very personalized usecase.

I suggest to try Firefox as side browser for your light browsing need. Maybe like when reading news, social media browser, or anything make sense for you.

This worked for me, in my case, now chrome is my side browser.

Re:Firefox 85 by pmontra on Tuesday January 26, 2021 @01:10PM (#25919207)
I don't know how it compares to Chrome but it's definitely fast enough to leave me with no complaints. I'm using it on Samsung A40 and Tab 5e, plus a Sony Xperia X Compact. Also as my primary browser on my laptop (Ubuntu 20.04).
Re:Firefox 85 by prox on Tuesday January 26, 2021 @02:25PM (#25920037)
Firefox is really fast, it feels a lot more responsive on my system and boot time is almost instant.
Re:Firefox 85 by 3836293648 on Tuesday January 26, 2021 @12:04PM (#25918251)
Scrolling smoothness is still nowhere near EdgeHTML (old, non chromium Edge), but is just behind or better than Chrome
Re:Firefox 85 by bityard on Tuesday January 26, 2021 @03:14PM (#25920535)
> impossible to have keyboard shortcuts with Alt

Wait, why should web pages be able to usurp keyboard shortcuts traditionally reserved for the browser itself?

Re:Firefox 85 by kaslai on Tuesday January 26, 2021 @03:31PM (#25920695)
Because people want a desktop application experience inside of the browser.

When I was playing a Counter Strike web app example posted here a few months ago, it was endlessly frustrating to have Control and W mapped to actions that you may want to perform simultaneously while also not being able to suppress default behavior. I kept accidentally closing the tab as a result...

I personally think that the ability to override default shortcuts isn't necessarily a bad thing, but I definitely think it should be opt-in, like capturing the mouse cursor is. There should be strict separation between "app" features and what a default website should be able to do. Overriding shortcuts should be one of the "app-only" features imo.

Re:Firefox 85 by account42 on Wednesday January 27, 2021 @04:27AM (#25926050)
> When I was playing a Counter Strike web app example posted here a few months ago, it was endlessly frustrating to have Control and W mapped to actions that you may want to perform simultaneously while also not being able to suppress default behavior. I kept accidentally closing the tab as a result...

So play the native version - problem solved.

This drive to accomodate people misusing the web for apps just bloats browsers (making it prohibitively expensive to develop alternative implementations) while adding tons of privacy leaks and attack surface for exploits.

Re:Firefox 85 by kaslai on Wednesday January 27, 2021 @10:59AM (#25929822)
While I agree, unfortunately we're in the minority of people who actually care about that. The best I can ask for at this point is sane defaults.
Re:Firefox 85 by jjcon on Tuesday January 26, 2021 @10:21AM (#25916746)
I love photopea! Cool to see the dev on HN. Also yes, I’m a chromium user.
Re:Firefox 85 by moron4hire on Tuesday January 26, 2021 @10:21AM (#25916744)
Lack of OffscreenCanvas (without setting a flag) and OffscreenCanvasRenderingContext2D in WebWorkers (no flag at all) makes my WebXR project almost unusable (I have to jump through some ugly hoops of fading the view to black during scene loading to keep the user from throwing up from the render thread frame drops). Having to polyfill WebXR out of the ancient WebVR API is a pain, too.

Normally, the fact that practically nobody actually uses Firefox would mean it's not a huge problem. But the only standalone VR headsets with a Chromium-based browser are the Facebook headsets. If Firefox were better, I could be running twice as many of the not-Facebook-encumbered Pico Neo headsets for the same price. As it stands, Oculus for Business headsets are almost the same price as a Valve Index, once you add in the mandatory "support" yearly licensing fee.

Re:Firefox 85 by alserio on Tuesday January 26, 2021 @11:04AM (#25917358)
> Normally, the fact that practically nobody actually uses Firefox would mean it's not a huge problem.

I assume you mean "practically nobody without an adblocker". I dread the day we could have to live without Firefox. Don't dismiss it like that, please.

Re:Firefox 85 by moron4hire on Tuesday January 26, 2021 @12:22PM (#25918538)
I'm sorry, but it's not my fault that Firefox only has 4% market share in the world. Mozilla dismissed themselves.
Re:Firefox 85 by damnyou on Tuesday January 26, 2021 @03:52PM (#25920897)
I'm pretty sure the primary driver of that was Google turning Chrome into shovelware bundled with Adobe Flash and marketing it aggressively.
Re:Firefox 85 by moron4hire on Tuesday January 26, 2021 @04:19PM (#25921199)
Cuz Firefox was in such a strong position before Google came around, right.

Mozilla has never been a competitive company. They've always leaned heavily on the illusion of being a non-profit. They've always sold the "eat your vegetables" version of web browsing, without actually offering anything compelling over the competition. We're just expected to use Firefox because "it's made by not-Google".

Re:Firefox 85 by damnyou on Tuesday January 26, 2021 @05:10PM (#25921635)
Firefox was in fact in a stronger position before Google turned Chrome into shovelware, yes.
Re:Firefox 85 by daniel957 on Tuesday January 26, 2021 @05:59PM (#25922038)
I came from another post to see your commenting style. You use “in fact” a lot without supporting your statement lmao.

You were clearly the issue in the other thread.

Re:Firefox 85 by fckthisguy on Tuesday January 26, 2021 @11:42AM (#25917902)
It's a real shame that FF isn't on feature parity with Chrome in some ways, but 7% is not "practically nobody".

With Chrome, Edge, Opera, and Brave all running on Chrome, we're getting awfuly close to a browser monoculture - one controlled by Google.

Supporting FF might be a pain in some cases, but failing to do so drives users away from FF in the long run, and drives away FF users from your site.

I know web devs have limited resources, but look at it this way: supporting FF and Chrome is a lot less of a pain than it used to be supporting IE.

Re:Firefox 85 by moron4hire on Tuesday January 26, 2021 @12:21PM (#25918514)
It's really more like 4%, and falling every year.

My job is not to drive users to Firefox. My job is to create a product that people can use. And in my particular case, my job involves creating a product that doesn't physically harm people.

I agree that browser monoculture is a problem. But there is another problem that Mozilla is not the company that is helping with the problem.

EDIT: to go a little further on this, it's not physically possible to create a good WebXR experience in Firefox, at this time. Despite their announcements of focusing on Hubs as one of the few projects they kept around after the most recent purge, there are key technologies that are fundamentally missing from Firefox that have no replacement. And then they have the termerity to user-agent sniff Chromium browsers on desktop PCs and tell you that they supposedly don't support WebXR, that you need to download Firefox to use Hubs. So it seems even Mozilla doesn't really give a shit about the Open Web.

Re:Firefox 85 by franga2000 on Tuesday January 26, 2021 @03:21PM (#25920581)
Can you share anything about what it is that you're working on? I never understood why web VR/AR APIs even exist and why anyone would want to use them with the hardware we have today.
Re:Firefox 85 by moron4hire on Tuesday January 26, 2021 @04:40PM (#25921399)
It's a foriegn language instruction environment for government employees. You meet with your language instructor in culturally-appropriate environment and role-play different language training scenarios.

Why shouldn't the browser have VR APIs? WebXR allows us to iterate faster, across more devices, and more easily integrate with other services than building in a framework like Unity can do for us. I've spent the last 6 years doing nothing but WebXR and Unity work and WebXR is hands down far easier to develop the sort of application we're building.

No, you're not going to build MS Flight Simulator in WebXR, but you probably weren't going to do that in Unity, either, and ain't nobody got the budget for AAA++ graphics anyway. The folks who do graphically intensive work in Unity have stripped large parts of Unity away to make it possible.

I don't understand your last question.

Re:Firefox 85 by arendtio on Tuesday January 26, 2021 @04:30PM (#25921308)
+1 for the missing PWA mode.

As a user I create separate Firefox profiles for every site I want to use as a PWA, add a desktop short-cut and some custom userChrome.css, but while the result is okay, it sucks to set it up.

The only positive seems to be, that I can disable the buggy Spotify service-workers while keeping them enabled for other pages.

It would be awesome, if the PWA implementation would even support the system tray (similar to kdocker), but just the basic functionality would be better than the status quo.

Re:Firefox 85 by shmerl on Tuesday January 26, 2021 @04:33PM (#25921337)
> impossible to put an image into a clipboard (so that user can e.g. paste it outside a browser)

No idea what you mean. I can use any image. Right click - "Copy Image". Then paste it anywhere like in image editor. Works without any problems.

Firefox 86.0b1, Debian testing / KDE Plasma 5.20.5.

Re:Firefox 85 by maliker on Tuesday January 26, 2021 @11:03AM (#25917337)
Great job with Photopea! Definitely the best image editor with Google Drive integration.
Re:Firefox 85 by alangibson on Tuesday January 26, 2021 @11:10AM (#25917437)
I was just grousing about not being able to crop an image in Drive. Heading off to check out Photopea...
Re:Firefox 85 by prower on Tuesday January 26, 2021 @12:32PM (#25918684)
> - impossible to put an image into a clipboard (so that user can e.g. paste it outside a browser)

Isn't it possible with the convenient "Capture screeenshot" feature in Firefox (the 3 dots next to the address bar)?

Re:Firefox 85 by franga2000 on Tuesday January 26, 2021 @03:17PM (#25920557)
I think that feature uses some private or extension-only APIs, whereas Photopea can only use what's available to normal webpages.
Re:Firefox 85 by tsujp on Tuesday January 26, 2021 @11:57AM (#25918154)
Hey thanks for the cool site -- I've used it numerous times for non-trivial image manipulation I've needed to complete where access to Photoshop was not possible.
Re:Firefox 85 by account42 on Wednesday January 27, 2021 @04:19AM (#25925987)
I'm sorry, but for me those are all anti-features in a browser. On the other hand, you could have all those if you had made a native applications.
Re:Firefox 85 by jansan on Thursday January 28, 2021 @08:37AM (#25941555)
You will see more and more applications being implemented for the browser. Browsers who do not support this trend will simply lose market share. Simple as that.
Re:Firefox 85 by mig39 on Tuesday January 26, 2021 @11:26AM (#25917663)
Hey, I just wanted to thank you for Photopea! We use it in our schools almost exclusively. Students love it.
Re:Firefox 85 by boogies on Tuesday January 26, 2021 @02:07PM (#25919867)
Student here, I loathe it and the schools that it et al. convince ChromeOS is an acceptable substitute for real OSes. It seems more crashy than pre-1.0 Inkscape and slow as nitrogen-cooled molasses to boot.
Re:Firefox 85 by karakanb on Tuesday January 26, 2021 @01:17PM (#25919305)
I just want to say thank you for creating Photopea. It has been a lifesaver in many occasions, amazing work!
Re:Firefox 85 by FR10 on Tuesday January 26, 2021 @09:07PM (#25923427)
Exactly, opening .psd files in the browser is a huge game changer for me.
Re:Firefox 85 by immewnity on Tuesday January 26, 2021 @10:22AM (#25916769)
Right click -> Copy image does exactly what you want, no?
Re:Firefox 85 by IvanK_net on Tuesday January 26, 2021 @10:32AM (#25916929)
I mean putting an image into a clipboard when the user presses Ctrl+C, or some button in my program (without crating a <img> element on the screen and asking the user to right-click it).
Re:Firefox 85 by nine_k on Tuesday January 26, 2021 @10:31AM (#25916914)
It's about programmatic access to clipboard, like selecting a part of image in a browser-based image editor (likely a canvas), and copy-pasting it into some other application.
Re:Firefox 85 by inetknght on Tuesday January 26, 2021 @11:13AM (#25917483)
> - impossible to put an image into a clipboard (so that user can e.g. paste it outside a browser)

That's a feature. Websites should not have access to my clipboard.

> - no PWA mode (impossible to put an icon of a website to your homescreen, which will open the website without a browser UI)

That's a feature. Icons on my home screen should only ever be native applications. Use bookmarks for websites instead.

> - impossible to have keyboard shortcuts with Alt https://bugzilla.mozilla.org/show_bug.cgi?id=1568130

Just build a native app. It's literally what you want.

Re:Firefox 85 by gnud on Tuesday January 26, 2021 @11:27AM (#25917670)
> Websites should not have access to my clipboard.

Being able to take an image from the web page and place it on the clipboard is not 'the website having access to my clipboard'. It's the _browser_ having access.

Going in the reverse direction, placing data from the clipboard into the web page, is more tricky, but Firefox already does a good job of blocking clipboard accesses unless they're the direct result of user action (keyboard shortcut or button press).

Re:Firefox 85 by sudosysgen on Tuesday January 26, 2021 @11:37AM (#25917829)
You know that you can just copy an image to the clipboard on Firefox yourself, right? Right click, copy image.

The question is whether the website should be able to push images to the clipboard by itself, which it shouldn't. Firefox already supports doing what you're talking about.

Re:Firefox 85 by franga2000 on Tuesday January 26, 2021 @03:39PM (#25920781)
The point is when the image is not an image. Maybe it's being drawn on a canvas, or composited with multiple layers, or you want only a part of it (all of these apply to Photopea, I believe).

I don't like the way clipboard access is handled in browsers either, but the fact remains that if I'm using an in-browser image editor, select a part of the image and press CTRL+C, I want that portion of the image in my clipboard. How it gets there is an implementation detail that the average user doesn't and, if it doesn't affect security/privacy, shouldn't have to care about. And since it's write-only, there's no security/privacy concern.

Re:Firefox 85 by matsemann on Tuesday January 26, 2021 @11:16AM (#25917517)
Not having a feature you don't like is not a feature.... Putting yourself as the arbiter for what others would want is arrogant.
Re:Firefox 85 by inetknght on Tuesday January 26, 2021 @11:17AM (#25917540)
> Not having a feature you don't like is not a feature

Having a feature that breaks user's security is not a feature.

Re:Firefox 85 by franga2000 on Tuesday January 26, 2021 @03:23PM (#25920597)
What security? This is about write-only access and it already exists, just not for all media types.
Re:Firefox 85 by inetknght on Tuesday January 26, 2021 @03:30PM (#25920682)
So a website can inject crap into my clipboard? No thanks.
Re:Firefox 85 by franga2000 on Tuesday January 26, 2021 @03:39PM (#25920779)
That is your opinion and your problem and there's an about:config option to disable it.
Re:Firefox 85 by inetknght on Wednesday January 27, 2021 @10:43AM (#25929566)
about:config isn't intuitive for users. It should be prominent under the main settings menu under privacy/permissions
Re:Firefox 85 by franga2000 on Wednesday January 27, 2021 @10:58AM (#25929804)
Why? Why would a harmless feature that the vast majority of people want have to have its own "prominent" setting. I'd argue the exact opposite - that making it prominent would lead people to disable it without knowing the consequences and then think their browser is broken: "Oh, I don't want sites to access my clipboard, that sounds scary", then two months later "this browser sucks! When I copy my selection from Google Docs it strips all formatting! It works in Chrome, Firefox sucks!"

Anyways, this is far more time than I'm willing to spend talking to someone who thinks their PoV is the only correct one (I just now recognize your username from a few other threads under this post). Cheeers!

Re:Firefox 85 by IvanK_net on Tuesday January 26, 2021 @11:31AM (#25917732)
So let's say it is 2005, some phones have cameras, and some don't. The manufacturer of phones without cameras says: "Phones are for calling, just buy a camera, it is literally what you want".

You can be right, but the market has a final word.

Today, many people enjoy using advanced apps, that can be "installed" and "uninstalled" in one second (by opening and closing a website), without leaving any track (mess) in your computer.

Re:Firefox 85 by colejohnson66 on Tuesday January 26, 2021 @01:05PM (#25919139)
> That's a feature. Icons on my home screen should only ever be native applications. Use bookmarks for websites instead.

Why shouldn’t I be allowed to put a bookmark as an icon? That’s essentially what a PWA is anyways. A fancy bookmark that behaves like a native app. Why are you the arbitrator of what I can do?

Re:Firefox 85 by jjcon on Tuesday January 26, 2021 @11:40AM (#25917875)
It’s dismissals like this that have led Firefox to have the same market share as ‘Samsung internet’

What happened to giving users control?

Re:Firefox 85 by jakelazaroff on Tuesday January 26, 2021 @11:44AM (#25917933)
> Just build a native app. It's literally what you want.

What if "literally what I want" is to edit a photo without installing any software?