Changeset 248709 in webkit
- Timestamp:
- Aug 14, 2019 11:20:11 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JSTests/ChangeLog
r248694 r248709 1 2019-08-14 Mark Lam <mark.lam@apple.com> 2 3 ProxyObject should not be allow to access its target's private properties. 4 https://bugs.webkit.org/show_bug.cgi?id=200739 5 <rdar://problem/53972768> 6 7 Reviewed by Yusuke Suzuki. 8 9 * stress/proxy-should-not-be-allowed-to-access-private-properties-of-target.js: Added. 10 * stress/proxy-with-private-symbols.js: Rebased. 11 1 12 2019-08-14 Mark Lam <mark.lam@apple.com> 2 13 -
trunk/JSTests/stress/proxy-with-private-symbols.js
r198813 r248709 82 82 threw = true; 83 83 } 84 assert( !threw);84 assert(threw); 85 85 assert(!sawPrivateSymbolAsString); 86 86 sawPrivateSymbolAsString = false; -
trunk/Source/JavaScriptCore/ChangeLog
r248697 r248709 14 14 15 15 * API/WebKitAvailability.h: 16 17 2019-08-14 Mark Lam <mark.lam@apple.com> 18 19 ProxyObject should not be allow to access its target's private properties. 20 https://bugs.webkit.org/show_bug.cgi?id=200739 21 <rdar://problem/53972768> 22 23 Reviewed by Yusuke Suzuki. 24 25 * runtime/ProxyObject.cpp: 26 (JSC::performProxyGet): 27 (JSC::ProxyObject::performInternalMethodGetOwnProperty): 28 (JSC::ProxyObject::performHasProperty): 29 (JSC::ProxyObject::performPut): 30 (JSC::ProxyObject::performDelete): 31 (JSC::ProxyObject::performDefineOwnProperty): 16 32 17 33 2019-08-14 Mark Lam <mark.lam@apple.com> -
trunk/Source/JavaScriptCore/runtime/ProxyObject.cpp
r247811 r248709 1 1 /* 2 * Copyright (C) 2016-201 7Apple Inc. All Rights Reserved.2 * Copyright (C) 2016-2019 Apple Inc. All Rights Reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 144 144 145 145 if (propertyName.isPrivateName()) 146 return performDefaultGet();146 return jsUndefined(); 147 147 148 148 JSValue handlerValue = proxyObject->handler(); … … 215 215 216 216 if (propertyName.isPrivateName()) 217 RELEASE_AND_RETURN(scope, performDefaultGetOwnProperty());217 return false; 218 218 219 219 JSValue handlerValue = this->handler(); … … 324 324 325 325 if (propertyName.isPrivateName()) 326 RELEASE_AND_RETURN(scope, performDefaultHasProperty());326 return false; 327 327 328 328 JSValue handlerValue = this->handler(); … … 426 426 427 427 if (propertyName.isPrivateName()) 428 RELEASE_AND_RETURN(scope, performDefaultPut());428 return false; 429 429 430 430 JSValue handlerValue = this->handler(); … … 629 629 630 630 if (propertyName.isPrivateName()) 631 RELEASE_AND_RETURN(scope, performDefaultDelete());631 return false; 632 632 633 633 JSValue handlerValue = this->handler(); … … 828 828 829 829 if (propertyName.isPrivateName()) 830 return performDefaultDefineOwnProperty();830 return false; 831 831 832 832 JSValue handlerValue = this->handler();
Note: See TracChangeset
for help on using the changeset viewer.