Editing
Security
(section)
From Greasespot Wiki
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== unsafeWindow == Wrapping the [[user script]] environment this way creates a [[sandbox]]. This sandbox introduces many side effects and limitations. To allow maximum flexibility for [[user script]] authors, the <code>[[unsafeWindow]]</code> property was added in to the sandbox. The <code>window</code> object functions as the global scope in JavaScript. For [[user script]]s, this global window option is in fact a "deep wrapper" of the content window. The content window can be accessed by [[user script]]s, but only indirectly through the wrapper. The <code>unsafeWindow</code> property is a direct line to the actual content window. Use of the <code>unsafeWindow</code> property should be avoided whenever possible. Its use has the potential to open up all the original security holes that introducing the [[XPCNativeWrapper]]s fixed. When a [[user script]] relies on the <code>unsafeWindow</code> property, it should be included only on trusted pages, and even then is not guaranteed to be safe.
Summary:
Please note that all contributions to Greasespot Wiki are considered to be released under the GNU Free Documentation License 1.3 or later (see
Greasespot Wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Page actions
Page
Discussion
Read
Edit
History
Page actions
Page
Discussion
More
Tools
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Navigation
Main Page
Recent changes
Random page
Search
Tools
What links here
Related changes
Special pages
Page information