• rafaelw@chromium.org's avatar
    Re-enable Object.observe and add enforcement for security invariants. · 1b270ef5
    rafaelw@chromium.org authored
    This patch reverts r21062 which disabled Object.observe and the relevant tests.
    
    It also adds enforcement for the following three invariants:
    
    1) No observer may receive a change record describing changes to an object which is in different security origin (context have differing security tokens)
    
    2) No observer may receive a change record whose context's security token is different from that of the object described by the change.
    
    3) Object.getNotifier will return null if the caller and the provided object are in differing security origins
    
    Further, it ensures that the global object can never be observed nor a notifier retrieved for it.
    
    Tests are included.
    R=verwaest@chromium.org, rossberg
    LOG=Y
    
    Review URL: https://codereview.chromium.org/265503002
    
    git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@21122 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
    1b270ef5
Name
Last commit
Last update
benchmarks Loading commit data...
build Loading commit data...
include Loading commit data...
samples Loading commit data...
src Loading commit data...
test Loading commit data...
tools Loading commit data...
.DEPS.git Loading commit data...
.clang-format Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
ChangeLog Loading commit data...
DEPS Loading commit data...
LICENSE Loading commit data...
LICENSE.strongtalk Loading commit data...
LICENSE.v8 Loading commit data...
LICENSE.valgrind Loading commit data...
Makefile Loading commit data...
Makefile.android Loading commit data...
Makefile.nacl Loading commit data...
OWNERS Loading commit data...
PRESUBMIT.py Loading commit data...
WATCHLISTS Loading commit data...
codereview.settings Loading commit data...