7 ms·
Microsoft Edge Experimenting with a Super Duper Secure Mode
- nwah1 5y agoThis is actually really interesting. Bravo to the Edge team. And if I remember correctly, writeable memory pages were the main reason why iOS banned browsers like firefox from embedding their own rendering engines. Perhaps this kind of approach could address such concerns and enable other rendering engines.
- habitue 5y agoWell, like the real reason is that the web is a threat to the app store. So, likely we'd just see some new excuse (if they even bother)
- omk 5y agoIronically, in the early days Apple was redirecting developers to the web to build apps for the iPhone. But then it seems they discovered a money minting model.
- cube00 5y agoAlong with a vendor lock in model
- gbrown 5y agoHow haven’t they been hit with antitrust action over that?
- JetSpiegel 5y agoThe antitrust laws are a dead letter. Facebook buying two of their competitors resulting in crickets.
- beefjerkins 5y agoI'm surprised at how little regressions there were in the tests they run, given they completely disabled JIT. This could be very useful as a default 'mode' for websites, with JIT able to be turned on for trusted websites if the user would like more performance.
- rhdunn 5y agoThey did note that the JavaScript benchmarks were reduced by upto 58%, while noting that users won't generally notice the difference. I would be interested to see how this affects the performance of websites that make use of complex JavaScript for things like charting/visualization (like the D3.js demos, or online formulae graphing tools), audio waveform rendering/processing, games, and other complex uses of JavaScript (including things like vue, react, bootstrap or other JavaScript UI frameworks).
- hawk_ 5y agoI know where you're going but this can easily turn upcoming players into second class, further reinforcing big tech monopoly.
- Retr0id 5y agoAssuming "trusted websites" is a user preference, why should it matter?
- vladvasiliu 5y agoBecause "defaults are forever" or something like that. Most people won't alter those settings, so whatever is "trusted by default" will run faster. The average user will just note that some sites are very fast, while others are very slow.
- Vinnl 5y agoBasically what you see for instant messengers on Android: phones usually come with battery savings exceptions for WhatsApp, so when people install Signal, it looks bad for not delivering messages as reliably as WhatsApp.
- tinus_hn 5y agoInteresting but I am not a fan of how they don’t mention disabling features like WebAssembly in the short description.
- asiachick 5y agothey did mention it in the long description. It's off for now but they are planning on turning it on. I'd guess it's safer than JIT because the translation to assembly is simple, or can be simple. It's not trying to do the complicated process of analyzing a dynamically typed language and applying different ways of optimizing.
- tinus_hn 5y agoI’m sure there’s a great reason but the policy description reads like ‘turn this on for more security and no important downsides’ > Disables the JIT and enables new security mitigations to provide a more secure browsing experience - Windows
- csande17 5y agoI bet they'll end up using a pure bytecode interpreter for Web Assembly as well, that just runs the operations one by one instead of converting them to machine code. It'd be the same "slower but safer" trade-off that the mode uses for regular Javascript.
- high_byte 5y agoNo change in performance? I'm in, but I don't see any chrome://settings or chrome://flags for this? neither Brave, Chrome nor Edge
- deleted 5y ago[deleted]
- arthurfm 5y agoIn Edge Canary, Dev or Beta, go to: edge://flags/#edge-enable-super-duper-secure-mode
- heisenbit 5y agoWeb pages where compilation costs and benefits are short may be one thing. But what about cached code? And what about real applications running in the browser?
- nicce 5y agoWe have come a long road to establish transparent protocols to run stuff on our browsers (HTML, JavaScript, CSS, JSON, HTTP protocol), yet we are going to towards compiled binary code, towards black-box schema. The users will have less power of the content on their browsers with compiled code and something like ad blockers become challenging to implement again. I'm not really big fan of this trend. For example Google Docs is being rewritten to use canvas and who knows what it actually does behind the scenes.
- pjmlp 5y agoBecause the Web should never had turned into a general purpose VM, HTML 4 was more than enough for interactive documents. For something we do have networking protocols.
- pjmlp 5y agoBack to native applications with standard networking protocols.
- fwsgonzo 5y agoThis reminded me of my experience handling the frontend side of Varnish using a RISC-V emulator. The most important thing is that the emulator is quick to bring up and quick to tear down. Almost zero syscall (10ns) and vmcall (4ns) overhead. So, if nobody is doing any heavy computation, the most important things are getting the base overheads down. For example, the RISC-V emulator could handle the full frontend pipeline side in less than 1 microsecond. That's going to be hard to beat. I wonder if the same could apply to a standard website for a simpler kind of WebAssembly emulator instead of JavaScript? And by that, I mean replacing JavaScript with WebAssembly completely, and just make all the tooling necessary to make it nice and easy.
- tester34 5y agoHow about going further Disabling CPU's speculative execution on untrusted code (browser) too
- deleted 5y ago[deleted]
- rocqua 5y agoIf your javascript is no longer getting compiled down to bytecode any kind of speculative execution is going to be soooooooo much harder to do that I think disabling the JIT is probably the most effective spectre-like mitigation a browser could do.
- ho_schi 5y agoI dare it - turn off JavaScript!? Websites doesn't require JavaScript, what really needs JavaScript are Singe-Page-Web-Apps-Somethings with anti-patterns like infinite scrolling. You get two things in return, a "super duper" fast web and a more secure web-browser. For example Amazon supports usage without JavaScript very well. Another experience is Stackoverflow, things like the preview and highlighting doesn't work. The highlighting can be added with server-side code but this will cost some CPU-Time - and it is not your CPU-Time. It is their CPU-Time? There is tiny feature I would appreciate in HTML-Engines "copy link to location" instead of using JavaScript - but there is this usable hierarchical address-bar a the top (which Google tries to hide) which already serves this purpose. I'm not against JavaScript. JavaScript is just a tool but I ask the question if good websites require it? Hackernews uses 134 lines of JavaScript, this is alredy nearly nothing. Can you imagine using Hackernews without JavaScript? My webbrowser (WebKitGtk) provides a permission panel for every website: * advertisements * notifications * password * location * microphone * webcam * media A first step would be adding there JavaScript, too? Maybe some nasty Cookie-Dialogs will disappear as consequence. But that is not a loss?
- bob1029 5y agoI'm 100% on board with this line of thinking, but the edge case that the business keeps complaining about is being able to push async events to the client. How would we accomplish this sort of UX without javascript?
- saurik 5y agoI think the argument is that while a good amount of my daily web browser usage might like that feature (as I do in fact use it as an application sandbox), a vanishingly small number of the separate web sites I visit on any given day (which are all one-off pieces of content I am accessing) need that to functionality, and I can whitelist them by turning JS on for them, as they are also pretty much the same few websites every day.
- roenxi 5y agoThat ... is an interesting question that is not really a problem for someone who wants to browse the web without JavaScript. Which is almost the only person whos choice really matters when it comes to user security. Some sites I've accidentally browsed without NoScript makes me question how people access sites with JS enabled at all. There are some shockers out there.
- mwcampbell 5y agoI wonder if this change will make it much harder to exploit sandbox escape vulnerabilities, which IIUC are in the main browser process, not the renderer process. What is the impact of those vulnerabilities compared to ones in the renderer process?
- npteljes 5y agoThe name immediately reminded me of the "Oopsie whoopsie" meme from some time ago. https://knowyourmeme.com/memes/oopsie-woopsie https://knowyourmeme.com/memes/oopsie-woopsie
- jl2718 5y agoSo… JIT doesn’t actually improve performance. Nor does virtual DOM. What next? It seems like web browsers and frameworks are full of this cargo cult magic that doesn’t actually work, but must be used because everything else is built on top of it. When can we call this interpreted DOM experiment over and go back to compiled programs on a window API? It seems we’re headed there anyway with WebASM and WebGL, but every program has to carry its own UI services, kind of like video games in DOS, which is also right about where performance is today too.
- ToFab123 5y agoI have enabled this setting yesterday and I am unable to tell any difference when browsing my normal websites. I wonder why JIT was put on in the first place. I mean if it has little to none end-user impact when removing it. JIT sounds like a great deal of doing nothing except for creating 50% of all bugs. It this a case of JIT was meaningful when first introduced but overtime advances in other area has made this obsolete/redundant?
- thrill 5y ago"our tongue-in-cheek name will likely need to change to something more professional" I know, I know! "Super Duper Secure Mode For Professional Enterprise Datacenter Unlimited Seats"