Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Why browsers are bloated

Name: Anonymous 2014-07-27 0:20

https://github.com/WebKit/webkit/blob/master/Source/WebCore/platform/Scrollbar.cpp
https://github.com/WebKit/webkit/blob/master/Source/WebCore/platform/win/ScrollbarThemeWin.cpp
Let's reinvent the fucking scrollbar, which every goddamn platform with a UI already has, and make it behave subtly different from the native one!

Right-click a native scrollbar in some other app:
- Scroll Here
- Top
- Bottom
- Page Up
- Page Down
- Scroll Up
- Scroll Down

Right-click a scrollbar in Chrome:
- Back
- Forward
- Reload
- Save As...
...

Right-click a scrollbar in Firefox and Opera:
Absolutely fucking nothing happens!

What the fuck!? How did these terminally retarded idiots get involved in creating one of the most important pieces of software to the average user?

Name: Anonymous 2014-12-30 18:31

>>526
SQL injection is a terrible example to bring up. If can be fixed with a library that escapes all strings. Don't allow the programmer to provide their own strings. Problem solved at the expense of efficiency and convenience.

otherwise why not just ring0 everything?
Some programs are malicious. If all programs shared memory, an unprivileged program could intentionally interfere with the memory of programs running under more privilege. Not every memory error is a bug.

Of course it doesn't matter in the hands of a True Master but you and I both know we're not True Masters.
Maybe not. But managed memory is not the only solution, and is not an adequate solution. There are still vulnerabilities in the support libraries. See java. See flash. Which is safer, running a 5K line C program or a 4K line java program that uses 100K lines of C/C++ in the standard libraries? Keep in mind these libraries are standard and studied by every hacker that targets java.

more magic means more ways things can go wrong. The more a language tried to do behind your back, the easier it is for things to slip by unnoticed.
There is the other side of the spectrum, where a language requires you to write so much the actual logic of what is happening is obscured.

Newer Posts