mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-18 05:00:48 +01:00
Fix crash caused by V8Proxy::retrieveFrameForCallingContext() returning 0 in V8DOMWindowCustom::handlePostMessageCallback (issue #436).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@397 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
559caafd1d
commit
d351bc538c
@ -21,6 +21,11 @@ patches = [
|
|||||||
'name': 'tools_gyp',
|
'name': 'tools_gyp',
|
||||||
'path': '../tools/gyp/',
|
'path': '../tools/gyp/',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
# https://bugs.webkit.org/show_bug.cgi?id=73273
|
||||||
|
'name': 'v8_custom',
|
||||||
|
'path': '../third_party/WebKit/Source/WebCore/bindings/v8/custom/'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
# http://code.google.com/p/chromiumembedded/issues/detail?id=364
|
# http://code.google.com/p/chromiumembedded/issues/detail?id=364
|
||||||
'name': 'spi_webcore_364',
|
'name': 'spi_webcore_364',
|
||||||
|
17
patch/patches/v8_custom.patch
Normal file
17
patch/patches/v8_custom.patch
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
Index: V8DOMWindowCustom.cpp
|
||||||
|
===================================================================
|
||||||
|
--- V8DOMWindowCustom.cpp (revision 100508)
|
||||||
|
+++ V8DOMWindowCustom.cpp (working copy)
|
||||||
|
@@ -291,8 +291,11 @@
|
||||||
|
static v8::Handle<v8::Value> handlePostMessageCallback(const v8::Arguments& args, bool doTransfer)
|
||||||
|
{
|
||||||
|
DOMWindow* window = V8DOMWindow::toNative(args.Holder());
|
||||||
|
+ Frame* frame = V8Proxy::retrieveFrameForCallingContext();
|
||||||
|
+ if (!frame)
|
||||||
|
+ return v8::Undefined();
|
||||||
|
|
||||||
|
- DOMWindow* source = V8Proxy::retrieveFrameForCallingContext()->domWindow();
|
||||||
|
+ DOMWindow* source = frame->domWindow();
|
||||||
|
ASSERT(source->frame());
|
||||||
|
|
||||||
|
// This function has variable arguments and can either be:
|
Loading…
x
Reference in New Issue
Block a user