698 points · by therealmarv · 6y ago · 382 comments
Uncertain about USB, Bluetooth, Locks, Keyboard Lock, and Native File System.
I don't want my browser doing those things.
Nothing wrong with that! But to take an example, when I hit a share button on a page I want to see the native share box, not some hideous iframed monstrosity that only works with Facebook. So I want Web Share. And I don't want to download an entire native app just so that I can receive a push alert when my food order is on the way, a web site works much better for that. So I'm happy that Web Push exists.
I get the nostalgia for the "simpler days", but web browers are essentially a universal OS these days. As both a user and a developer I'm quite happy with this.
We hear this pretty often without any evidence. He is a user, you are a user, that makes two opinions.
I think the reality that companies set the rules and people just swallow what they get because alternatives require huge efforts.
We also heard that users want large tiles that are all over their desktop with zero functionality.
I personally don't think it would take off, because I think most user attitudes range from "want these features" to "ambivalence". But if you're so certain, why not try?
Two things:
1. The person you respond to is also a user, no reason to dismiss their point of view
2. I don’t think browsers asked users for what they want! It’s a bit disingenuous to say “that’s what users want” when the communication is one way only.
Default browser settings = what the browser developer believes will best server the browser developer's interests.
About what percent of push notification requests do you accept? I think my percentage is 0, and the number of requests is high tens if not hundreds. I don't trust browser notifications at all.
Here's some stats: https://www.businessofapps.com/marketplace/push-notification...
Opt-in rates are around 65%, open rate is between 1 and 10%, I suspect some percentage of those opt-in rates were unintentional or coerced and some percentage of those opens were click bate or accident. so <2.5% of notifications were desired.
I think it's safe to assume a significant portion of the opt-ins and notifications were desired-not.
Based on this information, I would consider notifications undesirable.
Specifically, chat. More specifically... support agents providing live chat support. (And for that matter, end users interacting via chat appreciate push notifications on reply)
Without browser push notifications, there really isn’t a good alternative.
The fact that opt in rates are close to 50% is probably a good thing! It means that browsers aren’t using dark patterns to trick people in to opting into things they don’t want.
I would 100% agree with you if opting out were difficult. But at least Chrome’s implementation makes it very easy to decide which sites I want push notifications from, I really can’t think of any downside given the easy opt out.
Most big websites have different URLs for the same content. When you're sharing a link, you want the canonical URL, which is neutral and universal, not the URL you're currently on, which might have a session ID, user preferences, scroll anchors, etc appended to it. The share button in your browser uses the canonical URL of the site (if provided), which looks nicer and works better.
I get browser push notifications from gmail and facebook. I block everything else, but I'd be pissed if I didn't get those notifications.
Similarly, I like not having an app running so that you could just send me a text. Sms is bad for security, but great see sending short notifications. Almost better, as it is so limited.
Much better than directly copying the URL.
Except that with web push the block button is two taps away. Once I’ve given away my phone number that’s it, it can be sent to anyone, I can receive messages from anywhere.
I tend to agree, but this puts us both in the 5% of internet users who know how to do that. (And no, I'm not celebrating that low number.)
> What we didn't know until we analyzed the data was that even though so many people do use CTRL+V and do use "Paste" on the context menu, the toolbar button for Paste still gets clicked more than any other button. The command is so incredibly popular that even though there are more efficient ways of using it, many people do prefer to click the toolbar button.
https://docs.microsoft.com/en-us/archive/blogs/jensenh/no-di...
You and I use Ctrl-V, but the vast majority of users want something a lot more visual.
"Then you don't know what other people want" doesn't seem like a reasonable response.
People want a lot of things - but only use what they can access. Additionally, people will deliberately choose to use broken/painful systems if they have to, in order to accomplish a broader goal. Finally, the vast majority of systems used by users are built because they are profitable to build/operate. In many (most?) cases, they are not profitable to the user in the same way that they are to their builder/operator.
From those simple observations, it seems like quite stretch to claim that anything that has many users is something that people want, and that they enjoy using.
"As a user I don't want this therefore no one else should have it either." is a bit less reasonable, and implies that you don't know what other users want or care about what they need.
"Developers" or average Joe's? Most people I know don't know what push notifications are. RSS? "Some kind of gov agency?". Sharing? "Facebook button!". And, no, they aren't idiots, they just don't care and see any of that. ;)
I think this leaves out a middle ground. The people who design web pages love this stuff, either business decision-makers (because they think it improves metrics) or programmers (because it's a cool way to implement the area of their technological expertise)—but you can be a techie, know exactly what all these things are, and not want them.
(RSS is a funny one to see on the list. It's practically ancient, and most browsers seem to have given up on integrating it—which is a shame, because it's a low-flash solution to a real problem and is user-centered and -controlled.)
I, too, personally wish most of those features didn't exist. But I acknowledge that I am in the minority.
I wish I could at least control these things. I'd like to turn them all off and see what happens to the modern web, and at least understand what I'm allowing when I turn them back on.
Sometimes there are counters on those sharing links, and a tiny portion of visitors seem to click them.
You have already lost me, I do not believe I have ever done this, or wanted to do it
If users don't really give you permissions to use these things it implies to me that users don't really want them.
So, no, v1 wasn’t great. But we can improve on things.
Why would the share button be on a page? Surely this should be a native browser/OS function (as implemented km android, for instance)
It's a freak of luck that we have the web, an app environment with a built-in dev console and actual customization. Just think how much it contrasts with the black box of native apps and with what large companies actually want. I'm in no rush to throw it away.
You would have ring0 and ring3
You could decide what to install or what remove
In the browser everything is exposed to everyone by default
More than an OS is a disaster waiting to happen
Several critical or potential annoying functions have opt-in prompts by default, unlike your typical desktop OS.
I don't understand what you mean by "In the browser everything is exposed to everyone by default". Browsers have a much more robust security and privacy model than normal OSes.
Browsers are terrible. No other applications or OS components are so monolithic expose the same attack surface.
On the other hand, the web as a runtime is one of the most universal platforms we have. If I run Slack in a browser, I sure do want it to be able to notify me! (Though I wish doing so felt more like the Electron app - I’d rather use my browser than Electron if the UX were similar enough. I already have a browser, I don’t need another per application!)
And as an occasional user of less popular mobile platforms (Ubuntu Touch, etc) a more featureful web runtime helps close the gap between those platforms and Android/iOS.
I do think it’d be better if these two use cases were more explicitly distinct than they are now, though.
Platforms have fallen back on walled gardens (app stores) with centralized control of all code execution to compensate for the deficiencies of their security models. I don't want a future where the only apps I can run have to be signed and approved by Apple ahead of time. The web is the escape hatch.
I remember when applications had to be tied to the OS, does it run on unix, linux, some other OS, or hardware... what a pain.
If it is a web app it probabbly works most places.
It's true that it has displaced things they were true document or file transfer systems (Gopher, FTP) because it subsumes those functionalities, but it wasn't ever just that.
I agree but I would be ok with them if they required explicit permission from the user before being allowed.
But I was a bit shocked to discover that I was getting notifications from sites that I did not have open, then I realized that when I register for notifications the browser will continuously poll that site in the background, no matter whether I've browsed to that site in this session or not. That was when I decided I didn't want any notifications.
It's not even the interruption, but more the knowledge that my computer is casually making HTTP requests in the background, continuously, on a site I haven't even browsed to, that I don't feel comfortable with..
It means my browser is more bigger and more complex. It broadens the attack surface exposed by my browser, perhaps even if I don't opt-in. It dilutes the efforts of the Firefox team. It introduces new ways for browsers to be subtly incompatible. It further raises the barrier to someone making a serious browser from scratch.
Also, are we guaranteed that these features will be opt-in? There were serious security issues with WebGL (predictably), and I don't think WebGL was opt-in.
hm I wonder if there is a chrome extension for that
This is an issue with that particular website's implementation, not something inherent to the browser or the API.
Notifications? I need those from my calendar app and chat app.
Badges? Messaging systems I use rarely but which are important.
Visibility? I want resource intensive apps to "sleep" when not in use.
USB? I want an Arduino web ide to be able to communicate with hardware.
Screen lock? I don't want the machine to go into sleep mode when I'm presenting a slide deck.
Key lock? I don't want the browser intercepting keystrokes in my word processor or SSH session.
The notifications API is the same. How many of those "uses" are legitimate uses that users consciously want, and how many of them are misclicks or just clicking yes to dismiss the prompt so they can access the content they wanted in the first place?
In my case there's only one website I can think of where I want notifications from my browser: Slack. I can understand that some people might want them for e-mails, social networks, etc but even then that's only like a dozen or so websites. In contrast there more websites than that which use notifications for spammy/annoying/unnecessary purposes, and sadly some people do fall for them and then get their time wasted by these notifications.
In a perfect world where nobody would try to take advantage of people I would totally want web notifications to be a thing because there's basically no downside (websites won't try to use them for spam) and potential upsides.
In a world where it's not only legal but morally acceptable to take advantage of people, waste their time, stalk them, etc (there's a whole industry around this called "martech") I would happily sacrifice the few legitimate uses of web notifications if it means non-technical users can't accidentally opt-into crap and then have their time wasted by spam because they don't know how to opt-out.
Second, how can you know if these features are widely used or not? There's been lots of technologies that have been added to web browsers over the years that weren't widely used, and were later removed.
The httparchive could provide insights on any api afaik.
It doesn't mean it's the right thing to do for society
Browsers have gone far beyond their purpose in an inorganic way
It's like if my alarm suddenly started making coffee, toasts, working as remote and the new planned feature was the ability to warm itself up and iron my shirts
And it would still be a fraction of what browsers do today
There are similar site content settings in any major browser.
On the other hand for say a corporate web application where my only users really do want them ... they're AWESOME.
If there is a site you really like, that you want to share, and would want to recieve pertinent updates from, if you so choose without being hounded to do so, aren't you happy the feature is there?
When I implement this that's how I think anyway.
On the iPhone they require paying apple $100 a year which almost ensures most will be ads.
Whoever invented that API forgot whose client the browser is. Mine.
The web is one of the most open platforms that has ever existed — period. Since the dawn of the smart phone the web developer has heard the following request: "I need a native app because push messages!". Execs want them, users want them. They literally bang down your door asking for the damn things. Allowing the browser to handle push messages means you can keep your app on this amazing open platform instead of share cropping in some app store.
Web Share is barely a thing. It's literally just a call to an already existing browser function and deprecates all the vendor-specific embeds in most sites (each FB, Twitter, etc. share button you see either uses this single-function API, or loads their huge blob of JavaScript on every page that has it - which do you prefer?).
As a user of Web messaging apps, I also like the Visibility API, because it allows the apps I use to stop rendering while in background and just queue up messages to render when I look at them. This allows the process running those tabs to basically go to sleep (even swapping sometimes) which increases battery life and performance.
The rest of the ones you listed, I agree, really shouldn't be in Web browsers.
While there are very few web sites where you want them to send you notifications straight to your desktop, that API is also used to wake up your Service Workers, to let them receive information when they are not the currently active website and are therefore quite important to build things like chats or apps that sync over multiple devices.
AFAIK that Push API for Service Workers is not available on iOS yet, which is a major show stopper for Progressive Web Apps as there are many use cases where you would need something like that.
I share the concerns regarding features with extra high risk of leaking sensitive data. The operating system should control access for those who wish to disable such features; it doesn’t necessarily have to ask for each capability just because the option exists. Those would of course still need to trust the app’s own isolation for web pages if they for app features require access to e.g. file system or Bluetooth.
I don't want every random local news paper or internet chum site prompting me for every permission under the sun every visit.
Push notifications are good when my Webmail tells me there's a new message or Gitlab tells me my tests passed.
Not so good when some crappy newspaper I visit for the first time asks me if I want be notified about all their clickbait articles all the time.
But with Brave it's pretty easy to disable JavaScript on a per-site basis, with "disabled" being the default. So all these things don't bother me anymore.
@include *
@run-at document-start
navigator.something.someMethod = () => {} // noop
The Contacts API does not allow unrestricted access to your Contacts. It presents a picker for you to choose a contact.
The SMS Receiver API is not universal access to SMS messages, it is access to one specific message and only one that contains your domain name in the message text.
Both have very obvious utility to users. They don't look even vaguely terrifying.
I admit, this is exactly what I did :(
appreciate the info
The browser I use the most does not do any of these things, but it does a nice job of dumping HTML tables to formatted text, which is something the modern graphical browsers cannot do..
Your browser should let you decide whether you give websites access to this functionality?
Some of these things though it may be useful to have, although should be set by the user, independently of the web page entirely; the web page should not be allowed to specify these things.
Specifically, the following things could be user commands (that the web page need not know or care about whether or not it is implemented or used): Picture-in-Picture, Keyboard Lock, Pointer Lock, AirPlay, Screen Orientation (although see below for some comments), camera selection (the user would also be allowed to specify a file instead of the camera, or the user can specify to use the camera where a file is expected too), Theme Color, Badging, Chrome Sender.
Screen Orientation and Presentation Mode: In presentation mode (selectable by the user), this is a "paged screen" media rather than a "continuous screen" media; in this case, the height of one page is known to CSS and JavaScripts (this should be reported as the visible height, even if it isn't entirely visible; in normal more, Infinity should always be reported rather than the correct height), and page breaks work. The width and height may be known too (although not of the entire screen, unless it is full screen mode), but the user would lock the screen orientation using the global screen orientation locking function, if that is what is wanted. If CSS is disabled, then of course this won't work, but that is OK, since if the CSS is disabled then presumably the user doesn't want it to work, so it is OK. For displaying on a separate screen, that may be a function of the operating system anyways, and not of the web browser.
Payment Request is simply a specific case of autofill. Forms could specify autofill IDs, which are more general than this anyways, and fully controllable by the user. Credential Management could also work like this, although using HTTP authentication rather than forms/cookies would seem a better idea to me.
For sharing, the user can just copy the URL by himself; the browser might (or might not) include sharing functions for URLs, or the user may use a separate program which implements this; it is irrelevant which way is done.
Service Workers: For sending forms when internet is not available, what I wanted is the ability to save form data locally to disk and recall it later (on the same or a different webpage), entirely under the user's control; the web page should not need to know or care about this.
Game Pad and Force Touch are probably fine, although, like the keyboard and mouse, should only be enabled when the user activates it.
There are many other things too I think should be done differently.
- Web MIDI - access digital keyboards/synthesizers. I believe in some browsers there's no prompt, unlike Web USB.
- Screen sharing via getDisplayMedia, analogous to getUserMedia for cameras.
- WebRTC, peer-to-peer connections.
- Security keys (WebAuthn), specific support for cheap ($10-$50 depending on features) devices that do second-factor login to websites. Importantly, these devices communicate with the browser about which site you're logging into, making for phishing-proof logins.
If you can handle signaling in another way, you're free to do so.
When I played around with WebRTC the first time, I did it by copying the signaling data via TextAreas and WhatsApp.
Those and all other things listed on linked article are JavaScript-lang/engine things NOT related to browser itself. You could use such using Electron, literally "outside of browser"
Try disable JS in your browser OR try to use Links[0] browser — and lets see what you can do with a browser in 2020.
This is like replying to "Places you can visit for a road trip" and saying "You can visit all these places by train, too, also let's see you go there in a car without the engine."
(I am a links user, btw.)
Even if you don't have a dark theme already, it's a huge value-add..... (@dang?)
<picture>
<source srcset="made-with-bulma__dark.png" media="(prefers-color-scheme: dark)">
<img alt="Made with bulma" src="made-with-bulma" width="128" height="24">
</picture>
This will automatically replace with the image src when the srcset criteria is met, but keep all the other tags!I think that's the key point there. Light themes are good in light, but bad in dark situations, and vice versa. "Most" people prefer light, because they use their computer mostly in the light. Many programmers etc. prefer dark because they use their computers late in the dark a lot.
These are basically two "modes" of use, but software has been treating this as a preference, rather than a mode switch.
Through a set up of PowerShell/Bash scripts, I now have global dark/light mode switches on all my devices and I feel like this is the first time I can really use them effectively in all situations. Light when there's light, dark when there isn't. I even switch on the train as it goes through a tunnel. IMO, this is how it should be used, not as a set-and-forget preference.
I spend way too many hours using a monitor to let it's lifecycle determine what color-scheme I'll spend those hours looking at.
That's 3 pretty big assumptions :)
Sure, in that situation light mode is great, but if I'm browsing HN on my laptop at night in bed in the dark, I would definitely prefer dark mode.
https://www.w3.org/TR/screen-capture/
https://developer.mozilla.org/en-US/docs/Web/API/Screen_Capt...
Oh yes I didn't notice EVERY PAGE on the planet asking me for that.
(After asking me for e-mail newsletter signup and cookie consent.)
Blaming all web pages for their implementations is pointless. Give up the fight and redesign the browser. Don’t remove the feature because you believed web designers would hold back on informing the browser of its web page’s capability until the user interacts with some element every web designer would create, differently.
0 - https://developer.mozilla.org/en-US/docs/Web/API/Push_API
I think a lot of websites have just poorly / sloppily implemented the push notifications. I mean if they were to end an article with a call-to-action to subscribe to notifications and/or the newsletter, it'd be a much more pleasant experience.
As it stands, I've disabled push notifications entirely (https://support.google.com/chrome/answer/3220216?co=GENIE.Pl...) and I've got a bookmarklet that will try and delete all sticky elements (including persistent headers, popups, greyed-out popup backgrounds, cookie banners, etc). One day I might turn that into an addon that automatically does it after a few seconds of loading a webpage, idk.
One day browsers may implement pop-up blockers again as well but this time for the inline ones. I believe Google had an addon where you could report these things.
prefers-color-scheme: 80.85%
prefers-reduced-motion: 84.05%
Payment Request API: 90.06%
Web Share API: 49.25%
Push API: 78.57%
Service Workers: 94.42%
Web/native app install banners: 68.19%
Get Installed Related Apps API: Not launched, 0%
WebXR: 61.83%
Picture-in-Picture: 85.01%
Media Session API: 66.31%
Chrome Sender API: 64.75%
AirPlay: Unknown
Force Touch API: 55.74%
AR Quick Look: Unknown
GamePad API: 95.18%
WebUSB API: 65.27%
Web Bluetooth API: 68.6%
Web Locks API: 67.43%
Keyboard Lock: 30.47%
Generic Sensor API: 67.43%
Credential Management API: 70.86%
Clipboard API: 70.86%
Presentation API: 15.24% full support, 80.14% partial
Screen Orientation API: 76.16%
getUserMedia camera selection: 93.48%
Pointer Lock (Mouse Lock): 55.06%
Theme Color: 37.39%
Vibration API: 77.13%
Web Coffee API: Unknown
Battery Status API: 72.36%
Page Visibility API: 97.44%
Web Speech API: 92.88%
I should have known, but I wasn't paying attention.
Seems like a joke API rather than something actually useful.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/418
"418 I'm a teapot"
What's fantastic about not even having the option? What's fantastic about having to pay $100/year or reinstall your apps once a week, in addition to having Apple MITM any notifications?
Push notifications in the way that phones do it are necessarily platform and service specific.
You don't have to allow Apple to MITM your push notifications BTW. Just send a generic ping to your app, and when it wakes up pull the actual content from your server and display the notification.
As a user I don't want push notifications from websites.
I know there are some exceptions (like messengers), but really, those should be apps because Apples centralised push messaging system is better for my battery life.
A better option would be for users to be able to select alternate push servers.
I mean, I know why nation-state attackers love them - it's super easy to exploit them, and once you do, you have full access to everything in the user account (including all browser login sessions). But what's the advantage to users?
Not on mobile.
Push notifications are becoming an irritation mainly because of their overuse. The number of sites where you go to them to have a look at one piece of information and you have to tell them no to push notifications is becoming quite an annoyance.
I regularly hear of complaints about spammy popups on people's computers, even when they don't "have the web browser open". And it turns out it's just stock Google Chrome, doing exactly what Google Chrome was designed to do: Pop up ads, that everyone has since started shipping ads through.
https://developer.mozilla.org/en-US/docs/Web/API/Credential_...
You're thinking of Google's One Tap, which is just a JS snippet that publishers include on their page, and has nothing to do with browser APIs. (The OP shows a screenshot of One Tap, which is confusing.)
These uBlock filters will make those sign up with Google popups go away entirely:
||accounts.google.com/gsi/iframe/select?*ux_mode=popup$all
||smartlock.google.comMy needs are simple. I want a small, rock-solid, terminal that is dedicated to HIGHLY secure and federally guaranteed transactions on a publicly funded military grade network for: Banking, Bill Payment, Tax payments, Voting.
I do not want it to take photos, listen to me, show advertisments, play games, stream media, maps, start coffee machines, do email and chat, play audio/video files, draw graphics or change themes.
And any "browser" that can do these additional functions should be banned from connecting to the high security network under penalty of death.
Very simple.
(disclaimer, I am one of the dev)
https://www.howtogeek.com/51174/mount-and-unmount-a-vhd-file...
If you pay attention to advertising for a week, you will be marginally educated on what the advertiser wants you to know about their products and services; this has some economic utility as you cannot buy what you don't know exists.
If you pay attention to psychological warfare for a week, first off you at bare minimum will not be happy or content as you are not buying if you are content or happy; they must torture you through mechanisms of persuation and manipulation in order to manufacture a desire. Once that is done, then they try to train you to have desirable habits to them; as a famous example McDonalds happy meals for kids creating obese adult customers 30 years later. If the food didn't have a serious downside (didn't literally injure you and make you depressed) you wouldn't come back to the restaraunt later for your momentary allevation of that depression\for a fix.
Now, Go try to find reliable information on Coronavirus. Which one of those is going on 99% of the time? The sales funnel is really training you to be the product for them.
The web is funded by marketers who engage in pyschological warfare for profit, no feature they will ever impliment is designed to make you happy, and technologists have tremendous profit motive to make up all sorts of excuses as to why this behaivour is acceptable when clearly it is destructive to both themselves and the web.
Browsers today are trying to become an operarting system so they have absolute conrtrol over the user experience and as they do that they are on a slow march towards building an unbelievably bloated application who's philosophy is to confuse, distract, and screw you at every turn all while managing your perception.
Case in point, it would take hours for me to research how to turn off all of those features as I don't need them and there's no mechanism in Firefox or Chrome to backup settings which those browsers reset randomly and intentionally.
So call these things what they are; at best, bloat, at worst, a stock pump and dump scheme combined with a tremendous waste of time.
Please don't arbitrarily change the theme of the website I'm using based on my battery level.
> a low distraction writing environment for example, that still notifies you of low battery
My system does this.
Yeah, just base your theme off of the dark mode setting. Then if the _system_ changes to dark mode when battery is low, your app can follow suite.
https://developer.mozilla.org/en-US/docs/Web/API/Intersectio...
We use it ourselves for our internal ecommerce backend system.
We made our own WebUSB Postage Scales and Label Printer that enables 1-click creation of consignment labels.
We pull weights from the postage scales and chuck raw ZPL over the wire to the Label Printer.
Being able to skip the bugs in operating system printing queues is amazing.
Demo:
just shows, everyone's got an opinion.
Anyone know if something like this exists for Android and iOS?
Granted I get folks might feel a rando website that is resource intensive would be horrific, but maybe we're talking about some specific web app / use case.
"Any sufficiently complicated browser contains an ad-hoc, informally-specified, bug-ridden, slow implementation of half of operating system."
What can’t a browser do these days?
Detect that you’re paying for bandwidth and not autoplay video.