WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 135250
Creating a JSGlobalObject with a custom JSClassRef results in a JSProxy with the wrong prototype
https://bugs.webkit.org/show_bug.cgi?id=135250
Summary
Creating a JSGlobalObject with a custom JSClassRef results in a JSProxy with ...
Mark Hahnenberg
Reported
2014-07-24 13:03:57 PDT
JSGlobalObject::resetPrototype (which is called from JSGlobalContextCreateInGroup) doesn't change its JSProxy's prototype as well. This results in a JSProxy where no properties in the original prototype chain (as created from the JSClassRef hierarchy) are accessible.
Attachments
Patch
(15.87 KB, patch)
2014-07-24 13:13 PDT
,
Mark Hahnenberg
no flags
Details
Formatted Diff
Diff
Windows fix
(15.93 KB, patch)
2014-07-24 15:33 PDT
,
Mark Hahnenberg
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Mark Hahnenberg
Comment 1
2014-07-24 13:13:21 PDT
Created
attachment 235452
[details]
Patch
Mark Hahnenberg
Comment 2
2014-07-24 13:14:06 PDT
<
rdar://problem/17706699
>
WebKit Commit Bot
Comment 3
2014-07-24 13:14:54 PDT
Attachment 235452
[details]
did not pass style-queue: ERROR: Source/JavaScriptCore/API/tests/CustomGlobalObjectClassTest.c:26: Found header this file implements before WebCore config.h. Should be: config.h, primary header, blank line, and then alphabetically sorted. [build/include_order] [4] ERROR: Source/JavaScriptCore/API/tests/CustomGlobalObjectClassTest.c:79: Declaration has space between * and variable name in char* buffer [whitespace/declaration] [3] Total errors found: 2 in 9 files If any of these errors are false positives, please file a bug against check-webkit-style.
Geoffrey Garen
Comment 4
2014-07-24 13:40:32 PDT
Comment on
attachment 235452
[details]
Patch r=me
Mark Hahnenberg
Comment 5
2014-07-24 15:33:57 PDT
Created
attachment 235466
[details]
Windows fix
WebKit Commit Bot
Comment 6
2014-07-24 15:35:17 PDT
Attachment 235466
[details]
did not pass style-queue: ERROR: Source/JavaScriptCore/API/tests/CustomGlobalObjectClassTest.c:26: Found header this file implements before WebCore config.h. Should be: config.h, primary header, blank line, and then alphabetically sorted. [build/include_order] [4] ERROR: Source/JavaScriptCore/API/tests/CustomGlobalObjectClassTest.c:79: Declaration has space between * and variable name in char* buffer [whitespace/declaration] [3] Total errors found: 2 in 9 files If any of these errors are false positives, please file a bug against check-webkit-style.
Mark Hahnenberg
Comment 7
2014-07-24 15:56:29 PDT
Committed
r171543
: <
http://trac.webkit.org/changeset/171543
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug