commit | 5dd78c188ba259d86af6ee12bb26fca4156880ae | [log] [tgz] |
---|---|---|
author | Sunny <ratsunny@gmail.com> | Mon Jun 25 00:15:26 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Mon Jun 25 00:15:26 2018 |
tree | a59e076523a07655f583295d3be3dc12ab77fa25 | |
parent | 7ed4cd1f125806d9c01e877bca5645bd10275fb3 [diff] |
Check browsing context before set document.domain According to spec[1], when document object doesn't have browsing context, it should throw a "SecurityError" DOMException. [1] https://html.spec.whatwg.org/multipage/origin.html#dom-document-domain BUG=850432 Change-Id: Ibc12decadb2405bb5f3b190d60ad65e1ee21303b Reviewed-on: https://chromium-review.googlesource.com/1112937 Reviewed-by: Kent Tamura <tkent@chromium.org> Commit-Queue: Kent Tamura <tkent@chromium.org> Cr-Commit-Position: refs/heads/master@{#569942}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .