- 
                Notifications
    You must be signed in to change notification settings 
- Fork 1.7k
Move VKCImageAnalysis deserialization away from other NSObject deserializers #24275
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
          
     Merged
      
      
            webkit-commit-queue
  merged 1 commit into
  WebKit:main
from
achristensen07:eng/Move-VKCImageAnalysis-deserialization-away-from-other-NSObject-deserializers
  
      
      
   
  Feb 12, 2024 
      
    
                
     Merged
            
            
          Conversation
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
    
      
  
    Contributor
      
  
  | EWS run on previous version of this PR (hash 0efc39b) 
 | 
              
                    whsieh
  
              
              approved these changes
              
                  
                    Feb 12, 2024 
                  
              
              
            
            
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
0efc39b    to
    be07827      
    Compare
  
    | EWS run on current version of this PR (hash be07827) 
 | 
be07827    to
    19af88b      
    Compare
  
    …alizers https://bugs.webkit.org/show_bug.cgi?id=269230 rdar://122825380 Reviewed by Wenson Hsieh. It is currently the only ObjC object that is deserialized from IPC without _enableStrictSecureDecodingMode, which is less urgent because it is only sent from the trusted UI process to the untrusted web content process. This PR just moves that logic away from the rest of the IPC logic and adds a release assertion to make sure we don't introduce a security issue in the future. * Source/WebCore/platform/TextRecognitionResult.h: * Source/WebCore/platform/cocoa/TextRecognitionResultCocoa.mm: (WebCore::TextRecognitionResult::encodeVKCImageAnalysis): (WebCore::TextRecognitionResult::decodeVKCImageAnalysis): (WebCore::stringForRange): * Source/WebCore/testing/Internals.cpp: (WebCore::Internals::installImageOverlay): * Source/WebKit/Platform/cocoa/ImageAnalysisUtilities.mm: (WebKit::makeTextRecognitionResult): * Source/WebKit/Shared/Cocoa/ArgumentCodersCocoa.mm: (IPC::shouldEnableStrictMode): * Source/WebKit/Shared/Cocoa/WebCoreArgumentCodersCocoa.mm: (IPC::getClass<VKCImageAnalysis>): Deleted. (IPC::ArgumentCoder<RetainPtr<VKCImageAnalysis>>::encode): Deleted. (IPC::ArgumentCoder<RetainPtr<VKCImageAnalysis>>::decode): Deleted. * Source/WebKit/Shared/TextRecognitionResult.serialization.in: * Source/WebKit/Shared/WebCoreArgumentCoders.h: Canonical link: https://commits.webkit.org/274495@main
19af88b    to
    272b9be      
    Compare
  
    | Committed 274495@main (272b9be): https://commits.webkit.org/274495@main Reviewed commits have been landed. Closing PR #24275 and removing active labels. | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
      Labels
      
    WebKit Misc.
  For miscellaneous bugs in the WebKit framework (and not JavaScriptCore or WebCore). 
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
272b9be
19af88b
🛠 mac🛠 wpe🛠 wincairo🛠 ios-sim🛠 mac-AS-debug🧪 wpe-wk2🧪 webkitperl🧪 ios-wk2🧪 api-mac🧪 api-wpe🧪 ios-wk2-wpt🧪 mac-wk1🛠 gtk🧪 api-ios🧪 mac-wk2🧪 gtk-wk2🛠 tv🧪 mac-AS-debug-wk2🧪 api-gtk🛠 tv-sim🧪 mac-wk2-stress🛠 watch🛠 watch-sim