I've just copy paste and run through the Scratchpad a code form the source code of a website.
I want to know if this code has more privileges when it runs through the Scratchpad of Firefox or has the same privileges as when it runs directly through the webpage.
Before pasting on Scratchpad Firefox alerts this message:
Scam Warning: Take care when pasting things you don't understand.
This could allow attackers to steal your identity or take control of your computer.
I know that there are javascript exploits that could run through a website but..
The message from Firefox seems like:
"The javascript on Scratchpad has more privileges than a Javascript of a webpage and the attackers can steal without exploits, just with standar code"
Is it true?
The same code can act differently from a website and differently from the Scratchpad in terms of security?
Or it's just like including it inside the html, with all safety measures that has the javascript inside a website?
Why Firefox alert us on Scratchpad about something that could be done anyway just by visiting a malicious webpage (potential javascript attack)?