114 points · by chiefofgxbxl · 9y ago · 269 comments
Browsers have arguably led this drive by notifying users that the pages they are viewing are "NOT SECURE", through the use of pad-lock icons in the URL bar or even notifications under textboxes (e.g. Firefox) [0]. Chrome, too, is driving this trend. And with users fearful of sending data over a "non secure connection", they'll be vocal enough to push website owners to fix this issue.
---
So, if you could decide: what feature or measure would you want to see adopted as quickly as the push to make all sites use HTTPS?
[EDIT: kudos if you describe how your new standard could be "forced", e.g. through a URL-bar icon, notifying users somehow, etc. How would you convince other developers and maintainers of large code-bases, websites, browser vendors, etc. that they should throw their support behind your initiative?]
Think ambitiously too -- imagine your proposed feature would have the same backing and urgency as we have with HTTPS, with browsers (for better or for worse) authoritatively "dictating" the new way of doing things.
---
[0] http://cdn.ghacks.net/wp-content/uploads/2017/03/firefox-52.0-warning-insecure-login.png
[1] https://www.troyhunt.com/life-is-about-to-get-harder-for-websites-without-https/
Explicit opt-in to store persistent state at all. An exception should be a cryptographic identity that is only revealed when you click a login button.
No sound without opt-in.
No big data transfers without opt-in. If a site wants to shove 10MB of crap in their article, then they should have to show a page asking permission to use data. And search engines should refuse to index anything behind a bloatwall.
So you'd have an idiotic banner pissing off your users and the considerable majority would click "stay anonymous", gaining the site operator nothing.
I'm getting closer to dropping Google, but not quite there yet.
Because registration pages are the top of most sites' conversion funnels, and as such they produce metrics that reflect on not just IT teams but also UX/design and marketing. The amount of tinkering and customization in registration pages is a political/organizational problem, not a UI/tech problem.
And besides that, no business has an incentive to make it easier for you to free-ride their service with fake credentials. The better question might be why so many companies continue to put cost-inducing barriers like signup in their flow before they fully demonstrate the value-creating potential of their product. I liked Facebook's "Anonymous Login" but apparently very few developers were actually interested.
https://www.recode.net/2015/3/6/11559878/whatever-happened-t...
Because it works. If it didn't work, companies wouldn't be doing it.
Ah, but they do have an incentive to make it easier for you to sign up with legit registration credentials.
If the OS was able to store the common fields that describe a person / account and the browser could prompt the user to inject those, HTML5 would only need a few more supported valid input type attributes and only populate them after the user has opted in.
Each site would publish a standardized file in a standardized location, and/or add a META tag to the file in each page. The file itself would simply contain the URL to the login page and the parameters that should be passed to it, and the way to pass those parameters.
Then, your browser/password manager could simply perform a request in the background, and log you in completely automatically. This solves all the hassle of finding the login form, locating the fields, auto-filling, typing some characters if the change wasn't detected, handling single-page apps, etc.
This could later be extended to signing up automatically. It would make having strong, unique passwords for each site the convenient alternative.
The advantage, where password managers would just log you in transparently on any site, would hopefully be big and visible enough for more and more sites to start implementing this.
The more likely (as in, one could create it today) implementation would be an extension that could do the GET/POST login, but was oblivious as to required parameters. Then people could contribute the formats expected by different domains.
Much less elegant, and only usable by the more technically inclined, but implementable today without explicit support from websites.
i wonder if the solution isn't to back off a little though. that is, standardize some process instead of (de?)centralizing authentication. something that gives developers more control, and users more familiarity, than OpenID.
- The discontinuation of using SSL certificates for verification of website identities and a move to true fingerprinting ala SSH.
- Deprecation of email or rather its insecurity.
- Logins on websites with a public / private keypair ala SSH.
- A resurgence in sites that let me pick my own anonymous username instead of Facebook, Google or Twitter logins and email addresses as UIDs.
- Blocking of any and all forms of popups, including javascript popups, overlays, cookie banners, browser notifications.
The web is rapidly becoming a place I don't want to visit anymore.
You do realize that's trust-on-first-connect aka self signed certigicates, right? Especially with LE, thats worse in every way to the CA model.
>Logins on websites with a public / private keypair ala SSH.
Pretty much client certificates minus PKI.
I don't see how the option to trust websites is worse than having a bunch of certificate authorities choose who I'll trust for me.
For example, if users were responsible for knowing which fingerprints to trust for a given website, they would most likely just click "ok, trust it" for everything. Then, you're overall security goes way down because now people are conditioned to click "accept" to everything, regardless of the impact.
The thing is, if it is a massive pain for average users, then that is an own-goal. Look at SSH: there is no certification chain there. All you do is generate a keypair and then (here's the awkward bit) magic the pubkey over to the server.
It would be easy enough for a website to make pubkey installation a seamless part of the sign-on workflow.
https://www.sjoerdlangkemper.nl/2017/07/05/prevent-session-h...
We would need something to replace it with, there is really nothing right now.
[0] https://news.ycombinator.com/item?id=14708783 [1] https://magmadaemon.org/
This doesn't solve the problem of mail being encrypted in transit. As far as I can tell the server operator can still read the user's mail. What we need is end-to-end encryption, lack of support in MUAs (iphone mail app, thunderbird etc.) is the problem here, it has really nothing to do with the server.
Would HPKP (https://developer.mozilla.org/en-US/docs/Web/HTTP/Public_Key...) cover that for you?
Do you know if PGP public/private key pairs can be used for ephemeral keys? I'd hate to rely on the same secret to store everything throughout time.
Take keybase (or its conceptual basis) and distribute it. Each domain can host its own key server. You can post proofs on other domains to link domain identities or logins. So now my phone has a key that's attached to the identity jtsummers at legoflambda.org. You have a service. I register the identity jtsummers at legoflambda.org with your service. I can log in using the key from my phone. My laptop has its own key. My yubikey stores a third key for access while I'm traveling without my laptop. Each of those I've connected via some proof mechanism to my key server so I can log into your service using any one of those keys.
Google and others can also host a key server so my user at gmail.com identity can also be used or my facebook.com identity, again with multiple keys associated with them from my various devices. And possession of the private key can also be used to access the same services (perhaps paired with something like a TOTP or other shared secret if you want an extra layer of authentication).
Now you want to send a message to me, you can have a service similar to what keybase offers. You send a message to any one of my public identities or keys, it gets made available to all of them. You know me here on HN, you send it to that identity. You know me by some other forum handle or by my gmail account you use those. And since my public keys are all available, you can send an encrypted message that will be available to any one of my devices (which I can re-encrypt as I add and remove devices).
This also handles a lot of the problem with spam. Spammers now have to take the time to individually encrypt messages for every user. They have to publically post identities and keys so that users can authenticate them. And users can block spammers by blocking the keys associated with them and block an entire identity by blocking all the keys associated with the spamming key. You want to ensure that that email from your bank is legitimate? Your bank should have a publically visible key server that all communications from them make use of. Whether they send the message in the clear with only a signature or if they send an encrypted message to you (preferred for privacy and security anyways).
This also helps with applications like signal/whatsapp which are presently tied to a single client instance. Now, I can associate my whatsapp key with multiple other keys (each on different devices, presumably). So you want to send me a whatsapp message, it can now be sent to all my devices. My phone number can still be an identity used by those services, but it's no longer the only one.
This was a particularly annoying case for me as I travel internationally with a separate phone than my US phone since it's locked, I had to enable WhatsApp on my travel phone using my primary cell number for ease of friends communicating with me (I don't have to get my secondary number to all of them and remind them to switch back once I'm done). If I could have connected my secondary device to my primary one then all messages sent to my main number would have been received by both, and messages sent from either would all appear to the recipient as belonging to the same identity.
====
This is not a well structured presentation, sorry. It's more the random thoughts that have been hopping around in my head for the last couple months between other more pressing concerns.
Effectively if put into practice, ISPs would run name servers that effectively mirror the whole DNS system via blockchain. And if you really wanted to have ultimate privacy you could run it locally on your machine and there would be no way for anyone to know what domains you've looked up.
IIRC there are some ways SNI will be encrypted with TLS 1.3 so it's not a problem to begin with.
This is true, but with a reasonable cache design, it shouldn't be too bad.
Although this may be a nice driving factor to get eCommerce sites to stop putting 50 tracking pixels on every page.
https://www.reddit.com/r/unitedkingdom/comments/5ei5dz/list_...
There will be no need for JS on most sites, can be adapted to current frameworks, and with preload/prefetch it might be very fast.
* U can prefetch progress bar / loading state for example, and redirect to partial url of a real content
intercooler also supports something similar to the server pushed DOM diff flow you envision:
Server Sent Events BETA (http://intercoolerjs.org/docs.html#sse)
"Server Sent Events are an HTML5 technology allowing for a server to push content to an HTML client. They are simpler than WebSockets but are unidirectional, allowing a server to send push content to a browser only." http://intercoolerjs.org/docs.html#sse
I, like many other, spending some time to ensure server side rendering works, and web site can function without JS. If intercooler were part of browser, and not separate code it will be possible to adapt any SSR ready app to work with this.
I am not sure if interaction is possible as part of the mix using some tricks, though. It seems like we just have turbolinks for that.
Edit: It works only with svg and only in Firefox, or am I doing something wrong?
- Client sends the entirety of what it has to the server so the server can do the diff
- Server sends the entirety of the new page to the client so it can do the diff
- Server is constantly keeping track of the last thing that the user looked at so it can send the diff for the next page
?Server can generate UI with baked changes to state. URL parameters. Generate html from received state by calling render function of clicked component and send just that components html.
If we had http header for that we can leverage http2 push and replace even components which state were changed as side effect.
React-Redux, Elm, Vuex doing this already. Just bake actions to urls and keep store on server.
<script vers="3.1"> </script>
<script vers="4.2"> </script>
Basically, I want my tabs to be isolated and treated as completely separate, isolated browsing histories, caches, and cookies. ...This is my gmail tab. All that tab ever sees is gmail. This is my HN tab. All it ever sees in HN.
Like I said, this isn't my field, but..
> First party isolation means that all identifier sources and browser state are scoped (isolated) using the URL bar domain.
From: https://www.torproject.org/projects/torbrowser/design/
It would be a bit frustrating because once you close the tabs everything is lost. However I am not sure how different browsers "incognito mode" handle multiple tabs.
I do like your idea though.
You can create a container for each compartmentalized context (work, social media, whatever) and then create tabs assigned to diffent containers. They're visually distinguished as to which tab is "in" which container, but otherwise you can manipulate and mingle them freely with the rest of your tabs. Each container's persistent state is isolated from both the other containers and your default browsing context.
Some think cookies are segregated in each Incognito tab/window. Some don't know that the Incognito cookiejar is reused if you open another Incognito tab/window without first closing all other Incognito windows+tabs.
This applies to LocalStorage as well.
So much code and so many libraries are littered with "if (old version browser) do x, else if IE, do y, else, ..."
I'm old enough to remember the days when IE was a dominant force and they could pretty much thrash around and invent their own quirks and standards, forcing everyone else to play to their tune. So I find great joy in seeing IE disguising itself as Mozilla in order to not be treated as a rotten egg.
I mean sites will already tell users they don't support older browsers.
Compare C++ standardization. Most people are using two year old compilers. While the newest compilers do implement draft features, these features are almost all standardized in the next ~3 years. The standards are clearly versioned and you can put newer compilers into modes to check against older standards if your code needs to compiler on multiple compilers. Features are never removed.
By contrast, on the web, everybody is running brand spanking new browsers. Experimental technologies are sometimes implemented before full draft standards are even written. Many or most drafts that are written never become standards. If they do become standards, it's often a decade or more away. Alternatively the living standards of what browsers actually support aren't versioned. It's not possible to put a browser into JavaScript 99 mode - the easiest way to check your code for conformance is to automate your test cases across a variety of browsers. And, features are sometimes removed because they are deemed security or privacy concerns, so conforming to an old standard is not sufficient to ensure proper functionality under modern browsers.
I use it alot to make various articles and blog posts more readable.
There's also quite a few reader view plugins for Chrome, Firefox, etc
I settled on hiding the fixed headers and other objects upon scroll down. (They can be brought back by scrolling up.) https://iwalton.com/wiki/#NoFixed
It would be nice if there was browser support, maybe something like tricking the page into thinking the viewport is as long as the page itself.
- HSTS
- DNSSEC
- IPv6
in that order. I think for a long time, governments had no interest in pushing security and encryption because that would prevent them from mass data collection. I think minds are starting to change around that: poor security is much more likely to be exploited against a government rather than used in its favor (plus all the real criminals now have much better opsec these days so mass surveillance is much less effective).
Anyone here have any recommendations on a book, course, etc. that covers IPv6 readiness?
What kind of resource allocation problems did you have on dual-stacked hosts? Windows/Linux/Other??
There's a tremendous amount of complexity and cost attached to the fact that browsers look up the IP address of the hostname and then connect to port 80.
First, it's true that you can specify another port in the URL, but nobody does that because it's ugly and hard to remember. If you want to be able to send people to your website, you need to be able to tell people what the url is - "Just go to example.com". The minute you start saying "example.com colon, eight zero eight zero" you're screwed. With a SRV record in DNS, example.com could map to an arbitrary IP address and port, which would give us much more flexibility in deploying web sites.
If you want a bare http://example.com to work, you need to create an apex record for the domain. That can't be a CNAME that maps to another hostname, it has to be an A record that maps to an IP address. This means you can't put multiple websites on a single server with a single IP address, you have to have an IP address for each site. IPv4 addresses are already scarce, this just makes it worse.
Also, port 80 is a privileged port in unix (which does the lion's share of web hosting). That means you have to run web servers as root. That, in turn, defeats the unix security model, and requires hosting providers to either lock down their servers and give limited access to users (cPanel anyone?) or give customers root access to virtualized operating systems, which imposes a tremendous amount of overhead.
Virtual operating systems also impose a bunch of complexity at the networking level, with a pool of IP addresses get dynamically assigned to VMs as they come and go, DNS changes (with all the TTL issues that go along with that), switch configuration etc.
These problems are all solvable and indeed solved, by really clever modern technology. The point is that it's all unnecessary. If browsers did SRV lookups, we could still be hosting like it's 1999, and putting all the tremendous progress we've made in the last 20 years into making it cheaper, faster, easier and more secure to build and run a web site. People that support the "open web" as opposed to "just make a Facebook page" should advocate for SRV support in HTTP.
This doesn't actually have to be "forced" on users of the web - it'd have to be forced on browser implementors, hosting providers and web site operators. If the transition was handled well, users wouldn't even notice.
The first: it's true that only one (privileged) process can bind port 80 on a host. But that process can simply do what most front-end webservers do now, and reverse proxy to any number of other local hosts. IP addresses can be demultiplexed through the Host header, the way they have been for decades. That makes this a systems design problem, and not something that needs to be exposed in the standards.
Second, even if you could transparently run websites on port 9999, that wouldn't change the fact that a good number of networks filter everything but ports 80 and 443. Universal network accessibility would still put ports 80/443 at a premium.
It's be useful in cases where you have one organization that hosts multiple domains. Then you just configure your server to handle this domain this way, and that domain that way, etc.
But it doesn't help the cases where you want to host multiple, unrelated websites on one server. Let's say Acme Widgets has a static site that just serves files off the filesystem, but they've got a bunch of rewrite rules to handle legacy urls. Umbrella corp wants to run a node backend. To get that to work, you need to agree on a server that will handle the requests. Everybody needs to be able to configure it to their liking, which leads quickly to the cPanel scenario I mentioned above. Or, hey, we can automatically configure the shared server as a proxy and let everybody run their own servers on non-privileged ports! That works, but it introduces unnecessary overhead in terms of memory, CPU, SPOF, latency, configuration etc. It would be better to just have the browser connect directly to those unprivileged ports!
tptacek brings up the good point that lots of networks block connections on ports other than 80 and 443. That's true, but it's because of the fact that HTTP essentially has to use those ports. If the web started working on other ports, that would change. Slowly, yes. Port 80 would have a special status for a long time. But if the standards did support other ports, network administrators would have a hard time answering "Why can't I connect to acme.com?" with anything other than "oops, let me fix that". This would be a way easier transition than say, switching to IPv6.
Finally, I'll reiterate that none of these problems are insurmountable. The web exists because we've found ways to work around them. A lot of use make a living doing just that. But that doesn't mean this is the best way of doing things, or that the work-arounds have no cost.
Huh? This isn't true. A webserver can just look at the host header in a HTTP request and return a response for the appropriate domain.
Apex CNAMEs can be worked around in the server software - just dynamically resolve it into an IP. Cloudflare does this, for instance.
If you want to run a web server on port 80 without the server having root access there's many ways to do that, the firewall can rewrite the packets so they go to a different port, you can give the web server the right to open port 80 without root privileges, you can proxy the requests etc.
NVDA and Windows's Narrator are already probably good enough but JAWS is better. VoiceOver is built into macOS and iOS and is beyond good enough.
Browsers can do a better job of exposing semantics through accessibility APIs to assistive technology [0]. Browsers could also intelligently make up for the failings of web sites; e.g. when a site uses a div with a click event instead of a button element, present it as a button through the accessibility API based on heuristics. Browser rendering engines already do a lot to visually compensate for errors in HTML, they could do the same for some semantic errors.
And, I mean, there are accommodations and assistive technology built into the standards. It's just nowhere near as widespread as it should be, in terms of usage, and it's always an afterthought (if it is thought of at all) in frameworks and HTML templates and such. And, because most of the time an inaccessible site or app is so inaccessible as to prevent anyone who would notice from getting far enough in to complain. So, we need good tools for knowing when our stuff is broken from an accessibility standpoint.
I think what I'm getting at is that it should be easy to see errors in accessibility, and maybe search engines should favor sites that at least make an effort.
Search engines giving more accessible sites a "buff" as Google now does for HTTPS sites is a good idea. They already do in a small way in that having things like proper headings are good for SEO but they could go much further.
Google has their own Accessibility Developer Tools [0] add-on, they could make it a default part of Chrome Dev Tools and make it more prominent.
https://chrome.google.com/webstore/detail/accessibility-deve...
This would have a meaningful impact on the lives of many in an underserved community.
Require Facebook login for everything. Just don't serve the content without a Facebook login. Can use DPI at the network layer to help enforce.
Add phone-home features to CPUs to make them turn off 6 months after product introduction. Everyone ought to be buying a new computer every 6 months.
Disallow email addresses ending in anything other than @gmail.com.
Rewrite everything in a memory-safe language such as PHP. Eventually this can be enforced at the OS level.
You had me going for a minute.
MIME is a format that can contain html/css/script/images/etc in single file (or stream).
Thus the whole web application can be served as a single stream by the server.
Yet emails (that are MIME files) can be opened by browsers as natively supported documents.
[1] MIME : https://tools.ietf.org/html/rfc2045
The world truly would be a better place.
Noone will stop using javascript based on what I do locally.
I don't know how this could be implemented though
But I could entirely see a little privacy "eye" icon in the URL bar of Firefox, similar to the padlock icon we have now for HTTPS/certificates.
The eye could turn red and display text for the site you are visiting based on analytics, beacons, web bugs, and so on.
Or how about major social media sites have their icons placed in the URL bar if they have trackers / social media widgets on the current page. This way, it is made explicitly clear to the user that "{Insert social platform here} is tracking you on this page, even while you are logged out, don't have an account, ..."
The difficulty with having the browsers force the standard is getting Google Chrome on board, since they have so many users.
- Being able to prosecute any company that stores passwords in plain text
- never disable paste on a password field.
Better to have a minimum password entropy.
I said nothing at all about minimum password lengths, and that's deliberate, it's a separate kettle of worms.
The basic idea is, the server gives a unique nonce with the password form. The user enters their password. On form submit, the browser stretches the key space of the password using a slow hash, then uses the digest to generate an asymmetric key via a referentially transparent algorithm (no random salts). Then the browser prepends the URL (obtained from HTTPS) to the given nonce (to prevent man in the middle attacks). The browser then checks to see if it has seen this nonce before and displays an error if it has (to prevent replay attacks--this forces servers to generate new nonces, although the browser can't force them to verify that the nonce that is signed later is the same one they sent). Finally the browser uses the key to sign the nonce, and sends the signature to the server. The server uses the public key (which was generated in the same way and given to the server at sign-up) to verify that the user has the password.
How do you break through the chicken and egg problem of not enough users using or not enough browsers supporting this capability?
<input type='password' password-nonce='42'></input>
Browsers that support the password-nonce argument sign as I described. Browsers that don't support it pass through the password and the server performs the ZKPP key generation (this is no worse than the current system of hashing passwords). So servers can implement this immediately without worrying about breaking in non-supporting browsers.
After adoption by a few major sites, browsers can add a warning that the server didn't send a password nonce and the password will be passed to the server so the user has to click "Okay" before it gets submitted. This can be escalated to more severe messages to pressure more sites to comply.
Governments are one such large customer.
Vendors, faced with multiple customers requesting a feature, but with slightly varying specifications, will tend to seek a mutually acceptable spec.
And the death penalty to any company that emails you your plaintext password (and even worse, the email tells you to "protect your password").
Is the password known?
Any sort password is know. There are lists of millions of known passwords.
Better would be to get away from passwords entirely.
NB: I've been checking the xkcdpass utility (available on Debian). Generated 50 sets of 100,000,000 passwords each, comprised of six words (the default), then sorted these uniq, and counted the output lines.
Any duplicates would result in fewer than 100,000,000 lines.
All fifty trials had no dupes.
Took most of a week to run that, on an older box :)
Standardised metadata. Pages should have title, author, publication date, modification date, publisher, at a minimum. Some form of integrity check (hash, checksum, tuple-based constructs, ...).
User-specified page styling. If I can load a page in Reader Mode, https://outline.com, or Pocket, I will (generally in that order). Every page having some stupid different layout or styling is a bug, not a feature. Web design isn't the solution, Web design is the problem. Users could specify their default / preferred styling. Night mode, reader support, etc., as standards.
Fix authentication. PKI or a 2FA based on a worn identification element (NFC in a signet ring with on-device sensor is my personal preference), if at all possible. One-time / anon / throwaway support.
Reputation associated with publishers and authors. Automated deprecation of shitposting users, authors, sites, companies.
Discussion threads as a fundamental HTML concept.
Dynamic tables: Sort, filter, format, collapse fields, in client. Charting/ploting data would be another plus.
Native formula support.
Persistent local caching. Search support.
Replace tabs with something that works, and supports tasks / projects / workflows. (Tree-style tabs is a concept which leans this way, though only partially).
Fix-on-reciept. Lock pages down so that they are no longer dynamic and can simply be referred to as documents. Save to local storage and recall from that to minimise browser memory and CPU load.
Export all A/V management to an independent queueing and playback system.
- Typed javascript should be built-in in browsers. (Typescript)
TypeScript is great, but all the configurations and transpiling is a pain.
Typescript should be compileable into WebAssembly bytecodes and that's it.
If you want it to be transparently compileable, like foo.ts to be sent as WA bytecodes then something like mod-typescript (on the fly typescript compiler) can be designed that will send (compiled and cached) bytecodes.
And deferring the transpiling to the browser won't really accomplish much, except increase load time for all users.
I'm currently working on a project with ~500KLOC of typescript, and transpiling it takes about 15 seconds on my devbox. It's still a bit too slow for my taste but I don't think there is a technical quick fix for this kind of stuff, rather it's a tale about a project which started small, organically grew larger over time, and would in many ways benefit from a clearer structure with clear dependencies.
None of that should work. Ads shouldn't be able to inject their own JavaScript into a page. There's a technical solution to that problem.
Let's narrow down the scop of things an ad needs to do (display an image, maybe play sounds and videos (after user clicks on them), and send back a reasonable amount of tracking data, etc). Then let's come up with a sandboxed DSL for ad networks to specify their ads. Web sites could embed those ads inside an <ad> tag that sandboxes that content and makes sure only supported functionality is being used.
Then I can turn off my ad blocker and not have to worry about all the security issues that unscrupulous ad providers bring with them today.
Let me ask it a different way - do you have any reasonable expectation that your proposal will ever be accepted? That browser manufacturers will implement things to limit or block the functionality of js? Where would the line be drawn (and who would draw it) between the so-called web apps and everything else that isn't worthy?
There already are some mechanisms in place to decentivize misbehaving websites such as the google rankings. But thats a far cry from a browser not supporting or displaying some warning when viewing one of those sites.
Maybe im missing something - that there are these required sites that are misbehaving and we need some regulatory power to rein them in.
There are hundreds of pie in the sky suggestions being floated here, and the one about javascript is the one you choose to attack with this argument?
JavaScript has unequivocally made the web worse for everyone but advertisers and perhaps the people that run CDNs.
Why, of all the proposals here, are you trying to shit on this one on particular?
Honest question.
Do you really think this is defensible? That the web would be as popular or useful as it is today without the ability to run code in the browser? I'm curious if you think there is a majority of people that agree with this?
> Why, of all the proposals here, are you trying to shit on this one on particular?
I am not shitting on anyone - im trying to have an honest discussion about why you and the OP feel that javascript is such a scourge that it needs to be regulated. Not one person has addressed even one of my questions, you included. I'm sorry you're taking my challenge as hostility - its not intended that way.
I submit that its possible I am missing something - perhaps there is situations out there that I don't have to deal with. I'm asking for an honest view point that I can try to understand.
> ... pie in the sky ...
Theres a difference between "here's something thats easily accepted is a good idea but might be difficult to implement" and this. I'm asking for an explanation of the premise itself.
Maybe im missing something
You definitely are. Disable js and try browsing. Note the quadrupled battery life in your laptop.Again, arent you capable of choosing the websites you use? Are there websites you are required to spend extended amounts of time with that you want the browsers to step in and force them to use less javascript?
Jaron Lanier explains... https://www.youtube.com/watch?v=bpdDtK5bVKk&feature=youtu.be...
As for topic, I would like to see all mails clients rendering emails same god damn way.
>hello
>>my name is bill
>>>i'd like to have a meeting
>>>>please provide your availability
>short
>>>>line that got moved because a word exceeded some unknown column
>boundary.
>>>>This isn't cool anymore, and anyone that implements it should be
>shot.
This works in some instances.
Not so much in others.
If its an open standard, mobile-view and other stuff can be progressively added to websites in a variety of ways: built-into browsers, polyfills or open source libraries, and lead to a much better web experience across devices. Aggregator startups and apps would stand to benefit a lot by this.
A move to federated identity, with a standardized API, and integration with the browsers, would fix all these issues. You could easily use a federated identity provider with support for 2FA, and ALL your accounts would immediately work with 2FA.
And, with federated identity, you can also run your own, if you don’t trust Google or Facebook login.
Sounds like OpenID...which was kind of a train wreck.
One middle ground could be tighter integration between browsers, sites and password managers. With the right specification, sites could offer a "register with [1Password,KeePass,LastPass,etc]" button which would open the password manager and pre-fill all the fields from a password manager's identity record (i.e. if a user has multiple identity records, the password manager can prompt for the one to use.) If there's a need to choose a username, there should be a standard endpoint for checking uniqueness. Once all information is filled out, the password manager can generate a password based on the site's specifications, post the information back to the site, store the account details and the site's ToS in its database and update the browser page to the success url. There can also be a standard endpoint for password rotation so the password manager can periodically update the password without the user's involvement.
This would still use passwords and for those that explicitly don't want to use a password manager, they could continue doing things the current way. But for the majority of us, it would be just like what you're talking about except that our identities would be stored locally in our password managers, giving us complete control over everything while automating as much as possible.
No.
We’ve solved all these issues before, OpenID was a good solution, and OpenID Connect – a complete rewrite – can be used to replace it, and is used already for Google and Facebook login.
Just use OIDC, on every page, and allow users to choose an identity provider. Problem solved.
Ugh...no. Just no. If you believe that, I'm not sure there's anything I can say that will get through to you...we're just going to have diametrically opposed opinions. But let me tell you that I've implemented it quite a few times on various sites and it's been a nightmare every time, so it's not like my 'half-assed' approach was ignorant of it being an option. It was based on specifically discarding that option as poorly conceived, poorly implemented and simply not being an option in many cases. Banks, for example, should never let a 3rd party IDP be part of their authentication process. And if your solution is inapplicable in situations where tight security is required, you've got to ask yourself whether you're actually solving the problem or just requiring users to be aware of two different ways of logging in instead of the one that they currently understand. Even if they do have to remember different passwords for most sites, most people can deal with username/password conceptually in a way that using a third-party IDP confuses them.
If the spec had byte-for-byte specification for what happened when, this would be fine, and of course that is the case for say, JSON, which has remained roughly the same since inception. But given how fast CSS and JS are moving, it would be painful to do this same thing with either of those.
XHTML did this with HTML, but it kind of sucked because some browsers would reject what others would accept in some edge cases, and that is terrible. Plus, there's already a lot of bad HTML in the wild and XHTML casted some doubt on our ability to maintain a major HTML compatibility break.
Then the user needs to update their browser. It's pretty inexcusable these days to not keep your browser up-to-date, and browsers tend to support new language specs before those specs get widespread usage.
'widespread'
This would kill off new features, basically. No-one would implement a new feature, because it would kill off their users in $other_browsers completely, and browsers add new features piecemeal - without seeing which features are popular, there's no way to tell what is best bang-for-buck to work on.
Following that maxim, browser developers assumed that, even if HTML wasn't inherently correct, if they could figure out what the user logically meant then assuming that was better than not working at all.
In short, people wrote garbage HTML and it proved easier to fix browsers than people. At first, it wasn't too problematic, but as HTML got more complex more problems surfaced and now everything is a mess.
This was the goal of XHTML: HTML that was required to validate as XML or it wouldn't work at all, and some browsers were, indeed, strict at this. The idea was that you'd only use XHTML if you were generating it with an XML parser or some other template generator that could produce valid code. In reality, that just meant that browsers that didn't understand XHTML treated it like HTML and worked, and browsers that did understand XHTML and validated it would show errors. Thus, users saw that browser X (doing the right thing) couldn't display a site, but browser Y (doing the wrong thing) could.
Since JS used to be "sugar on top", it wouldn't make sense to completely eliminate the page when that piece of code which makes a logo flash doesn't work right.
Also, you can have JS errors coming from loads of places. What if an extension you use has a bug in it that triggers only on certain sites because of some stupid unicode issue? What if some ad has an issue like that?
And basically, it really boils down to: we all ship buggy fucking software. Everything has some kind of a threshold for errors (or errors that blow up only under certain conditions). It's good to have some built-in fault-tolerance that prevents an all-out disaster.
Precisely what data is collected, a list of the 3rd-parties the data is sent to, the policies of those 3rd-party sites, how long the data is held at the primary domain, how long the data is held at the 3rd-party sites, options for requesting that such data be deleted.
Sites that act as a conduit for the collection and transmission of user data should be held accountable for the breach of such data.
http://www.mail-archive.com/cryptography@metzdowd.com/msg123...
https://www.schneier.com/academic/paperfiles/paper-ipsec.pdf
- Standardize on some sort of biometric identification that actually works. I HATE two-factor :(
2. Is biometric really necessary? U2F tokens already exist and are standardized (maybe not officially, I'm not sure). Chrome and Opera already support it, Mozilla's support must be coming soon (meanwhile you can use an add-on).
U2F dongles aren't much better.
Also, a quick glance at that link seems to indicate attacker needs some sort of MITM access? Is it anything more than a replay attack?
I've been looking for a site I can run this on over TOR at random times for reading news but I haven't found one.
The nice thing about doing it like this is that the file persists on disk so viewing a page is decoupled from fetching it (which is nice for a lot of reasons.)
Would be useful for things like free static HTML web hosts and CDNs for combating phishing.
Could be something put in CSP.
Each user can specify a maximum payment and can opt to view with ads if payment requested is too much.
Some thoughts:
- HTML and CSS are reasonable from an implementation standpoint: they have pretty rigid syntax (annotated tree of text, groups of name/value pairs) so user agents can ignore whatever they don't know/care about, and give reasonable results. Even if that's just a wall of plain text.
- Javascript is awful in this regard. It has masses of syntax, keeps changing, requires incredibly specific behaviour from a truckload of APIs and likes to silently bail out completely if one thing goes wrong.
Our notions of computation don't change all that much, and certainly not quickly. There's no reason to make every user agent understand all of the human-friendly bells and whistles that the standards bodies keep bolting on. Whilst "view source" is nice, these days we often need tools to undo minification and obfuscation; let alone the rise in compile-to-JS languages.
The standards should only dictate something that won't need to be changed for a long time; say, a pure, untyped, call-by-value lambda calculus, with literals for integers, strings and symbols. APIs can be defined as reduction rules involving the symbols; for example:
- Applications of the form '((+ x) y)', when x and y are integers, can be replaced by the sum of x and y.
- Applications of the form '(array 0)', can be replaced by an empty array value (defined elsewhere); applications of the form '((array 1) x)' can be replaced by an array value containing the single element x, etc.
- Applications of the form '((object 1) (keyvalue x y))' can be replaced by an object value, with the value y for property x, etc.
- Application of the form '(XMLHTTPRequest x)' where x is an object value with properties...
Executing such programs would, like with HTML and CSS, allow implementations to ignore whatever they don't know/care about. Expressions with no corresponding reduction rule just sit there unevaluated, whilst everything around them carries on as normal. Users could implement their own overrides for how things should rewrite; like user styles, but more pervasive. Sites could supply pure reduction rules as part of their code, to enable things like fancy control flow. Effectful reduction rules could be controlled at a fine-grained level by the user agent (and hence, the user). Programmers can write in whatever language they like and compile to this simple Web language. Since we're being ambitious, let's say they'll include links to the original source, under the AGPL ;)
Fancy, state-of-the-art browsers can come with a bunch of optimisations and tricks for faster parsing and evaluation of common code patterns. They can also define their own libraries of symbols and rules, which are more amenable to optimisation (like asm.js); along with fallback "polyfills" which make them work (slowly) everywhere else.
We can probably do similar things for rendering, layout, etc. The clever, complicated algorithms dictated by the standards can be great when we've got a bunch of content and we'd like the user agent to display it in a reasonable way. On the other hand, if we've got some exact output in mind, we should be able to describe it directly, rather than second-guessing and working around those algorithms. All of this can go into libraries, leaving the "core" alone.
There's always the danger of turning the Web into the equivalent of obfuscated PostScript: a blob of software that, when executed, renders an image of the text, etc. content. However, I think that's mostly down to the choice of what APIs are included by default. If the default behaviour is similar to today's browsers: take text from the document and lay it out in a readable way; allow headers, emphasis, etc. using annotations, and so on, then I'm sure most would do that, ensuring the text and other content is easily parsed, indexed, etc.
Amazon.com worked fine from 1995 to 2016 with HTTP (only the login page was HTTPS).
If you have a crappy ISP like Verizon or whatever, it's your own personal problem - 99% of the web user don't care about your problem. Maybe use a VPN to somewhere to an ISP you can trust.
I stopped using Firefox because they turned mad. Chromium with some custom patches seems like a far better solution nowadays. Yet I see Google is too trying to destroy the open web with their PWA/AMP monoculture that is favored and listed on top of search results.
We need the EFF and other "good" foundations to lobby for the end user - too many shady and corporate entities lobby against the end user, unfortunately.