Skip to content
Permalink
Browse files
-[WebView initWithCoder:] should use -[NSCoder decodeValueOfObjCType:…
…at:size:]

<https://webkit.org/b/229121>
<rdar://problem/81956163>

Reviewed by Anders Carlsson.

* WebView/WebView.mm:
(-[WebView initWithCoder:]):
- Switch to -[NSCoder decodeValueOfObjCType:at:size:].


Canonical link: https://commits.webkit.org/240541@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@281081 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
David Kilzer committed Aug 16, 2021
1 parent 00c2d46 commit eec8a050d90ab573280ae6d327cb9326c7f96ea7
Showing with 13 additions and 1 deletion.
  1. +12 −0 Source/WebKitLegacy/mac/ChangeLog
  2. +1 −1 Source/WebKitLegacy/mac/WebView/WebView.mm
@@ -1,3 +1,15 @@
2021-08-16 David Kilzer <ddkilzer@apple.com>

-[WebView initWithCoder:] should use -[NSCoder decodeValueOfObjCType:at:size:]
<https://webkit.org/b/229121>
<rdar://problem/81956163>

Reviewed by Anders Carlsson.

* WebView/WebView.mm:
(-[WebView initWithCoder:]):
- Switch to -[NSCoder decodeValueOfObjCType:at:size:].

2021-08-13 Chris Dumez <cdumez@apple.com>

Add Cross-Origin-Embedder-Policy support for Blob URLs
@@ -5425,7 +5425,7 @@ - (instancetype)initWithCoder:(NSCoder *)decoder
allowsUndo = [decoder decodeBoolForKey:@"AllowsUndo"];
} else {
int version;
[decoder decodeValueOfObjCType:@encode(int) at:&version];
[decoder decodeValueOfObjCType:@encode(int) at:&version size:sizeof(int)];
frameName = [decoder decodeObject];
groupName = [decoder decodeObject];
preferences = [decoder decodeObject];

0 comments on commit eec8a05

Please sign in to comment.