-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Form submission metadata should be limited to arrays, dictionaries, strings, data, and numbers #11399
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
EWS run on previous version of this PR (hash c1ea895) Details
|
c1ea895 to
9042f2f
Compare
9042f2f to
e3a8776
Compare
8ecd9d1 to
43d2f6b
Compare
|
EWS run on previous version of this PR (hash 43d2f6b) Details |
|
EWS run on previous version of this PR (hash 8ecd9d1) Details |
|
EWS run on previous version of this PR (hash e3a8776) Details |
|
EWS run on previous version of this PR (hash 9042f2f) Details |
43d2f6b to
08ec9f3
Compare
|
EWS run on previous version of this PR (hash 08ec9f3) Details |
08ec9f3 to
edb3062
Compare
|
EWS run on previous version of this PR (hash edb3062) Details
|
edb3062 to
1779a28
Compare
|
EWS run on current version of this PR (hash 1779a28) Details |
cdumez
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM if the bots are happy.
…trings, data, and numbers https://bugs.webkit.org/show_bug.cgi?id=253753 rdar://106585542 Reviewed by Chris Dumez. Instead of encoding any object using NSSecureCoding then decoding it and returning it to the API client, restrict the NSObject types to NSString, NSData, NSNumber, NSArray, and NSDictionary, which we convert to API::Object for serialization, then convert back to those types on the other side. Also make FormClient.m_controller and FormClient.m_webView WeakObjCPtr smart pointers instead of raw pointers. Also deprecate _WKProcessPoolConfiguration.customClassesForParameterCoder because it doesn't do anything any more. * Source/WebKit/Shared/API/APIObject.h: * Source/WebKit/Shared/Cocoa/APIObject.mm: (API::Object::toNSObject): (API::Object::fromNSObject): * Source/WebKit/UIProcess/API/APIProcessPoolConfiguration.cpp: (API::ProcessPoolConfiguration::copy): * Source/WebKit/UIProcess/API/APIProcessPoolConfiguration.h: * Source/WebKit/UIProcess/API/C/WKContextConfigurationRef.cpp: (WKContextConfigurationCopyCustomClassesForParameterCoder): (WKContextConfigurationSetCustomClassesForParameterCoder): * Source/WebKit/UIProcess/API/C/WKContextConfigurationRef.h: * Source/WebKit/UIProcess/API/Cocoa/WKProcessGroup.mm: (-[WKProcessGroup initWithInjectedBundleURL:andCustomClassesForParameterCoder:]): (toStringVector): Deleted. * Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm: (-[WKWebView _setInputDelegate:]): * Source/WebKit/UIProcess/API/Cocoa/_WKProcessPoolConfiguration.h: * Source/WebKit/UIProcess/API/Cocoa/_WKProcessPoolConfiguration.mm: (-[_WKProcessPoolConfiguration customClassesForParameterCoder]): (-[_WKProcessPoolConfiguration setCustomClassesForParameterCoder:]): * Source/WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm: (WebKit::WebProcessPool::platformInitialize): (WebKit::WebProcessPool::initializeClassesForParameterCoding): Deleted. (WebKit::WebProcessPool::allowedClassesForParameterCoding const): Deleted. * Source/WebKit/UIProcess/WebProcessPool.h: * Source/WebKit/UIProcess/ios/PageClientImplIOS.mm: (WebKit::PageClientImpl::elementDidFocus): * Source/WebKit/WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.mm: (-[WKWebProcessPlugInBrowserContextController _setFormDelegate:]): * Tools/TestWebKitAPI/Tests/WebKitCocoa/BundleFormDelegate.mm: (TEST): * Tools/TestWebKitAPI/Tests/WebKitCocoa/BundleFormDelegatePlugIn.mm: (-[BundleFormDelegatePlugInWithUserInfo webProcessPlugIn:didCreateBrowserContextController:]): (-[BundleFormDelegatePlugInWithUserInfo _webProcessPlugInBrowserContextController:willSubmitForm:toFrame:fromFrame:withValues:]): * Tools/TestWebKitAPI/Tests/WebKitCocoa/WKProcessPoolConfiguration.mm: (TEST): * Tools/TestWebKitAPI/Tests/WebKitCocoa/_WKInputDelegate.mm: (-[InputDelegate _webView:willSubmitFormValues:userObject:submissionHandler:]): (TEST): * Tools/TestWebKitAPI/WKWebViewConfigurationExtras.h: * Tools/TestWebKitAPI/WKWebViewConfigurationExtras.mm: (+[WKWebViewConfiguration _test_configurationWithTestPlugInClassName:configureJSCForTesting:]): (+[WKWebViewConfiguration _test_configurationWithTestPlugInClassName:configureJSCForTesting:andCustomParameterClasses:]): Deleted. Canonical link: https://commits.webkit.org/261820@main
1779a28 to
20a50d5
Compare
|
Committed 261820@main (20a50d5): https://commits.webkit.org/261820@main Reviewed commits have been landed. Closing PR #11399 and removing active labels. |
🛠 ios
20a50d5
1779a28