2010-04-21 anton muhin <antonm@google.com>
authoreric@webkit.org <eric@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 21 Apr 2010 17:21:36 +0000 (17:21 +0000)
committereric@webkit.org <eric@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 21 Apr 2010 17:21:36 +0000 (17:21 +0000)
commit8c47adb299f491367257f5b7934da0a2c31f3da9
treed0c9a9ed91aa360493b7a4be127aad36c3623df9
parent773e8eb503a4b1411aa019611d43d428099699ba
2010-04-21  anton muhin  <antonm@google.com>

        Reviewed by Adam Barth.

        [v8] Bail out if fetching of Object.prototype fails.
        https://bugs.webkit.org/show_bug.cgi?id=37661

        If for any reason we failed to fetch Object.prototype, context cannot
        be properly initialized and we bail out.

        * bindings/v8/V8DOMWindowShell.cpp:
        (WebCore::V8DOMWindowShell::initContextIfNeeded): bail out if installHiddenObjectPrototype failed
        (WebCore::V8DOMWindowShell::installHiddenObjectPrototype): bail out if failed to fetch Object.prototype
        * bindings/v8/V8DOMWindowShell.h: return false if installHiddenObjectPrototype failed

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@57991 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/bindings/v8/V8DOMWindowShell.cpp
WebCore/bindings/v8/V8DOMWindowShell.h