Diff
Modified: trunk/Source/WebCore/ChangeLog (291402 => 291403)
--- trunk/Source/WebCore/ChangeLog 2022-03-17 12:54:57 UTC (rev 291402)
+++ trunk/Source/WebCore/ChangeLog 2022-03-17 13:02:32 UTC (rev 291403)
@@ -1,3 +1,23 @@
+2022-03-17 Nikolas Zimmermann <[email protected]>
+
+ Build broken on macOS Monterey 12.3 - PassKitSPI related error
+ https://bugs.webkit.org/show_bug.cgi?id=238010
+ <rdar://problem/90417687>
+
+ Reviewed by Antoine Quint.
+
+ Unbreak the macOS 12.3 build: assure that 'PKShippingMethod' is declared before used
+ in the 'PKShippingMethods' interface. Fix various unused variable warnings.
+
+ No new tests. No change in functionality.
+
+ * platform/audio/mac/AudioOutputUnitAdaptorMac.cpp:
+ (WebCore::AudioOutputUnitAdaptor::configure):
+ * platform/graphics/avfoundation/objc/MediaSampleAVFObjC.mm:
+ (WebCore::MediaSampleAVFObjC::getRGBAImageData const):
+ * platform/graphics/ca/GraphicsLayerCA.cpp:
+ (WebCore::GraphicsLayerCA::appendToUncommittedAnimations):
+
2022-03-17 Kimmo Kinnunen <[email protected]>
WebGL context lost event is not sent again for contexts that are lost and restored
Modified: trunk/Source/WebCore/PAL/ChangeLog (291402 => 291403)
--- trunk/Source/WebCore/PAL/ChangeLog 2022-03-17 12:54:57 UTC (rev 291402)
+++ trunk/Source/WebCore/PAL/ChangeLog 2022-03-17 13:02:32 UTC (rev 291403)
@@ -1,3 +1,18 @@
+2022-03-17 Nikolas Zimmermann <[email protected]>
+
+ Build broken on macOS Monterey 12.3 - PassKitSPI related error
+ https://bugs.webkit.org/show_bug.cgi?id=238010
+ <rdar://problem/90417687>
+
+ Reviewed by Antoine Quint.
+
+ Unbreak the macOS 12.3 build: assure that 'PKShippingMethod' is declared before used
+ in the 'PKShippingMethods' interface. Fix various unused variable warnings.
+
+ No new tests. No change in functionality.
+
+ * pal/spi/cocoa/PassKitSPI.h: Swap PKShippingMethod/PKShippingMethods declarations
+
2022-03-16 Myles C. Maxfield <[email protected]>
[WebGPU] Use block-based WebGPU API instead of function pointer & userdata API
Modified: trunk/Source/WebCore/PAL/pal/spi/cocoa/PassKitSPI.h (291402 => 291403)
--- trunk/Source/WebCore/PAL/pal/spi/cocoa/PassKitSPI.h 2022-03-17 12:54:57 UTC (rev 291402)
+++ trunk/Source/WebCore/PAL/pal/spi/cocoa/PassKitSPI.h 2022-03-17 13:02:32 UTC (rev 291403)
@@ -304,12 +304,6 @@
@end
#endif
-#if HAVE(PASSKIT_DEFAULT_SHIPPING_METHOD)
-@interface PKShippingMethods : NSObject
-- (instancetype)initWithMethods:(NSArray<PKShippingMethod *> *)methods defaultMethod:(nullable PKShippingMethod *)defaultMethod;
-@end
-#endif
-
#if HAVE(PASSKIT_SHIPPING_METHOD_DATE_COMPONENTS_RANGE)
@interface PKDateComponentsRange : NSObject <NSCopying, NSSecureCoding>
- (nullable instancetype)initWithStartDateComponents:(NSDateComponents *)startDateComponents endDateComponents:(NSDateComponents *)endDateComponents;
@@ -326,6 +320,12 @@
#endif
@end
+#if HAVE(PASSKIT_DEFAULT_SHIPPING_METHOD)
+@interface PKShippingMethods : NSObject
+- (instancetype)initWithMethods:(NSArray<PKShippingMethod *> *)methods defaultMethod:(nullable PKShippingMethod *)defaultMethod;
+@end
+#endif
+
#if HAVE(PASSKIT_SHIPPING_CONTACT_EDITING_MODE)
typedef NS_ENUM(NSUInteger, PKShippingContactEditingMode) {
PKShippingContactEditingModeEnabled = 1,
Modified: trunk/Source/WebCore/platform/audio/mac/AudioOutputUnitAdaptorMac.cpp (291402 => 291403)
--- trunk/Source/WebCore/platform/audio/mac/AudioOutputUnitAdaptorMac.cpp 2022-03-17 12:54:57 UTC (rev 291402)
+++ trunk/Source/WebCore/platform/audio/mac/AudioOutputUnitAdaptorMac.cpp 2022-03-17 13:02:32 UTC (rev 291403)
@@ -54,7 +54,7 @@
ASSERT(comp);
OSStatus result = PAL::AudioComponentInstanceNew(comp, &m_outputUnit);
- ASSERT(!result);
+ ASSERT_UNUSED(result, !result);
result = PAL::AudioUnitInitialize(m_outputUnit);
ASSERT(!result);
Modified: trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaSampleAVFObjC.mm (291402 => 291403)
--- trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaSampleAVFObjC.mm 2022-03-17 12:54:57 UTC (rev 291402)
+++ trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaSampleAVFObjC.mm 2022-03-17 13:02:32 UTC (rev 291403)
@@ -376,7 +376,7 @@
auto pixelBuffer = static_cast<CVPixelBufferRef>(PAL::CMSampleBufferGetImageBuffer(m_sample.get()));
auto rgbaPixelBuffer = pixelBufferConformer.convert(pixelBuffer);
auto status = CVPixelBufferLockBaseAddress(rgbaPixelBuffer.get(), kCVPixelBufferLock_ReadOnly);
- ASSERT(status == noErr);
+ ASSERT_UNUSED(status, status == noErr);
void* data = "" 0);
size_t byteLength = CVPixelBufferGetHeight(pixelBuffer) * CVPixelBufferGetWidth(pixelBuffer) * 4;
Modified: trunk/Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp (291402 => 291403)
--- trunk/Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp 2022-03-17 12:54:57 UTC (rev 291402)
+++ trunk/Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp 2022-03-17 13:02:32 UTC (rev 291403)
@@ -3539,7 +3539,7 @@
valuesOK = setFilterAnimationEndpoints(valueList, animation, caAnimation.get(), animationIndex, internalFilterPropertyIndex);
}
- ASSERT(valuesOK);
+ ASSERT_UNUSED(valuesOK, valuesOK);
m_animations.append(LayerPropertyAnimation(caAnimation.releaseNonNull(), animationName, valueList.property(), animationIndex, internalFilterPropertyIndex, timeOffset));
}
Modified: trunk/Source/WebKit/ChangeLog (291402 => 291403)
--- trunk/Source/WebKit/ChangeLog 2022-03-17 12:54:57 UTC (rev 291402)
+++ trunk/Source/WebKit/ChangeLog 2022-03-17 13:02:32 UTC (rev 291403)
@@ -1,3 +1,21 @@
+2022-03-17 Nikolas Zimmermann <[email protected]>
+
+ Build broken on macOS Monterey 12.3 - PassKitSPI related error
+ https://bugs.webkit.org/show_bug.cgi?id=238010
+ <rdar://problem/90417687>
+
+ Reviewed by Antoine Quint.
+
+ Unbreak the macOS 12.3 build: assure that 'PKShippingMethod' is declared before used
+ in the 'PKShippingMethods' interface. Fix various unused variable warnings.
+
+ No new tests. No change in functionality.
+
+ * Shared/cf/ArgumentCodersCF.cpp:
+ (IPC::ArgumentCoder<CFStringRef>::encode):
+ * Shared/mac/AuxiliaryProcessMac.mm:
+ (WebKit::compileAndCacheSandboxProfile):
+
2022-03-17 Kimmo Kinnunen <[email protected]>
WebGL context lost event is not sent again for contexts that are lost and restored
Modified: trunk/Source/WebKit/Shared/cf/ArgumentCodersCF.cpp (291402 => 291403)
--- trunk/Source/WebKit/Shared/cf/ArgumentCodersCF.cpp 2022-03-17 12:54:57 UTC (rev 291402)
+++ trunk/Source/WebKit/Shared/cf/ArgumentCodersCF.cpp 2022-03-17 13:02:32 UTC (rev 291403)
@@ -650,7 +650,7 @@
CFIndex bufferLength = 0;
CFIndex numConvertedBytes = CFStringGetBytes(string, range, encoding, 0, false, 0, 0, &bufferLength);
- ASSERT(numConvertedBytes == length);
+ ASSERT_UNUSED(numConvertedBytes, numConvertedBytes == length);
Vector<UInt8, 128> buffer(bufferLength);
numConvertedBytes = CFStringGetBytes(string, range, encoding, 0, false, buffer.data(), buffer.size(), &bufferLength);
Modified: trunk/Source/WebKit/Shared/mac/AuxiliaryProcessMac.mm (291402 => 291403)
--- trunk/Source/WebKit/Shared/mac/AuxiliaryProcessMac.mm 2022-03-17 12:54:57 UTC (rev 291402)
+++ trunk/Source/WebKit/Shared/mac/AuxiliaryProcessMac.mm 2022-03-17 13:02:32 UTC (rev 291403)
@@ -437,7 +437,7 @@
};
size_t copied = strlcpy(cachedHeader.sandboxBuildID, SANDBOX_BUILD_ID, sizeof(cachedHeader.sandboxBuildID));
- ASSERT(copied == guidSize - 1);
+ ASSERT_UNUSED(copied, copied == guidSize - 1);
copied = strlcpy(cachedHeader.osVersion, osVersion.utf8().data(), sizeof(cachedHeader.osVersion));
ASSERT(copied < versionSize - 1);
Modified: trunk/Tools/ChangeLog (291402 => 291403)
--- trunk/Tools/ChangeLog 2022-03-17 12:54:57 UTC (rev 291402)
+++ trunk/Tools/ChangeLog 2022-03-17 13:02:32 UTC (rev 291403)
@@ -1,3 +1,19 @@
+2022-03-17 Nikolas Zimmermann <[email protected]>
+
+ Build broken on macOS Monterey 12.3 - PassKitSPI related error
+ https://bugs.webkit.org/show_bug.cgi?id=238010
+ <rdar://problem/90417687>
+
+ Reviewed by Antoine Quint.
+
+ Unbreak the macOS 12.3 build: assure that 'PKShippingMethod' is declared before used
+ in the 'PKShippingMethods' interface. Fix various unused variable warnings.
+
+ No new tests. No change in functionality.
+
+ * TestWebKitAPI/Tests/WebKitCocoa/WKWebViewCloseAllMediaPresentations.mm:
+ (loadPictureInPicture):
+
2022-03-17 Youenn Fablet <[email protected]>
AudioContext is suspended on iOS when page is backgrounded
Modified: trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/WKWebViewCloseAllMediaPresentations.mm (291402 => 291403)
--- trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/WKWebViewCloseAllMediaPresentations.mm 2022-03-17 12:54:57 UTC (rev 291402)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/WKWebViewCloseAllMediaPresentations.mm 2022-03-17 13:02:32 UTC (rev 291403)
@@ -51,7 +51,7 @@
[webView performAfterReceivingMessage:@"presentationmodechanged" action:^{ presentationModeChanged = true; }];
[webView objectByEvaluatingJavaScriptWithUserGesture:@"document.querySelector('video').webkitSetPresentationMode('picture-in-picture')"];
- ASSERT(TestWebKitAPI::Util::runFor(&presentationModeChanged, 10));
+ ASSERT_UNUSED(presentationModeChanged, TestWebKitAPI::Util::runFor(&presentationModeChanged, 10));
do {
if (![webView stringByEvaluatingJavaScript:@"window.internals.isChangingPresentationMode(document.querySelector('video'))"].boolValue)
break;