projects
/
platform
/
framework
/
web
/
crosswalk-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77253ab
)
:memo: Notice on `sandbox` attribute.
author
Cheng Zhao
<zcbenz@gmail.com>
Tue, 4 Mar 2014 13:34:14 +0000
(21:34 +0800)
committer
Cheng Zhao
<zcbenz@gmail.com>
Tue, 4 Mar 2014 13:44:15 +0000
(21:44 +0800)
docs/api/browser/browser-window.md
patch
|
blob
|
history
diff --git
a/docs/api/browser/browser-window.md
b/docs/api/browser/browser-window.md
index ce019154a4dd3643b6bb6b254a0b316f62a7c63f..43ef062c3e5dc04c2ec8166ab9750c9ef6465dfe 100644
(file)
--- a/
docs/api/browser/browser-window.md
+++ b/
docs/api/browser/browser-window.md
@@
-66,6
+66,14
@@
An example of enable node integration in iframe with `node-integration` set to
<iframe src="http://jandan.net"></iframe>
```
+And you should also notice that the iframes can have access to parent window's
+javascript objects via `window.parent`, so in order to grant complete security
+from iframes, you should add `sandbox` attribute to the iframes:
+
+```html
+<iframe sandbox="allow-scripts" src="http://bbs.seu.edu.cn"></iframe>
+```
+
### Event: 'page-title-updated'
* `event` Event