by onion2k · 6y ago · 0 comments
data:text/html,<script>alert('pasting code from the internet in to your address bar should not be encouraged');</script> javascript:alert(document.cookie)1. It strips the JavaScript: part away if I just paste it once
2. Even if I re-add it manually, it still does no alert
Ergo, a sane browser can be quite sandboxed to avoid the average user to do stupid to easily.
So that's one difference. Not that the type of person to use NoScript would likely paste obvious javascript into the address bar...
Edit: Doesn't look like you can create a valid URL with that format, but it can be launched via pasting in (obviously), a bookmark (which the contents of which could be obfuscated by telling a user to drag an image to the bookmark bar and click it), and can be launched via command line, e.g.
start firefox "data:text/html,<script>alert('');</script>"