[webkit-changes] [273950] trunk/Source
Title: [273950] trunk/Source Revision 273950 Author commit-qu...@webkit.org Date 2021-03-04 23:05:47 -0800 (Thu, 04 Mar 2021) Log Message Add internal preference to disable HTTPS upgrade https://bugs.webkit.org/show_bug.cgi?id=222778 Patch by Alex Christensen on 2021-03-04 Reviewed by Simon Fraser. Source/WebKit: * UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::creationParameters): Source/WTF: This is needed for an internal performance benchmark, which serves canned content from a local http server pretending to be from different domains that are in our internal HTTPS upgrade list because the real server supports HTTPS. That internal benchmark should eventually change, but that's not going to happen this year. This is also likely going to be useful for QA purposes to be able to easily tell on an internal build whether HTTPS upgrade is breaking something. * Scripts/Preferences/WebPreferencesInternal.yaml: Modified Paths trunk/Source/WTF/ChangeLog trunk/Source/WTF/Scripts/Preferences/WebPreferencesInternal.yaml trunk/Source/WebKit/ChangeLog trunk/Source/WebKit/UIProcess/WebPageProxy.cpp Diff Modified: trunk/Source/WTF/ChangeLog (273949 => 273950) --- trunk/Source/WTF/ChangeLog 2021-03-05 05:47:46 UTC (rev 273949) +++ trunk/Source/WTF/ChangeLog 2021-03-05 07:05:47 UTC (rev 273950) @@ -1,5 +1,20 @@ 2021-03-04 Alex Christensen +Add internal preference to disable HTTPS upgrade +https://bugs.webkit.org/show_bug.cgi?id=222778 + +Reviewed by Simon Fraser. + +This is needed for an internal performance benchmark, which serves canned content from a local http server +pretending to be from different domains that are in our internal HTTPS upgrade list because the real server +supports HTTPS. That internal benchmark should eventually change, but that's not going to happen this year. +This is also likely going to be useful for QA purposes to be able to easily tell on an internal build +whether HTTPS upgrade is breaking something. + +* Scripts/Preferences/WebPreferencesInternal.yaml: + +2021-03-04 Alex Christensen + Remove the HTTPSUpgradeEnabled experimental feature https://bugs.webkit.org/show_bug.cgi?id=222706 Modified: trunk/Source/WTF/Scripts/Preferences/WebPreferencesInternal.yaml (273949 => 273950) --- trunk/Source/WTF/Scripts/Preferences/WebPreferencesInternal.yaml 2021-03-05 05:47:46 UTC (rev 273949) +++ trunk/Source/WTF/Scripts/Preferences/WebPreferencesInternal.yaml 2021-03-05 07:05:47 UTC (rev 273950) @@ -754,6 +754,16 @@ WebCore: default: false +UpgradeKnownHostsToHTTPSEnabled: + type: bool + humanReadableName: "Upgrade known hosts to HTTPS" + humanReadableDescription: "Upgrade known hosts to HTTPS" + webcoreBinding: none + exposed: [ WebKit ] + defaultValue: +WebKit: + default: true + UseGPUProcessForCanvasRenderingEnabled: type: bool humanReadableName: "GPU Process: Canvas Rendering" Modified: trunk/Source/WebKit/ChangeLog (273949 => 273950) --- trunk/Source/WebKit/ChangeLog 2021-03-05 05:47:46 UTC (rev 273949) +++ trunk/Source/WebKit/ChangeLog 2021-03-05 07:05:47 UTC (rev 273950) @@ -1,5 +1,15 @@ 2021-03-04 Alex Christensen +Add internal preference to disable HTTPS upgrade +https://bugs.webkit.org/show_bug.cgi?id=222778 + +Reviewed by Simon Fraser. + +* UIProcess/WebPageProxy.cpp: +(WebKit::WebPageProxy::creationParameters): + +2021-03-04 Alex Christensen + Fix clean build after r273946 https://bugs.webkit.org/show_bug.cgi?id=222706 Modified: trunk/Source/WebKit/UIProcess/WebPageProxy.cpp (273949 => 273950) --- trunk/Source/WebKit/UIProcess/WebPageProxy.cpp 2021-03-05 05:47:46 UTC (rev 273949) +++ trunk/Source/WebKit/UIProcess/WebPageProxy.cpp 2021-03-05 07:05:47 UTC (rev 273950) @@ -7981,7 +7981,7 @@ #endif parameters.textInteractionEnabled = preferences().textInteractionEnabled(); -parameters.httpsUpgradeEnabled = m_configuration->httpsUpgradeEnabled(); +parameters.httpsUpgradeEnabled = preferences().upgradeKnownHostsToHTTPSEnabled() ? m_configuration->httpsUpgradeEnabled() : false; #if PLATFORM(IOS) parameters.allowsDeprecatedSynchronousXMLHttpRequestDuringUnload = allowsDeprecatedSynchronousXMLHttpRequestDuringUnload(); ___ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes
[webkit-changes] [273949] trunk/Source/WebKit
Title: [273949] trunk/Source/WebKit Revision 273949 Author achristen...@apple.com Date 2021-03-04 21:47:46 -0800 (Thu, 04 Mar 2021) Log Message Fix clean build after r273946 https://bugs.webkit.org/show_bug.cgi?id=222706 * DerivedSources-output.xcfilelist: * WebKit.xcodeproj/project.pbxproj: Modified Paths trunk/Source/WebKit/ChangeLog trunk/Source/WebKit/DerivedSources-output.xcfilelist trunk/Source/WebKit/WebKit.xcodeproj/project.pbxproj Diff Modified: trunk/Source/WebKit/ChangeLog (273948 => 273949) --- trunk/Source/WebKit/ChangeLog 2021-03-05 05:46:58 UTC (rev 273948) +++ trunk/Source/WebKit/ChangeLog 2021-03-05 05:47:46 UTC (rev 273949) @@ -1,5 +1,13 @@ 2021-03-04 Alex Christensen +Fix clean build after r273946 +https://bugs.webkit.org/show_bug.cgi?id=222706 + +* DerivedSources-output.xcfilelist: +* WebKit.xcodeproj/project.pbxproj: + +2021-03-04 Alex Christensen + Remove the HTTPSUpgradeEnabled experimental feature https://bugs.webkit.org/show_bug.cgi?id=222706 Modified: trunk/Source/WebKit/DerivedSources-output.xcfilelist (273948 => 273949) --- trunk/Source/WebKit/DerivedSources-output.xcfilelist 2021-03-05 05:46:58 UTC (rev 273948) +++ trunk/Source/WebKit/DerivedSources-output.xcfilelist 2021-03-05 05:47:46 UTC (rev 273949) @@ -46,7 +46,6 @@ $(BUILT_PRODUCTS_DIR)/DerivedSources/WebKit2/GPUProcessProxyMessageReceiver.cpp $(BUILT_PRODUCTS_DIR)/DerivedSources/WebKit2/GPUProcessProxyMessages.h $(BUILT_PRODUCTS_DIR)/DerivedSources/WebKit2/GPUProcessProxyMessagesReplies.h -$(BUILT_PRODUCTS_DIR)/DerivedSources/WebKit2/HTTPSUpgradeList.db $(BUILT_PRODUCTS_DIR)/DerivedSources/WebKit2/LegacyCustomProtocolManagerMessageReceiver.cpp $(BUILT_PRODUCTS_DIR)/DerivedSources/WebKit2/LegacyCustomProtocolManagerMessages.h $(BUILT_PRODUCTS_DIR)/DerivedSources/WebKit2/LegacyCustomProtocolManagerMessagesReplies.h Modified: trunk/Source/WebKit/WebKit.xcodeproj/project.pbxproj (273948 => 273949) --- trunk/Source/WebKit/WebKit.xcodeproj/project.pbxproj 2021-03-05 05:46:58 UTC (rev 273948) +++ trunk/Source/WebKit/WebKit.xcodeproj/project.pbxproj 2021-03-05 05:47:46 UTC (rev 273949) @@ -1218,7 +1218,6 @@ 57FD318522B35169008D0E8B /* SOAuthorizationSession.h in Headers */ = {isa = PBXBuildFile; fileRef = 57FD317C22B3514A008D0E8B /* SOAuthorizationSession.h */; }; 57FD318622B3516C008D0E8B /* SubFrameSOAuthorizationSession.h in Headers */ = {isa = PBXBuildFile; fileRef = 57FD317D22B3514A008D0E8B /* SubFrameSOAuthorizationSession.h */; }; 57FD318722B35170008D0E8B /* WKSOAuthorizationDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 57FD317122B35148008D0E8B /* WKSOAuthorizationDelegate.h */; }; - 587743A621C30BBE00AE9084 /* HTTPSUpgradeList.db in Resources */ = {isa = PBXBuildFile; fileRef = 587743A421C30AD800AE9084 /* HTTPSUpgradeList.db */; }; 5C0B17781E7C880E00E9123C /* NetworkSocketStreamMessageReceiver.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5C0B17741E7C879C00E9123C /* NetworkSocketStreamMessageReceiver.cpp */; }; 5C0B17791E7C882100E9123C /* WebSocketStreamMessageReceiver.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5C0B17761E7C879C00E9123C /* WebSocketStreamMessageReceiver.cpp */; }; 5C121E842410208D00486F9B /* FrameTreeNodeData.h in Headers */ = {isa = PBXBuildFile; fileRef = 5C121E8324101F7000486F9B /* FrameTreeNodeData.h */; }; @@ -4323,7 +4322,6 @@ 57FD317D22B3514A008D0E8B /* SubFrameSOAuthorizationSession.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SubFrameSOAuthorizationSession.h; sourceTree = ""; }; 57FD317E22B3514A008D0E8B /* WKSOAuthorizationDelegate.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = WKSOAuthorizationDelegate.mm; sourceTree = ""; }; 57FD317F22B3514A008D0E8B /* SOAuthorizationSession.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = SOAuthorizationSession.mm; sourceTree = ""; }; - 587743A421C30AD800AE9084 /* HTTPSUpgradeList.db */ = {isa = PBXFileReference; lastKnownFileType = file; name = HTTPSUpgradeList.db; path = DerivedSources/WebKit2/HTTPSUpgradeList.db; sourceTree = BUILT_PRODUCTS_DIR; }; 5C00993B2417FB7E00D53C25 /* ResourceLoadStatisticsParameters.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ResourceLoadStatisticsParameters.h; sourceTree = ""; }; 5C0A10C1235241A30053E2CA /* NetworkSchemeRegistry.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = NetworkSchemeRegistry.cpp; sourceTree = ""; }; 5C0B17741E7C879C00E9123C /* NetworkSocketStreamMessageReceiver.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = NetworkSocketStreamMessageReceiver.cpp; path = DerivedSources/WebKit2/NetworkSocketStreamMessageReceiver.cpp; sourceTree = BUILT_PRODUCTS_DIR; }; @@
[webkit-changes] [273948] branches/safari-612.1.5-branch/Source/WebKit
Title: [273948] branches/safari-612.1.5-branch/Source/WebKit Revision 273948 Author repst...@apple.com Date 2021-03-04 21:46:58 -0800 (Thu, 04 Mar 2021) Log Message Cherry-pick r273485. rdar://problem/75075088 Temporarily stop enforcing notification filtering https://bugs.webkit.org/show_bug.cgi?id=222386 Reviewed by Brent Fulgham. Temporarily stop enforcing notification filtering on macOS and iOS. * Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb: * WebProcess/com.apple.WebProcess.sb.in: git-svn-id: https://svn.webkit.org/repository/webkit/trunk@273485 268f45cc-cd09-0410-ab3c-d52691b4dbfc Modified Paths branches/safari-612.1.5-branch/Source/WebKit/ChangeLog branches/safari-612.1.5-branch/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb branches/safari-612.1.5-branch/Source/WebKit/WebProcess/com.apple.WebProcess.sb.in Diff Modified: branches/safari-612.1.5-branch/Source/WebKit/ChangeLog (273947 => 273948) --- branches/safari-612.1.5-branch/Source/WebKit/ChangeLog 2021-03-05 04:48:49 UTC (rev 273947) +++ branches/safari-612.1.5-branch/Source/WebKit/ChangeLog 2021-03-05 05:46:58 UTC (rev 273948) @@ -1,5 +1,36 @@ 2021-03-04 Alan Coon +Cherry-pick r273485. rdar://problem/75075088 + +Temporarily stop enforcing notification filtering +https://bugs.webkit.org/show_bug.cgi?id=222386 + + +Reviewed by Brent Fulgham. + +Temporarily stop enforcing notification filtering on macOS and iOS. + +* Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb: +* WebProcess/com.apple.WebProcess.sb.in: + + +git-svn-id: https://svn.webkit.org/repository/webkit/trunk@273485 268f45cc-cd09-0410-ab3c-d52691b4dbfc + +2021-02-25 Per Arne + +Temporarily stop enforcing notification filtering +https://bugs.webkit.org/show_bug.cgi?id=222386 + + +Reviewed by Brent Fulgham. + +Temporarily stop enforcing notification filtering on macOS and iOS. + +* Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb: +* WebProcess/com.apple.WebProcess.sb.in: + +2021-03-04 Alan Coon + Cherry-pick r273784. rdar://problem/75059445 REGRESSION(r270691): It's impossible to use MobileAsset fonts on macOS Modified: branches/safari-612.1.5-branch/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb (273947 => 273948) --- branches/safari-612.1.5-branch/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb 2021-03-05 04:48:49 UTC (rev 273947) +++ branches/safari-612.1.5-branch/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb 2021-03-05 05:46:58 UTC (rev 273948) @@ -642,7 +642,7 @@ (allow mach-lookup (global-name "com.apple.system.notification_center") (apply-message-filter -(deny mach-message-send (with telemetry-backtrace)) +(allow mach-message-send (with telemetry-backtrace)) (deny mach-message-send (with no-report) (message-number 1023)) (allow mach-message-send (with telemetry-backtrace) (message-number 1002 Modified: branches/safari-612.1.5-branch/Source/WebKit/WebProcess/com.apple.WebProcess.sb.in (273947 => 273948) --- branches/safari-612.1.5-branch/Source/WebKit/WebProcess/com.apple.WebProcess.sb.in 2021-03-05 04:48:49 UTC (rev 273947) +++ branches/safari-612.1.5-branch/Source/WebKit/WebProcess/com.apple.WebProcess.sb.in 2021-03-05 05:46:58 UTC (rev 273948) @@ -1269,7 +1269,7 @@ (global-name "com.apple.system.notification_center") #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 12 (apply-message-filter -(deny mach-message-send (with telemetry-backtrace)) +(allow mach-message-send (with telemetry-backtrace)) (deny mach-message-send (with no-report) (message-number 1023)) (allow mach-message-send (with telemetry-backtrace) (message-number 1002 ___ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes
[webkit-changes] [273947] trunk/Source/WebCore
Title: [273947] trunk/Source/WebCore Revision 273947 Author akeer...@apple.com Date 2021-03-04 20:48:49 -0800 (Thu, 04 Mar 2021) Log Message [iOS] Add legacy prefix to the form controls UA stylesheet https://bugs.webkit.org/show_bug.cgi?id=222741 Reviewed by Ryosuke Niwa. Followup to r273839. Rename the iOS form controls UA stylesheet to indicate it contains outdated styles. * DerivedSources-input.xcfilelist: * DerivedSources.make: * WebCore.xcodeproj/project.pbxproj: * css/legacyFormControlsIOS.css: Renamed from Source/WebCore/css/formControlsIOS.css. Removed redundant comment after the rename. * style/InspectorCSSOMWrappers.cpp: (WebCore::Style::InspectorCSSOMWrappers::collectDocumentWrappers): * style/UserAgentStyle.cpp: (WebCore::Style::UserAgentStyle::ensureDefaultStyleSheetsForElement): * style/UserAgentStyle.h: Modified Paths trunk/Source/WebCore/ChangeLog trunk/Source/WebCore/DerivedSources-input.xcfilelist trunk/Source/WebCore/DerivedSources.make trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj trunk/Source/WebCore/style/InspectorCSSOMWrappers.cpp trunk/Source/WebCore/style/UserAgentStyle.cpp trunk/Source/WebCore/style/UserAgentStyle.h Added Paths trunk/Source/WebCore/css/legacyFormControlsIOS.css Removed Paths trunk/Source/WebCore/css/formControlsIOS.css Diff Modified: trunk/Source/WebCore/ChangeLog (273946 => 273947) --- trunk/Source/WebCore/ChangeLog 2021-03-05 04:41:06 UTC (rev 273946) +++ trunk/Source/WebCore/ChangeLog 2021-03-05 04:48:49 UTC (rev 273947) @@ -1,3 +1,27 @@ +2021-03-04 Aditya Keerthi + +[iOS] Add legacy prefix to the form controls UA stylesheet +https://bugs.webkit.org/show_bug.cgi?id=222741 + + +Reviewed by Ryosuke Niwa. + +Followup to r273839. Rename the iOS form controls UA stylesheet to +indicate it contains outdated styles. + +* DerivedSources-input.xcfilelist: +* DerivedSources.make: +* WebCore.xcodeproj/project.pbxproj: +* css/legacyFormControlsIOS.css: Renamed from Source/WebCore/css/formControlsIOS.css. + +Removed redundant comment after the rename. + +* style/InspectorCSSOMWrappers.cpp: +(WebCore::Style::InspectorCSSOMWrappers::collectDocumentWrappers): +* style/UserAgentStyle.cpp: +(WebCore::Style::UserAgentStyle::ensureDefaultStyleSheetsForElement): +* style/UserAgentStyle.h: + 2021-03-04 Chris Dumez Make RegistrableDomain() private constructor take the String as an rvalue reference Modified: trunk/Source/WebCore/DerivedSources-input.xcfilelist (273946 => 273947) --- trunk/Source/WebCore/DerivedSources-input.xcfilelist 2021-03-05 04:41:06 UTC (rev 273946) +++ trunk/Source/WebCore/DerivedSources-input.xcfilelist 2021-03-05 04:48:49 UTC (rev 273947) @@ -682,9 +682,9 @@ $(PROJECT_DIR)/css/WebKitCSSViewportRule.idl $(PROJECT_DIR)/css/WebKitFontFamilyNames.in $(PROJECT_DIR)/css/dialog.css -$(PROJECT_DIR)/css/formControlsIOS.css $(PROJECT_DIR)/css/fullscreen.css $(PROJECT_DIR)/css/html.css +$(PROJECT_DIR)/css/legacyFormControlsIOS.css $(PROJECT_DIR)/css/make-css-file-arrays.pl $(PROJECT_DIR)/css/makeSelectorPseudoClassAndCompatibilityElementMap.py $(PROJECT_DIR)/css/makeSelectorPseudoElementsMap.py Modified: trunk/Source/WebCore/DerivedSources.make (273946 => 273947) --- trunk/Source/WebCore/DerivedSources.make 2021-03-05 04:41:06 UTC (rev 273946) +++ trunk/Source/WebCore/DerivedSources.make 2021-03-05 04:48:49 UTC (rev 273947) @@ -1526,9 +1526,9 @@ USER_AGENT_STYLE_SHEETS = \ $(WebCore)/css/dialog.css \ -$(WebCore)/css/formControlsIOS.css \ $(WebCore)/css/fullscreen.css \ $(WebCore)/css/html.css \ +$(WebCore)/css/legacyFormControlsIOS.css \ $(WebCore)/css/mathml.css \ $(WebCore)/css/mediaControls.css \ $(WebCore)/css/plugIns.css \ Modified: trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj (273946 => 273947) --- trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj 2021-03-05 04:41:06 UTC (rev 273946) +++ trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj 2021-03-05 04:48:49 UTC (rev 273947) @@ -16529,7 +16529,7 @@ E52CF54E20A35A2800DADA27 /* DataListSuggestionPicker.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = DataListSuggestionPicker.h; sourceTree = ""; }; E52EFDF22112875A00AD282A /* InputMode.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = InputMode.h; sourceTree = ""; }; E52EFDF32112875A00AD282A /* InputMode.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = InputMode.cpp; sourceTree = ""; }; - E54CA6DD255DE2D500F901A3 /* formControlsIOS.css */ = {isa = PBXFileReference; lastKnownFileType = text.css; path = formControlsIOS.css; sourceTree = ""; }; + E54CA6DD255DE2D500F901A3 /* legacyFormControlsIOS.css */ = {isa = PBXFileReference; lastKnownFileType = text.css; path = legacyFormControlsIOS.css; sourceTree = ""; };
[webkit-changes] [273946] trunk/Source/WebKit
Title: [273946] trunk/Source/WebKit Revision 273946 Author achristen...@apple.com Date 2021-03-04 20:41:06 -0800 (Thu, 04 Mar 2021) Log Message Remove the HTTPSUpgradeEnabled experimental feature https://bugs.webkit.org/show_bug.cgi?id=222706 Reviewed by Simon Fraser. * DerivedSources.make: * Scripts/generate-https-upgrade-database.sh: Removed. * Shared/HTTPSUpgrade/HTTPSUpgradeList.txt: Removed. Modified Paths trunk/Source/WebKit/ChangeLog trunk/Source/WebKit/DerivedSources.make Removed Paths trunk/Source/WebKit/Scripts/generate-https-upgrade-database.sh trunk/Source/WebKit/Shared/HTTPSUpgrade/ Diff Modified: trunk/Source/WebKit/ChangeLog (273945 => 273946) --- trunk/Source/WebKit/ChangeLog 2021-03-05 04:36:45 UTC (rev 273945) +++ trunk/Source/WebKit/ChangeLog 2021-03-05 04:41:06 UTC (rev 273946) @@ -1,3 +1,14 @@ +2021-03-04 Alex Christensen + +Remove the HTTPSUpgradeEnabled experimental feature +https://bugs.webkit.org/show_bug.cgi?id=222706 + +Reviewed by Simon Fraser. + +* DerivedSources.make: +* Scripts/generate-https-upgrade-database.sh: Removed. +* Shared/HTTPSUpgrade/HTTPSUpgradeList.txt: Removed. + 2021-03-04 Chris Dumez NetworkProcessProxy::deleteWebsiteDataInUIProcessForRegistrableDomains() can take domains as an rvalue reference Modified: trunk/Source/WebKit/DerivedSources.make (273945 => 273946) --- trunk/Source/WebKit/DerivedSources.make 2021-03-05 04:36:45 UTC (rev 273945) +++ trunk/Source/WebKit/DerivedSources.make 2021-03-05 04:41:06 UTC (rev 273946) @@ -396,12 +396,3 @@ $(WEB_PREFERENCES_PATTERNS) : $(WTF_BUILD_SCRIPTS_DIR)/GeneratePreferences.rb $(WEB_PREFERENCES_TEMPLATES) $(WEB_PREFERENCES_COMBINED_INPUT_FILE) $(WEB_PREFERENCES_CATEGORY_INPUT_FILES) $(RUBY) $< --frontend WebKit --base $(WEB_PREFERENCES_COMBINED_INPUT_FILE) --debug ${WTF_BUILD_SCRIPTS_DIR}/Preferences/WebPreferencesDebug.yaml --experimental ${WTF_BUILD_SCRIPTS_DIR}/Preferences/WebPreferencesExperimental.yaml --internal ${WTF_BUILD_SCRIPTS_DIR}/Preferences/WebPreferencesInternal.yaml $(addprefix --template , $(WEB_PREFERENCES_TEMPLATES)) - - -# FIXME: We should switch to the internal HTTPSUpgradeList.txt once the feature is ready. -# VPATH += $(WebKit2)/Shared/HTTPSUpgrade/ -VPATH := $(WebKit2)/Shared/HTTPSUpgrade/ $(VPATH) - -all : HTTPSUpgradeList.db -HTTPSUpgradeList.db : HTTPSUpgradeList.txt $(WebKit2)/Scripts/generate-https-upgrade-database.sh - sh $(WebKit2)/Scripts/generate-https-upgrade-database.sh $< $@ Deleted: trunk/Source/WebKit/Scripts/generate-https-upgrade-database.sh (273945 => 273946) --- trunk/Source/WebKit/Scripts/generate-https-upgrade-database.sh 2021-03-05 04:36:45 UTC (rev 273945) +++ trunk/Source/WebKit/Scripts/generate-https-upgrade-database.sh 2021-03-05 04:41:06 UTC (rev 273946) @@ -1,52 +0,0 @@ -#!/bin/sh -# -# Copyright (C) 2018 Apple Inc. All rights reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions -# are met: -# 1. Redistributions of source code must retain the above copyright -#notice, this list of conditions and the following disclaimer. -# 2. Redistributions in binary form must reproduce the above copyright -#notice, this list of conditions and the following disclaimer in the -#documentation and/or other materials provided with the distribution. -# -# THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, -# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS -# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF -# THE POSSIBILITY OF SUCH DAMAGE. - -# This script requires that HTTPSUpgradeList.txt has the following format: -# 1. It must be a plain text file with domains delimited by new lines ("\n"). -# 2. The file must not contain duplicate domains. -# 3. All domains must be lowercase. -# 4. All domains must be IDNA encoded. -# -# Usage: -# $ sh ./generate-https-upgrade-database.sh - -set -e - -INPUT_FILE_PATH="${1}" -OUTPUT_FILE_PATH="${2}" - -DB_VERSION="1"; -DB_SCHEMA="CREATE TABLE hosts (host TEXT PRIMARY KEY);" - -if [[ ! -f "${INPUT_FILE_PATH}" ]]; then -echo "Invalid input file" 1>&2; -exit 1 -fi - -if [[ -f "${OUTPUT_FILE_PATH}" ]]; then -rm "${OUTPUT_FILE_PATH}" -fi - -sqlite3 "${OUTPUT_FILE_PATH}" "PRAGMA user_version=${DB_VERSION}" "${DB_SCHEMA}" ".import ${INPUT_FILE_PATH}
[webkit-changes] [273945] tags/Safari-612.1.5.2.2/
Title: [273945] tags/Safari-612.1.5.2.2/ Revision 273945 Author repst...@apple.com Date 2021-03-04 20:36:45 -0800 (Thu, 04 Mar 2021) Log Message Tag Safari-612.1.5.2.2. Added Paths tags/Safari-612.1.5.2.2/ Diff ___ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes
[webkit-changes] [273944] trunk/Source/WebCore
Title: [273944] trunk/Source/WebCore Revision 273944 Author cdu...@apple.com Date 2021-03-04 20:36:13 -0800 (Thu, 04 Mar 2021) Log Message Make RegistrableDomain() private constructor take the String as an rvalue reference https://bugs.webkit.org/show_bug.cgi?id=222767 Reviewed by Alex Christensen. Make RegistrableDomain() private constructor take the String as an rvalue reference. Most call sites have an rvalue reference and it reduces ref counting churn this way. * platform/RegistrableDomain.h: (WebCore::RegistrableDomain::uncheckedCreateFromRegistrableDomainString): (WebCore::RegistrableDomain::uncheckedCreateFromHost): (WebCore::RegistrableDomain::RegistrableDomain): Modified Paths trunk/Source/WebCore/ChangeLog trunk/Source/WebCore/platform/RegistrableDomain.h Diff Modified: trunk/Source/WebCore/ChangeLog (273943 => 273944) --- trunk/Source/WebCore/ChangeLog 2021-03-05 04:36:09 UTC (rev 273943) +++ trunk/Source/WebCore/ChangeLog 2021-03-05 04:36:13 UTC (rev 273944) @@ -1,3 +1,18 @@ +2021-03-04 Chris Dumez + +Make RegistrableDomain() private constructor take the String as an rvalue reference +https://bugs.webkit.org/show_bug.cgi?id=222767 + +Reviewed by Alex Christensen. + +Make RegistrableDomain() private constructor take the String as an rvalue reference. +Most call sites have an rvalue reference and it reduces ref counting churn this way. + +* platform/RegistrableDomain.h: +(WebCore::RegistrableDomain::uncheckedCreateFromRegistrableDomainString): +(WebCore::RegistrableDomain::uncheckedCreateFromHost): +(WebCore::RegistrableDomain::RegistrableDomain): + 2021-03-04 Devin Rousso [Payment Request] remove some unnecessary WebKitAdditions hooks Modified: trunk/Source/WebCore/platform/RegistrableDomain.h (273943 => 273944) --- trunk/Source/WebCore/platform/RegistrableDomain.h 2021-03-05 04:36:09 UTC (rev 273943) +++ trunk/Source/WebCore/platform/RegistrableDomain.h 2021-03-05 04:36:13 UTC (rev 273944) @@ -81,7 +81,7 @@ static RegistrableDomain uncheckedCreateFromRegistrableDomainString(const String& domain) { -return RegistrableDomain { domain }; +return RegistrableDomain { String { domain } }; } static RegistrableDomain uncheckedCreateFromHost(const String& host) @@ -90,7 +90,7 @@ auto registrableDomain = topPrivatelyControlledDomain(host); if (registrableDomain.isEmpty()) return uncheckedCreateFromRegistrableDomainString(host); -return RegistrableDomain { registrableDomain }; +return RegistrableDomain { WTFMove(registrableDomain) }; #else return uncheckedCreateFromRegistrableDomainString(host); #endif @@ -102,8 +102,8 @@ protected: private: -explicit RegistrableDomain(const String& domain) -: m_registrableDomain { domain.isEmpty() ? "nullOrigin"_s : domain } +explicit RegistrableDomain(String&& domain) +: m_registrableDomain { domain.isEmpty() ? "nullOrigin"_s : WTFMove(domain) } { } ___ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes
[webkit-changes] [273943] branches/safari-612.1.5.2-branch/Source/WebKit
Title: [273943] branches/safari-612.1.5.2-branch/Source/WebKit Revision 273943 Author repst...@apple.com Date 2021-03-04 20:36:09 -0800 (Thu, 04 Mar 2021) Log Message Cherry-pick r273485. rdar://problem/75075050 Temporarily stop enforcing notification filtering https://bugs.webkit.org/show_bug.cgi?id=222386 Reviewed by Brent Fulgham. Temporarily stop enforcing notification filtering on macOS and iOS. * Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb: * WebProcess/com.apple.WebProcess.sb.in: git-svn-id: https://svn.webkit.org/repository/webkit/trunk@273485 268f45cc-cd09-0410-ab3c-d52691b4dbfc Modified Paths branches/safari-612.1.5.2-branch/Source/WebKit/ChangeLog branches/safari-612.1.5.2-branch/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb branches/safari-612.1.5.2-branch/Source/WebKit/WebProcess/com.apple.WebProcess.sb.in Diff Modified: branches/safari-612.1.5.2-branch/Source/WebKit/ChangeLog (273942 => 273943) --- branches/safari-612.1.5.2-branch/Source/WebKit/ChangeLog 2021-03-05 04:35:23 UTC (rev 273942) +++ branches/safari-612.1.5.2-branch/Source/WebKit/ChangeLog 2021-03-05 04:36:09 UTC (rev 273943) @@ -1,3 +1,34 @@ +2021-03-04 Russell Epstein + +Cherry-pick r273485. rdar://problem/75075050 + +Temporarily stop enforcing notification filtering +https://bugs.webkit.org/show_bug.cgi?id=222386 + + +Reviewed by Brent Fulgham. + +Temporarily stop enforcing notification filtering on macOS and iOS. + +* Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb: +* WebProcess/com.apple.WebProcess.sb.in: + + +git-svn-id: https://svn.webkit.org/repository/webkit/trunk@273485 268f45cc-cd09-0410-ab3c-d52691b4dbfc + +2021-02-25 Per Arne + +Temporarily stop enforcing notification filtering +https://bugs.webkit.org/show_bug.cgi?id=222386 + + +Reviewed by Brent Fulgham. + +Temporarily stop enforcing notification filtering on macOS and iOS. + +* Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb: +* WebProcess/com.apple.WebProcess.sb.in: + 2021-02-24 Russell Epstein Cherry-pick r273424. rdar://problem/74708164 Modified: branches/safari-612.1.5.2-branch/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb (273942 => 273943) --- branches/safari-612.1.5.2-branch/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb 2021-03-05 04:35:23 UTC (rev 273942) +++ branches/safari-612.1.5.2-branch/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb 2021-03-05 04:36:09 UTC (rev 273943) @@ -642,7 +642,7 @@ (allow mach-lookup (global-name "com.apple.system.notification_center") (apply-message-filter -(deny mach-message-send (with telemetry-backtrace)) +(allow mach-message-send (with telemetry-backtrace)) (deny mach-message-send (with no-report) (message-number 1023)) (allow mach-message-send (with telemetry-backtrace) (message-number 1002 Modified: branches/safari-612.1.5.2-branch/Source/WebKit/WebProcess/com.apple.WebProcess.sb.in (273942 => 273943) --- branches/safari-612.1.5.2-branch/Source/WebKit/WebProcess/com.apple.WebProcess.sb.in 2021-03-05 04:35:23 UTC (rev 273942) +++ branches/safari-612.1.5.2-branch/Source/WebKit/WebProcess/com.apple.WebProcess.sb.in 2021-03-05 04:36:09 UTC (rev 273943) @@ -1259,7 +1259,7 @@ (global-name "com.apple.system.notification_center") #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 12 (apply-message-filter -(deny mach-message-send (with telemetry-backtrace)) +(allow mach-message-send (with telemetry-backtrace)) (deny mach-message-send (with no-report) (message-number 1023)) (allow mach-message-send (with telemetry-backtrace) (message-number 1002 ___ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes
[webkit-changes] [273942] branches/safari-612.1.5.2-branch/Source
Title: [273942] branches/safari-612.1.5.2-branch/Source Revision 273942 Author repst...@apple.com Date 2021-03-04 20:35:23 -0800 (Thu, 04 Mar 2021) Log Message Versioning. WebKit-7612.1.5.2.2 Modified Paths branches/safari-612.1.5.2-branch/Source/_javascript_Core/Configurations/Version.xcconfig branches/safari-612.1.5.2-branch/Source/ThirdParty/ANGLE/Configurations/Version.xcconfig branches/safari-612.1.5.2-branch/Source/ThirdParty/libwebrtc/Configurations/Version.xcconfig branches/safari-612.1.5.2-branch/Source/WebCore/Configurations/Version.xcconfig branches/safari-612.1.5.2-branch/Source/WebCore/PAL/Configurations/Version.xcconfig branches/safari-612.1.5.2-branch/Source/WebInspectorUI/Configurations/Version.xcconfig branches/safari-612.1.5.2-branch/Source/WebKit/Configurations/Version.xcconfig branches/safari-612.1.5.2-branch/Source/WebKitLegacy/mac/Configurations/Version.xcconfig Diff Modified: branches/safari-612.1.5.2-branch/Source/_javascript_Core/Configurations/Version.xcconfig (273941 => 273942) --- branches/safari-612.1.5.2-branch/Source/_javascript_Core/Configurations/Version.xcconfig 2021-03-05 04:33:07 UTC (rev 273941) +++ branches/safari-612.1.5.2-branch/Source/_javascript_Core/Configurations/Version.xcconfig 2021-03-05 04:35:23 UTC (rev 273942) @@ -25,7 +25,7 @@ MINOR_VERSION = 1; TINY_VERSION = 5; MICRO_VERSION = 2; -NANO_VERSION = 1; +NANO_VERSION = 2; FULL_VERSION = $(MAJOR_VERSION).$(MINOR_VERSION).$(TINY_VERSION).$(MICRO_VERSION).$(NANO_VERSION); // The bundle version and short version string are set based on the current build configuration, see below. Modified: branches/safari-612.1.5.2-branch/Source/ThirdParty/ANGLE/Configurations/Version.xcconfig (273941 => 273942) --- branches/safari-612.1.5.2-branch/Source/ThirdParty/ANGLE/Configurations/Version.xcconfig 2021-03-05 04:33:07 UTC (rev 273941) +++ branches/safari-612.1.5.2-branch/Source/ThirdParty/ANGLE/Configurations/Version.xcconfig 2021-03-05 04:35:23 UTC (rev 273942) @@ -25,7 +25,7 @@ MINOR_VERSION = 1; TINY_VERSION = 5; MICRO_VERSION = 2; -NANO_VERSION = 1; +NANO_VERSION = 2; FULL_VERSION = $(MAJOR_VERSION).$(MINOR_VERSION).$(TINY_VERSION).$(MICRO_VERSION).$(NANO_VERSION); // The bundle version and short version string are set based on the current build configuration, see below. Modified: branches/safari-612.1.5.2-branch/Source/ThirdParty/libwebrtc/Configurations/Version.xcconfig (273941 => 273942) --- branches/safari-612.1.5.2-branch/Source/ThirdParty/libwebrtc/Configurations/Version.xcconfig 2021-03-05 04:33:07 UTC (rev 273941) +++ branches/safari-612.1.5.2-branch/Source/ThirdParty/libwebrtc/Configurations/Version.xcconfig 2021-03-05 04:35:23 UTC (rev 273942) @@ -25,7 +25,7 @@ MINOR_VERSION = 1; TINY_VERSION = 5; MICRO_VERSION = 2; -NANO_VERSION = 1; +NANO_VERSION = 2; FULL_VERSION = $(MAJOR_VERSION).$(MINOR_VERSION).$(TINY_VERSION).$(MICRO_VERSION).$(NANO_VERSION); // The bundle version and short version string are set based on the current build configuration, see below. Modified: branches/safari-612.1.5.2-branch/Source/WebCore/Configurations/Version.xcconfig (273941 => 273942) --- branches/safari-612.1.5.2-branch/Source/WebCore/Configurations/Version.xcconfig 2021-03-05 04:33:07 UTC (rev 273941) +++ branches/safari-612.1.5.2-branch/Source/WebCore/Configurations/Version.xcconfig 2021-03-05 04:35:23 UTC (rev 273942) @@ -25,7 +25,7 @@ MINOR_VERSION = 1; TINY_VERSION = 5; MICRO_VERSION = 2; -NANO_VERSION = 1; +NANO_VERSION = 2; FULL_VERSION = $(MAJOR_VERSION).$(MINOR_VERSION).$(TINY_VERSION).$(MICRO_VERSION).$(NANO_VERSION); // The bundle version and short version string are set based on the current build configuration, see below. Modified: branches/safari-612.1.5.2-branch/Source/WebCore/PAL/Configurations/Version.xcconfig (273941 => 273942) --- branches/safari-612.1.5.2-branch/Source/WebCore/PAL/Configurations/Version.xcconfig 2021-03-05 04:33:07 UTC (rev 273941) +++ branches/safari-612.1.5.2-branch/Source/WebCore/PAL/Configurations/Version.xcconfig 2021-03-05 04:35:23 UTC (rev 273942) @@ -25,7 +25,7 @@ MINOR_VERSION = 1; TINY_VERSION = 5; MICRO_VERSION = 2; -NANO_VERSION = 1; +NANO_VERSION = 2; FULL_VERSION = $(MAJOR_VERSION).$(MINOR_VERSION).$(TINY_VERSION).$(MICRO_VERSION).$(NANO_VERSION); // The bundle version and short version string are set based on the current build configuration, see below. Modified: branches/safari-612.1.5.2-branch/Source/WebInspectorUI/Configurations/Version.xcconfig (273941 => 273942) --- branches/safari-612.1.5.2-branch/Source/WebInspectorUI/Configurations/Version.xcconfig 2021-03-05 04:33:07 UTC (rev 273941) +++ branches/safari-612.1.5.2-branch/Source/WebInspectorUI/Configurations/Version.xcconfig 2021-03-05 04:35:23 UTC (rev 273942) @@ -2,7 +2,7 @@ MINOR_VERSION = 1; TINY_VERSION = 5; MICRO_VERSION = 2; -NANO_VERSION = 1; +NANO_VERSION = 2; FULL_VERSION =
[webkit-changes] [273941] trunk/Source/WebKit
Title: [273941] trunk/Source/WebKit Revision 273941 Author cdu...@apple.com Date 2021-03-04 20:33:07 -0800 (Thu, 04 Mar 2021) Log Message NetworkProcessProxy::deleteWebsiteDataInUIProcessForRegistrableDomains() can take domains as an rvalue reference https://bugs.webkit.org/show_bug.cgi?id=222768 Reviewed by Geoffrey Garen. * UIProcess/Network/NetworkProcessProxy.cpp: (WebKit::NetworkProcessProxy::deleteWebsiteDataInUIProcessForRegistrableDomains): * UIProcess/Network/NetworkProcessProxy.h: * UIProcess/WebsiteData/WebsiteDataStore.cpp: (WebKit::WebsiteDataStore::fetchDataForRegistrableDomains): * UIProcess/WebsiteData/WebsiteDataStore.h: Modified Paths trunk/Source/WebKit/ChangeLog trunk/Source/WebKit/UIProcess/Network/NetworkProcessProxy.cpp trunk/Source/WebKit/UIProcess/Network/NetworkProcessProxy.h trunk/Source/WebKit/UIProcess/WebsiteData/WebsiteDataStore.cpp trunk/Source/WebKit/UIProcess/WebsiteData/WebsiteDataStore.h Diff Modified: trunk/Source/WebKit/ChangeLog (273940 => 273941) --- trunk/Source/WebKit/ChangeLog 2021-03-05 04:17:40 UTC (rev 273940) +++ trunk/Source/WebKit/ChangeLog 2021-03-05 04:33:07 UTC (rev 273941) @@ -1,3 +1,17 @@ +2021-03-04 Chris Dumez + +NetworkProcessProxy::deleteWebsiteDataInUIProcessForRegistrableDomains() can take domains as an rvalue reference +https://bugs.webkit.org/show_bug.cgi?id=222768 + +Reviewed by Geoffrey Garen. + +* UIProcess/Network/NetworkProcessProxy.cpp: +(WebKit::NetworkProcessProxy::deleteWebsiteDataInUIProcessForRegistrableDomains): +* UIProcess/Network/NetworkProcessProxy.h: +* UIProcess/WebsiteData/WebsiteDataStore.cpp: +(WebKit::WebsiteDataStore::fetchDataForRegistrableDomains): +* UIProcess/WebsiteData/WebsiteDataStore.h: + 2021-03-04 Devin Rousso [Payment Request] remove some unnecessary WebKitAdditions hooks Modified: trunk/Source/WebKit/UIProcess/Network/NetworkProcessProxy.cpp (273940 => 273941) --- trunk/Source/WebKit/UIProcess/Network/NetworkProcessProxy.cpp 2021-03-05 04:17:40 UTC (rev 273940) +++ trunk/Source/WebKit/UIProcess/Network/NetworkProcessProxy.cpp 2021-03-05 04:33:07 UTC (rev 273941) @@ -1180,7 +1180,7 @@ sendWithAsyncReply(Messages::NetworkProcess::DeleteCookiesForTesting(sessionID, domain, includeHttpOnlyCookies), WTFMove(completionHandler)); } -void NetworkProcessProxy::deleteWebsiteDataInUIProcessForRegistrableDomains(PAL::SessionID sessionID, OptionSet dataTypes, OptionSet fetchOptions, Vector domains, CompletionHandler&&)>&& completionHandler) +void NetworkProcessProxy::deleteWebsiteDataInUIProcessForRegistrableDomains(PAL::SessionID sessionID, OptionSet dataTypes, OptionSet fetchOptions, Vector&& domains, CompletionHandler&&)>&& completionHandler) { auto* websiteDataStore = websiteDataStoreFromSessionID(sessionID); if (!websiteDataStore || dataTypes.isEmpty() || domains.isEmpty()) { @@ -1188,7 +1188,7 @@ return; } -websiteDataStore->fetchDataForRegistrableDomains(dataTypes, fetchOptions, domains, [dataTypes, websiteDataStore = makeRef(*websiteDataStore), completionHandler = WTFMove(completionHandler)] (Vector&& matchingDataRecords, HashSet&& domainsWithMatchingDataRecords) mutable { +websiteDataStore->fetchDataForRegistrableDomains(dataTypes, fetchOptions, WTFMove(domains), [dataTypes, websiteDataStore = makeRef(*websiteDataStore), completionHandler = WTFMove(completionHandler)] (Vector&& matchingDataRecords, HashSet&& domainsWithMatchingDataRecords) mutable { websiteDataStore->removeData(dataTypes, WTFMove(matchingDataRecords), [domainsWithMatchingDataRecords = WTFMove(domainsWithMatchingDataRecords), completionHandler = WTFMove(completionHandler)] () mutable { completionHandler(WTFMove(domainsWithMatchingDataRecords)); }); Modified: trunk/Source/WebKit/UIProcess/Network/NetworkProcessProxy.h (273940 => 273941) --- trunk/Source/WebKit/UIProcess/Network/NetworkProcessProxy.h 2021-03-05 04:17:40 UTC (rev 273940) +++ trunk/Source/WebKit/UIProcess/Network/NetworkProcessProxy.h 2021-03-05 04:33:07 UTC (rev 273941) @@ -187,7 +187,7 @@ void setCrossSiteLoadWithLinkDecorationForTesting(PAL::SessionID, const NavigatedFromDomain&, const NavigatedToDomain&, CompletionHandler&&); void resetCrossSiteLoadsWithLinkDecorationForTesting(PAL::SessionID, CompletionHandler&&); void deleteCookiesForTesting(PAL::SessionID, const RegistrableDomain&, bool includeHttpOnlyCookies, CompletionHandler&&); -void deleteWebsiteDataInUIProcessForRegistrableDomains(PAL::SessionID, OptionSet, OptionSet, Vector, CompletionHandler&&)>&&); +void deleteWebsiteDataInUIProcessForRegistrableDomains(PAL::SessionID, OptionSet, OptionSet, Vector&&, CompletionHandler&&)>&&); void hasIsolatedSession(PAL::SessionID, const RegistrableDomain&, CompletionHandler&&); #if ENABLE(APP_BOUND_DOMAINS) void
[webkit-changes] [273940] trunk/Source/JavaScriptCore
Title: [273940] trunk/Source/_javascript_Core Revision 273940 Author achristen...@apple.com Date 2021-03-04 20:17:40 -0800 (Thu, 04 Mar 2021) Log Message [Cocoa] REGRESSION(r272752): fix some internal builds that use WTFString::WTFString(NSString *) https://bugs.webkit.org/show_bug.cgi?id=222610 Reviewed by Chris Dumez. * inspector/scripts/codegen/objc_generator.py: (ObjCGenerator.objc_protocol_import_expression_for_member): (ObjCGenerator.objc_protocol_import_expression_for_parameter): (ObjCGenerator.protocol_to_objc_expression_for_member): (ObjCGenerator.payload_to_objc_expression_for_member): Modified Paths trunk/Source/_javascript_Core/ChangeLog trunk/Source/_javascript_Core/inspector/scripts/codegen/objc_generator.py Diff Modified: trunk/Source/_javascript_Core/ChangeLog (273939 => 273940) --- trunk/Source/_javascript_Core/ChangeLog 2021-03-05 02:57:55 UTC (rev 273939) +++ trunk/Source/_javascript_Core/ChangeLog 2021-03-05 04:17:40 UTC (rev 273940) @@ -1,3 +1,16 @@ +2021-03-04 Alex Christensen + +[Cocoa] REGRESSION(r272752): fix some internal builds that use WTFString::WTFString(NSString *) +https://bugs.webkit.org/show_bug.cgi?id=222610 + +Reviewed by Chris Dumez. + +* inspector/scripts/codegen/objc_generator.py: +(ObjCGenerator.objc_protocol_import_expression_for_member): +(ObjCGenerator.objc_protocol_import_expression_for_parameter): +(ObjCGenerator.protocol_to_objc_expression_for_member): +(ObjCGenerator.payload_to_objc_expression_for_member): + 2021-03-04 Saam Barati Don't trust parsing information to tell us if we've emitted op_call_eval Modified: trunk/Source/_javascript_Core/inspector/scripts/codegen/objc_generator.py (273939 => 273940) --- trunk/Source/_javascript_Core/inspector/scripts/codegen/objc_generator.py 2021-03-05 02:57:55 UTC (rev 273939) +++ trunk/Source/_javascript_Core/inspector/scripts/codegen/objc_generator.py 2021-03-05 04:17:40 UTC (rev 273940) @@ -390,8 +390,8 @@ def objc_protocol_import_expression_for_member(self, name, declaration, member): if isinstance(member.type, EnumType): if member.type.is_anonymous: -return 'fromProtocolString<%s>(%s)' % (self.objc_enum_name_for_anonymous_enum_member(declaration, member), name) -return 'fromProtocolString<%s>(%s)' % (self.objc_enum_name_for_non_anonymous_enum(member.type), name) +return 'fromProtocolString<%s>((__bridge CFStringRef)%s)' % (self.objc_enum_name_for_anonymous_enum_member(declaration, member), name) +return 'fromProtocolString<%s>((__bridge CFStringRef)%s)' % (self.objc_enum_name_for_non_anonymous_enum(member.type), name) return self.objc_protocol_import_expression_for_variable(member.type, name) def objc_protocol_import_expression_for_parameter(self, name, domain, event_or_command_name, parameter): @@ -442,8 +442,8 @@ if category in [ObjCTypeCategory.Simple, ObjCTypeCategory.String]: if isinstance(member.type, EnumType): if member.type.is_anonymous: -return 'fromProtocolString<%s>(%s).value()' % (self.objc_enum_name_for_anonymous_enum_member(declaration, member), sub_expression) -return 'fromProtocolString<%s>(%s).value()' % (self.objc_enum_name_for_non_anonymous_enum(member.type), sub_expression) +return 'fromProtocolString<%s>((__bridge CFStringRef)%s).value()' % (self.objc_enum_name_for_anonymous_enum_member(declaration, member), sub_expression) +return 'fromProtocolString<%s>((__bridge CFStringRef)%s).value()' % (self.objc_enum_name_for_non_anonymous_enum(member.type), sub_expression) return sub_expression if category == ObjCTypeCategory.Object: raise Exception("protocol_to_objc_expression_for_member does not support an Object type. See: protocol_to_objc_code_block_for_object_member") @@ -487,9 +487,9 @@ if isinstance(member.type, EnumType): sub_expression = 'payload[@"%s"]' % member.member_name if member.type.is_anonymous: -return 'fromProtocolString<%s>(%s)' % (self.objc_enum_name_for_anonymous_enum_member(declaration, member), sub_expression) +return 'fromProtocolString<%s>((__bridge CFStringRef)%s)' % (self.objc_enum_name_for_anonymous_enum_member(declaration, member), sub_expression) else: -return 'fromProtocolString<%s>(%s)' % (self.objc_enum_name_for_non_anonymous_enum(member.type), sub_expression) +return 'fromProtocolString<%s>((__bridge CFStringRef)%s)' % (self.objc_enum_name_for_non_anonymous_enum(member.type), sub_expression) if isinstance(_type, ObjectType): objc_class = self.objc_class_for_type(member.type) return '[[%s alloc] initWithPayload:payload[@"%s"]]' % (objc_class, member.member_name)
[webkit-changes] [273939] trunk/Source
Title: [273939] trunk/Source Revision 273939 Author drou...@apple.com Date 2021-03-04 18:57:55 -0800 (Thu, 04 Mar 2021) Log Message [Payment Request] remove some unnecessary WebKitAdditions hooks https://bugs.webkit.org/show_bug.cgi?id=222765 Reviewed by Andy Estes. Source/WebCore: * Modules/applepay/ApplePaySession.cpp: Source/WebKit: * Shared/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.mm: Modified Paths trunk/Source/WebCore/ChangeLog trunk/Source/WebCore/Modules/applepay/ApplePaySession.cpp trunk/Source/WebKit/ChangeLog trunk/Source/WebKit/Shared/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.mm Diff Modified: trunk/Source/WebCore/ChangeLog (273938 => 273939) --- trunk/Source/WebCore/ChangeLog 2021-03-05 01:50:52 UTC (rev 273938) +++ trunk/Source/WebCore/ChangeLog 2021-03-05 02:57:55 UTC (rev 273939) @@ -1,3 +1,13 @@ +2021-03-04 Devin Rousso + +[Payment Request] remove some unnecessary WebKitAdditions hooks +https://bugs.webkit.org/show_bug.cgi?id=222765 + + +Reviewed by Andy Estes. + +* Modules/applepay/ApplePaySession.cpp: + 2021-03-04 Julian Gonzalez Deploy Ref in SVGUseElement.cpp Modified: trunk/Source/WebCore/Modules/applepay/ApplePaySession.cpp (273938 => 273939) --- trunk/Source/WebCore/Modules/applepay/ApplePaySession.cpp 2021-03-05 01:50:52 UTC (rev 273938) +++ trunk/Source/WebCore/Modules/applepay/ApplePaySession.cpp 2021-03-05 02:57:55 UTC (rev 273939) @@ -141,10 +141,6 @@ return WTFMove(result); } -#if defined(ApplePaySessionAdditions_convertAndValidate) -ApplePaySessionAdditions_convertAndValidate -#endif - static ExceptionOr convertAndValidate(Document& document, unsigned version, ApplePayPaymentRequest&& paymentRequest, const PaymentCoordinator& paymentCoordinator) { auto convertedRequest = convertAndValidate(document, version, paymentRequest, paymentCoordinator); Modified: trunk/Source/WebKit/ChangeLog (273938 => 273939) --- trunk/Source/WebKit/ChangeLog 2021-03-05 01:50:52 UTC (rev 273938) +++ trunk/Source/WebKit/ChangeLog 2021-03-05 02:57:55 UTC (rev 273939) @@ -1,3 +1,13 @@ +2021-03-04 Devin Rousso + +[Payment Request] remove some unnecessary WebKitAdditions hooks +https://bugs.webkit.org/show_bug.cgi?id=222765 + + +Reviewed by Andy Estes. + +* Shared/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.mm: + 2021-03-04 Sihui Liu Validate documentState of FrameState when setting and getting it Modified: trunk/Source/WebKit/Shared/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.mm (273938 => 273939) --- trunk/Source/WebKit/Shared/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.mm 2021-03-05 01:50:52 UTC (rev 273938) +++ trunk/Source/WebKit/Shared/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.mm 2021-03-05 02:57:55 UTC (rev 273939) @@ -61,10 +61,6 @@ namespace WebKit { -#if defined(WebPaymentCoordinatorProxyCocoaAdditions_members) -WebPaymentCoordinatorProxyCocoaAdditions_members -#endif - WebPaymentCoordinatorProxy::WebPaymentCoordinatorProxy(WebPaymentCoordinatorProxy::Client& client) : m_client(client) , m_canMakePaymentsQueue(WorkQueue::create("com.apple.WebKit.CanMakePayments")) ___ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes
[webkit-changes] [273938] trunk/Source/WebCore
Title: [273938] trunk/Source/WebCore Revision 273938 Author commit-qu...@webkit.org Date 2021-03-04 17:50:52 -0800 (Thu, 04 Mar 2021) Log Message Deploy Ref in SVGUseElement.cpp https://bugs.webkit.org/show_bug.cgi?id=222637 Patch by Julian Gonzalez on 2021-03-04 Reviewed by Ryosuke Niwa. Remove usage of raw pointers in a few functions here that showed issues in 222397. Thanks to Darin Adler for the initial version of this patch and Ryosuke Niwa for refinements. * svg/SVGUseElement.cpp: (WebCore::disassociateAndRemoveClones): (WebCore::removeDisallowedElementsFromSubtree): (WebCore::removeSymbolElementsFromSubtree): Modified Paths trunk/Source/WebCore/ChangeLog trunk/Source/WebCore/svg/SVGUseElement.cpp Diff Modified: trunk/Source/WebCore/ChangeLog (273937 => 273938) --- trunk/Source/WebCore/ChangeLog 2021-03-05 01:45:24 UTC (rev 273937) +++ trunk/Source/WebCore/ChangeLog 2021-03-05 01:50:52 UTC (rev 273938) @@ -1,3 +1,21 @@ +2021-03-04 Julian Gonzalez + +Deploy Ref in SVGUseElement.cpp +https://bugs.webkit.org/show_bug.cgi?id=222637 + +Reviewed by Ryosuke Niwa. + +Remove usage of raw pointers in a few functions here +that showed issues in 222397. + +Thanks to Darin Adler for the initial version of this patch +and Ryosuke Niwa for refinements. + +* svg/SVGUseElement.cpp: +(WebCore::disassociateAndRemoveClones): +(WebCore::removeDisallowedElementsFromSubtree): +(WebCore::removeSymbolElementsFromSubtree): + 2021-03-04 Ryosuke Niwa "precustomized" state of custom elements can become HTMLUnknownElement Modified: trunk/Source/WebCore/svg/SVGUseElement.cpp (273937 => 273938) --- trunk/Source/WebCore/svg/SVGUseElement.cpp 2021-03-05 01:45:24 UTC (rev 273937) +++ trunk/Source/WebCore/svg/SVGUseElement.cpp 2021-03-05 01:50:52 UTC (rev 273938) @@ -309,14 +309,14 @@ return targetClone->renderer(); } -static inline void disassociateAndRemoveClones(const Vector& clones) +static inline void disassociateAndRemoveClones(const Vector>& clones) { for (auto& clone : clones) { -for (auto& descendant : descendantsOfType(*clone)) +for (auto& descendant : descendantsOfType(clone.get())) descendant.setCorrespondingElement(nullptr); if (is(clone)) -downcast(*clone).setCorrespondingElement(nullptr); -clone->parentNode()->removeChild(*clone); +downcast(clone.get()).setCorrespondingElement(nullptr); +clone->remove(); } } @@ -330,10 +330,10 @@ // Assert that it's not in a document to make sure callers are still using it this way. ASSERT(!subtree.isConnected()); -Vector disallowedElements; +Vector> disallowedElements; for (auto it = descendantsOfType(subtree).begin(); it; ) { if (isDisallowedElement(*it)) { -disallowedElements.append(&*it); +disallowedElements.append(*it); it.traverseNextSkippingChildren(); continue; } @@ -349,10 +349,10 @@ // don't need to be cloned to get correct rendering. 2) expandSymbolElementsInShadowTree will turn them // into elements, which is correct for symbol elements directly referenced by use elements, // but incorrect for ones that just happen to be in a subtree. -Vector symbolElements; +Vector> symbolElements; for (auto it = descendantsOfType(subtree).begin(); it; ) { if (is(*it)) { -symbolElements.append(&*it); +symbolElements.append(*it); it.traverseNextSkippingChildren(); continue; } ___ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes
[webkit-changes] [273937] tags/Safari-611.1.21.0.4/
Title: [273937] tags/Safari-611.1.21.0.4/ Revision 273937 Author repst...@apple.com Date 2021-03-04 17:45:24 -0800 (Thu, 04 Mar 2021) Log Message Tag Safari-611.1.21.0.4. Added Paths tags/Safari-611.1.21.0.4/ Diff ___ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes
[webkit-changes] [273936] tags/Safari-611.1.21.1.5/
Title: [273936] tags/Safari-611.1.21.1.5/ Revision 273936 Author repst...@apple.com Date 2021-03-04 17:44:37 -0800 (Thu, 04 Mar 2021) Log Message Tag Safari-611.1.21.1.5. Added Paths tags/Safari-611.1.21.1.5/ Diff ___ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes
[webkit-changes] [273935] trunk/Source/WebCore
Title: [273935] trunk/Source/WebCore Revision 273935 Author rn...@webkit.org Date 2021-03-04 17:28:03 -0800 (Thu, 04 Mar 2021) Log Message "precustomized" state of custom elements can become HTMLUnknownElement https://bugs.webkit.org/show_bug.cgi?id=221652 Reviewed by Darin Adler. The bug was caused by createJSHTMLWrapper in JSHTMLElementWrapperFactory.cpp relying on !isCustomElementUpgradeCandidate() to create HTMLUnknownElement as JS wrapper of the element. This is problematic after r266269 since that change re-purposes CustomElementState::Failed on a custom element as "precustomized" state instead of introducing another enum value in CustomElementState as RareDataBitFields has no more bits available. This patch fixes the problem by introducing a new NodeFlag::IsUnknownElement and using that to check whether JSHTMLUnknownElement should be created for a given element or not. Note that HTMLElement had a virtual function, isHTMLUnknownElement, to check this condition but invoking a virtual function proved to incur too much runtime cost. * dom/Node.h: (WebCore::Node::isUnknownElement const): Added. (WebCore::Node::isHTMLUnknownElement const): Added. (WebCore::Node::isSVGUnknownElement const): Added. (WebCore::Node::isMathMLUnknownElement const): Added. (WebCore::Node::NodeFlag): Added NodeFlag::IsUnknownElement. * dom/make_names.pl: (printWrapperFactoryCppFile): Treat the element as HTMLUnknownElement only if isUnknownElement returns true instead of isCustomElementUpgradeCandidate returning false. * html/HTMLElement.h: (WebCore::HTMLElement::isHTMLUnknownElement const): Deleted. * html/HTMLUnknownElement.h: * mathml/MathMLElement.cpp: (WebCore::MathMLElement::MathMLElement): Added ConstructionType as an argument. * mathml/MathMLElement.h: * mathml/MathMLUnknownElement.h: (WebCore::MathMLUnknownElement::MathMLUnknownElement): Set NodeFlag::IsUnknownElement. * svg/SVGElement.cpp: (WebCore::SVGElement::SVGElement): Added ConstructionType as an argument. * svg/SVGElement.h: * svg/SVGUnknownElement.h: (WebCore::SVGUnknownElement::SVGUnknownElement): Set NodeFlag::IsUnknownElement. Modified Paths trunk/Source/WebCore/ChangeLog trunk/Source/WebCore/dom/Node.h trunk/Source/WebCore/dom/make_names.pl trunk/Source/WebCore/html/HTMLElement.h trunk/Source/WebCore/html/HTMLUnknownElement.h trunk/Source/WebCore/mathml/MathMLElement.cpp trunk/Source/WebCore/mathml/MathMLElement.h trunk/Source/WebCore/mathml/MathMLUnknownElement.h trunk/Source/WebCore/svg/SVGElement.cpp trunk/Source/WebCore/svg/SVGElement.h trunk/Source/WebCore/svg/SVGUnknownElement.h Diff Modified: trunk/Source/WebCore/ChangeLog (273934 => 273935) --- trunk/Source/WebCore/ChangeLog 2021-03-05 01:18:12 UTC (rev 273934) +++ trunk/Source/WebCore/ChangeLog 2021-03-05 01:28:03 UTC (rev 273935) @@ -1,3 +1,45 @@ +2021-03-04 Ryosuke Niwa + +"precustomized" state of custom elements can become HTMLUnknownElement +https://bugs.webkit.org/show_bug.cgi?id=221652 + +Reviewed by Darin Adler. + +The bug was caused by createJSHTMLWrapper in JSHTMLElementWrapperFactory.cpp relying on +!isCustomElementUpgradeCandidate() to create HTMLUnknownElement as JS wrapper of the element. + +This is problematic after r266269 since that change re-purposes CustomElementState::Failed +on a custom element as "precustomized" state instead of introducing another enum value in +CustomElementState as RareDataBitFields has no more bits available. + +This patch fixes the problem by introducing a new NodeFlag::IsUnknownElement and using that +to check whether JSHTMLUnknownElement should be created for a given element or not. Note that +HTMLElement had a virtual function, isHTMLUnknownElement, to check this condition but invoking +a virtual function proved to incur too much runtime cost. + +* dom/Node.h: +(WebCore::Node::isUnknownElement const): Added. +(WebCore::Node::isHTMLUnknownElement const): Added. +(WebCore::Node::isSVGUnknownElement const): Added. +(WebCore::Node::isMathMLUnknownElement const): Added. +(WebCore::Node::NodeFlag): Added NodeFlag::IsUnknownElement. +* dom/make_names.pl: +(printWrapperFactoryCppFile): Treat the element as HTMLUnknownElement only if isUnknownElement +returns true instead of isCustomElementUpgradeCandidate returning false. +* html/HTMLElement.h: +(WebCore::HTMLElement::isHTMLUnknownElement const): Deleted. +* html/HTMLUnknownElement.h: +* mathml/MathMLElement.cpp: +(WebCore::MathMLElement::MathMLElement): Added ConstructionType as an argument. +* mathml/MathMLElement.h: +* mathml/MathMLUnknownElement.h: +(WebCore::MathMLUnknownElement::MathMLUnknownElement): Set NodeFlag::IsUnknownElement. +* svg/SVGElement.cpp: +(WebCore::SVGElement::SVGElement): Added ConstructionType as an argument. +
[webkit-changes] [273934] trunk/Tools
Title: [273934] trunk/Tools Revision 273934 Author commit-qu...@webkit.org Date 2021-03-04 17:18:12 -0800 (Thu, 04 Mar 2021) Log Message Undeprecate many more webkit-patch commands https://bugs.webkit.org/show_bug.cgi?id=222745 Patch by Sam Sneddon on 2021-03-04 Reviewed by Jonathan Bedard. * Scripts/webkitpy/tool/commands/download.py: (ChangeStyleLocal): * Scripts/webkitpy/tool/commands/queries.py: (SuggestReviewers): * Scripts/webkitpy/tool/commands/setupgitclone.py: (SetupGitClone): * Scripts/webkitpy/tool/commands/suggestnominations.py: (SuggestNominations): * Scripts/webkitpy/tool/commands/upload.py: (Post): (Prepare): (MarkBugFixed): Modified Paths trunk/Tools/ChangeLog trunk/Tools/Scripts/webkitpy/tool/commands/download.py trunk/Tools/Scripts/webkitpy/tool/commands/queries.py trunk/Tools/Scripts/webkitpy/tool/commands/setupgitclone.py trunk/Tools/Scripts/webkitpy/tool/commands/suggestnominations.py trunk/Tools/Scripts/webkitpy/tool/commands/upload.py Diff Modified: trunk/Tools/ChangeLog (273933 => 273934) --- trunk/Tools/ChangeLog 2021-03-05 00:45:13 UTC (rev 273933) +++ trunk/Tools/ChangeLog 2021-03-05 01:18:12 UTC (rev 273934) @@ -1,3 +1,23 @@ +2021-03-04 Sam Sneddon + +Undeprecate many more webkit-patch commands +https://bugs.webkit.org/show_bug.cgi?id=222745 + +Reviewed by Jonathan Bedard. + +* Scripts/webkitpy/tool/commands/download.py: +(ChangeStyleLocal): +* Scripts/webkitpy/tool/commands/queries.py: +(SuggestReviewers): +* Scripts/webkitpy/tool/commands/setupgitclone.py: +(SetupGitClone): +* Scripts/webkitpy/tool/commands/suggestnominations.py: +(SuggestNominations): +* Scripts/webkitpy/tool/commands/upload.py: +(Post): +(Prepare): +(MarkBugFixed): + 2021-03-04 Aakash Jain Reduce unnecessary logging in ews-app Modified: trunk/Tools/Scripts/webkitpy/tool/commands/download.py (273933 => 273934) --- trunk/Tools/Scripts/webkitpy/tool/commands/download.py 2021-03-05 00:45:13 UTC (rev 273933) +++ trunk/Tools/Scripts/webkitpy/tool/commands/download.py 2021-03-05 01:18:12 UTC (rev 273934) @@ -144,7 +144,6 @@ LandCowhand._prepare_state(self, options, args, tool) -@DeprecatedCommand class CheckStyleLocal(AbstractSequencedCommand): name = "check-style-local" help_text = "Run check-webkit-style on the current working directory diff" Modified: trunk/Tools/Scripts/webkitpy/tool/commands/queries.py (273933 => 273934) --- trunk/Tools/Scripts/webkitpy/tool/commands/queries.py 2021-03-05 00:45:13 UTC (rev 273933) +++ trunk/Tools/Scripts/webkitpy/tool/commands/queries.py 2021-03-05 01:18:12 UTC (rev 273934) @@ -58,7 +58,6 @@ _log = logging.getLogger(__name__) -@DeprecatedCommand class SuggestReviewers(AbstractSequencedCommand): name = "suggest-reviewers" help_text = "Suggest reviewers for a patch based on recent changes to the modified files." Modified: trunk/Tools/Scripts/webkitpy/tool/commands/setupgitclone.py (273933 => 273934) --- trunk/Tools/Scripts/webkitpy/tool/commands/setupgitclone.py 2021-03-05 00:45:13 UTC (rev 273933) +++ trunk/Tools/Scripts/webkitpy/tool/commands/setupgitclone.py 2021-03-05 01:18:12 UTC (rev 273934) @@ -32,7 +32,6 @@ from webkitpy.tool.multicommandtool import Command -@DeprecatedCommand class SetupGitClone(Command): name = "setup-git-clone" help_text = "Configures a new Git clone for the WebKit development" Modified: trunk/Tools/Scripts/webkitpy/tool/commands/suggestnominations.py (273933 => 273934) --- trunk/Tools/Scripts/webkitpy/tool/commands/suggestnominations.py 2021-03-05 00:45:13 UTC (rev 273933) +++ trunk/Tools/Scripts/webkitpy/tool/commands/suggestnominations.py 2021-03-05 01:18:12 UTC (rev 273934) @@ -145,7 +145,6 @@ } -@DeprecatedCommand class SuggestNominations(AbstractCommitLogCommand): name = "suggest-nominations" help_text = "Suggest contributors for committer/reviewer nominations" Modified: trunk/Tools/Scripts/webkitpy/tool/commands/upload.py (273933 => 273934) --- trunk/Tools/Scripts/webkitpy/tool/commands/upload.py 2021-03-05 00:45:13 UTC (rev 273933) +++ trunk/Tools/Scripts/webkitpy/tool/commands/upload.py 2021-03-05 01:18:12 UTC (rev 273934) @@ -214,7 +214,6 @@ return state -@DeprecatedCommand class Post(AbstractPatchUploadingCommand): name = "post" help_text = "Attach the current working directory diff to a bug as a patch file" @@ -259,7 +258,6 @@ ] -@DeprecatedCommand class Prepare(AbstractSequencedCommand): name = "prepare" help_text = "Creates a bug (or prompts for an existing bug) and prepares the ChangeLogs" @@ -381,7 +379,6 @@ # FIXME: This command needs to be brought into the modern age with steps and CommitInfo. -@DeprecatedCommand class MarkBugFixed(Command): name = "mark-bug-fixed" help_text = "Mark the specified bug as fixed"
[webkit-changes] [273933] trunk/LayoutTests
Title: [273933] trunk/LayoutTests Revision 273933 Author peng.l...@apple.com Date 2021-03-04 16:45:13 -0800 (Thu, 04 Mar 2021) Log Message [GPUP] Some tests in imported/w3c/web-platform-tests/html/semantics/embedded-content/media-elements fail when media in GPU Process is enabled https://bugs.webkit.org/show_bug.cgi?id=221697 Unreviewed test gardening. Remove the tests which are consistently passing on bots from the test expectations. * platform/wk2/TestExpectations: Modified Paths trunk/LayoutTests/ChangeLog trunk/LayoutTests/platform/wk2/TestExpectations Diff Modified: trunk/LayoutTests/ChangeLog (273932 => 273933) --- trunk/LayoutTests/ChangeLog 2021-03-05 00:43:41 UTC (rev 273932) +++ trunk/LayoutTests/ChangeLog 2021-03-05 00:45:13 UTC (rev 273933) @@ -1,3 +1,14 @@ +2021-03-04 Peng Liu + +[GPUP] Some tests in imported/w3c/web-platform-tests/html/semantics/embedded-content/media-elements fail when media in GPU Process is enabled +https://bugs.webkit.org/show_bug.cgi?id=221697 + +Unreviewed test gardening. + +Remove the tests which are consistently passing on bots from the test expectations. + +* platform/wk2/TestExpectations: + 2021-03-04 Ryan Haddad Unreivewed test gardening, remove failure expectation for some tests that are consistently passing. Modified: trunk/LayoutTests/platform/wk2/TestExpectations (273932 => 273933) --- trunk/LayoutTests/platform/wk2/TestExpectations 2021-03-05 00:43:41 UTC (rev 273932) +++ trunk/LayoutTests/platform/wk2/TestExpectations 2021-03-05 00:45:13 UTC (rev 273933) @@ -216,9 +216,6 @@ http/tests/media/hls/hls-progress.html [ Failure ] http/tests/media/video-play-stall.html [ Failure ] -# webkit.org/b/221697 -imported/w3c/web-platform-tests/html/semantics/embedded-content/media-elements/event_progress_noautoplay.html [ Failure ] - # webkit.org/b/221685 media/modern-media-controls/controls-visibility-support/controls-visibility-support-fullscreen-on-video.html [ Timeout Failure Pass ] media/modern-media-controls/fullscreen-support/fullscreen-support-press.html [ Timeout Pass ] @@ -234,9 +231,6 @@ media/modern-media-controls/seek-backward-support/seek-backward-support.html [ Timeout Pass ] http/tests/media/modern-media-controls/macos-fullscreen-media-controls/macos-fullscreen-media-controls-live-broadcast.html [ Timeout ] -# webkit.org/b/221689 -media/picture-in-picture/picture-in-picture-api-pip-window.html [ Timeout Pass ] - # webkit.org/b/221693 media/encrypted-media/clearKey/clearKey-session-life-cycle.html [ Failure Crash ] media/media-controller-unpause.html [ Timeout ] ___ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes
[webkit-changes] [273932] trunk/LayoutTests
Title: [273932] trunk/LayoutTests Revision 273932 Author ryanhad...@apple.com Date 2021-03-04 16:43:41 -0800 (Thu, 04 Mar 2021) Log Message Unreivewed test gardening, remove failure expectation for some tests that are consistently passing. * platform/ios-wk2/TestExpectations: Modified Paths trunk/LayoutTests/ChangeLog trunk/LayoutTests/platform/ios-wk2/TestExpectations Diff Modified: trunk/LayoutTests/ChangeLog (273931 => 273932) --- trunk/LayoutTests/ChangeLog 2021-03-05 00:18:23 UTC (rev 273931) +++ trunk/LayoutTests/ChangeLog 2021-03-05 00:43:41 UTC (rev 273932) @@ -1,3 +1,9 @@ +2021-03-04 Ryan Haddad + +Unreivewed test gardening, remove failure expectation for some tests that are consistently passing. + +* platform/ios-wk2/TestExpectations: + 2021-03-04 Jon Lee [GPUP] Test platform/mac/media/encrypted-media/fps-encrypted-event.html times out when media in GPU Process is enabled Modified: trunk/LayoutTests/platform/ios-wk2/TestExpectations (273931 => 273932) --- trunk/LayoutTests/platform/ios-wk2/TestExpectations 2021-03-05 00:18:23 UTC (rev 273931) +++ trunk/LayoutTests/platform/ios-wk2/TestExpectations 2021-03-05 00:43:41 UTC (rev 273932) @@ -1889,12 +1889,6 @@ webkit.org/b/217641 [ Debug ] imported/w3c/web-platform-tests/xhr/event-timeout.any.worker.html [ Pass Failure ] -# 2 compositing/contents-scale/* and 2 fast/canvas/canvas* tests are flaky failures -compositing/contents-scale/non-decomposable-matrix.html [ Pass Failure ] -compositing/contents-scale/rasterization-scale.html [ Pass Failure ] -fast/canvas/canvas-blending-global-alpha.html [ Pass Failure ] -fast/canvas/canvas-scale-shadowBlur.html [ Pass Failure ] - webkit.org/b/219403 imported/w3c/web-platform-tests/webrtc/RTCPeerConnection-candidate-in-sdp.https.html [ Pass Failure ] webkit.org/b/219438 [ Release ] fast/canvas/canvas-overflow-hidden-animation.html [ Pass ImageOnlyFailure ] ___ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes
[webkit-changes] [273931] trunk
Title: [273931] trunk Revision 273931 Author sbar...@apple.com Date 2021-03-04 16:18:23 -0800 (Thu, 04 Mar 2021) Log Message Don't trust parsing information to tell us if we've emitted op_call_eval https://bugs.webkit.org/show_bug.cgi?id=222694 rdar://74778016 Reviewed by Yusuke Suzuki. JSTests: * stress/eval-liveness-should-not-come-from-parser.js: Added. (foo): Source/_javascript_Core: In the DFG, op_call_eval can't be inlined. Not inlining is required for how eval is currently implemented in the DFG. For CodeBlocks with eval in them, the scope register is also alive everywhere. When doing spread of arguments in eval, we end up emitting a call varargs instead of a direct eval. This seems like a spec bug: https://bugs.webkit.org/show_bug.cgi?id=222671 However, this leads to something that had eval textually in it leading to us reporting the scope register is always alive, even if op_call_eval isn't in the bytecode stream. This leads to a validation error, since the DFG isn't actually keeping this scope register alive everywhere, because op_call_eval isn't in the bytecode stream. This patch fixes this by having a bit indicating if op_call_eval is in the bytecode stream or not. * bytecode/BytecodeUseDef.h: (JSC::computeUsesForBytecodeIndex): * bytecode/CodeBlock.h: (JSC::CodeBlock::usesCallEval const): (JSC::CodeBlock::usesEval const): Deleted. * bytecode/ExecutableInfo.h: (JSC::ExecutableInfo::ExecutableInfo): (JSC::ExecutableInfo::usesEval const): Deleted. * bytecode/UnlinkedCodeBlock.cpp: (JSC::UnlinkedCodeBlock::UnlinkedCodeBlock): * bytecode/UnlinkedCodeBlock.h: (JSC::UnlinkedCodeBlock::usesCallEval const): (JSC::UnlinkedCodeBlock::setUsesCallEval): (JSC::UnlinkedCodeBlock::usesEval const): Deleted. * bytecode/UnlinkedCodeBlockGenerator.h: (JSC::UnlinkedCodeBlockGenerator::usesCallEval const): (JSC::UnlinkedCodeBlockGenerator::setUsesCallEval): (JSC::UnlinkedCodeBlockGenerator::usesEval const): Deleted. * bytecode/UnlinkedFunctionExecutable.cpp: (JSC::generateUnlinkedFunctionCodeBlock): * bytecompiler/BytecodeGenerator.cpp: (JSC::BytecodeGenerator::BytecodeGenerator): (JSC::BytecodeGenerator::emitCall): (JSC::BytecodeGenerator::isThisUsedInInnerArrowFunction): (JSC::BytecodeGenerator::isNewTargetUsedInInnerArrowFunction): (JSC::BytecodeGenerator::isSuperUsedInInnerArrowFunction): (JSC::BytecodeGenerator::isSuperCallUsedInInnerArrowFunction): * dfg/DFGGraph.h: * runtime/CachedTypes.cpp: (JSC::CachedCodeBlock::usesCallEval const): (JSC::UnlinkedCodeBlock::UnlinkedCodeBlock): (JSC::CachedCodeBlock::encode): (JSC::CachedCodeBlock::usesEval const): Deleted. * runtime/CodeCache.cpp: (JSC::generateUnlinkedCodeBlockImpl): * runtime/EvalExecutable.h: (JSC::EvalExecutable::executableInfo const): Deleted. * runtime/ModuleProgramExecutable.h: * runtime/ProgramExecutable.h: * runtime/ScriptExecutable.h: (JSC::ScriptExecutable::usesEval const): Deleted. Modified Paths trunk/JSTests/ChangeLog trunk/Source/_javascript_Core/ChangeLog trunk/Source/_javascript_Core/bytecode/BytecodeUseDef.h trunk/Source/_javascript_Core/bytecode/CodeBlock.h trunk/Source/_javascript_Core/bytecode/ExecutableInfo.h trunk/Source/_javascript_Core/bytecode/UnlinkedCodeBlock.cpp trunk/Source/_javascript_Core/bytecode/UnlinkedCodeBlock.h trunk/Source/_javascript_Core/bytecode/UnlinkedCodeBlockGenerator.h trunk/Source/_javascript_Core/bytecode/UnlinkedFunctionExecutable.cpp trunk/Source/_javascript_Core/bytecompiler/BytecodeGenerator.cpp trunk/Source/_javascript_Core/dfg/DFGGraph.h trunk/Source/_javascript_Core/runtime/CachedTypes.cpp trunk/Source/_javascript_Core/runtime/CodeCache.cpp trunk/Source/_javascript_Core/runtime/EvalExecutable.h trunk/Source/_javascript_Core/runtime/ModuleProgramExecutable.h trunk/Source/_javascript_Core/runtime/ProgramExecutable.h trunk/Source/_javascript_Core/runtime/ScriptExecutable.h Added Paths trunk/JSTests/stress/eval-liveness-should-not-come-from-parser.js Diff Modified: trunk/JSTests/ChangeLog (273930 => 273931) --- trunk/JSTests/ChangeLog 2021-03-05 00:14:08 UTC (rev 273930) +++ trunk/JSTests/ChangeLog 2021-03-05 00:18:23 UTC (rev 273931) @@ -1,3 +1,14 @@ +2021-03-04 Saam Barati + +Don't trust parsing information to tell us if we've emitted op_call_eval +https://bugs.webkit.org/show_bug.cgi?id=222694 +rdar://74778016 + +Reviewed by Yusuke Suzuki. + +* stress/eval-liveness-should-not-come-from-parser.js: Added. +(foo): + 2021-03-03 Yusuke Suzuki [JSC] Update test262 Added: trunk/JSTests/stress/eval-liveness-should-not-come-from-parser.js (0 => 273931) --- trunk/JSTests/stress/eval-liveness-should-not-come-from-parser.js (rev 0) +++ trunk/JSTests/stress/eval-liveness-should-not-come-from-parser.js 2021-03-05 00:18:23 UTC (rev 273931) @@ -0,0 +1,12 @@ +//@ runDefault("--validateGraphAtEachPhase=1", "--validateFTLOSRExitLiveness=1", "--useConcurrentJIT=0", "--jitPolicyScale=0",
[webkit-changes] [273930] trunk/Tools
Title: [273930] trunk/Tools Revision 273930 Author aakash_j...@apple.com Date 2021-03-04 16:14:08 -0800 (Thu, 04 Mar 2021) Log Message Reduce unnecessary logging in ews-app https://bugs.webkit.org/show_bug.cgi?id=222764 Reviewed by Jonathan Bedard. * CISupport/ews-app/ews/views/retrypatch.py: (RetryPatch.post): Modified Paths trunk/Tools/CISupport/ews-app/ews/views/retrypatch.py trunk/Tools/ChangeLog Diff Modified: trunk/Tools/CISupport/ews-app/ews/views/retrypatch.py (273929 => 273930) --- trunk/Tools/CISupport/ews-app/ews/views/retrypatch.py 2021-03-05 00:12:41 UTC (rev 273929) +++ trunk/Tools/CISupport/ews-app/ews/views/retrypatch.py 2021-03-05 00:14:08 UTC (rev 273930) @@ -47,7 +47,7 @@ patch_id = request.POST.get('patch_id') patch_id = int(patch_id) except (ValueError, TypeError) as e: -return HttpResponse('Invalid patch id: {}'.format(request.POST.get('patch_id'))) +return HttpResponse('Invalid patch id') builds_to_retry = StatusBubble().find_failed_builds_for_patch(patch_id) _log.info('Retrying patch: {}. Failed builds: {}'.format(patch_id, builds_to_retry)) Modified: trunk/Tools/ChangeLog (273929 => 273930) --- trunk/Tools/ChangeLog 2021-03-05 00:12:41 UTC (rev 273929) +++ trunk/Tools/ChangeLog 2021-03-05 00:14:08 UTC (rev 273930) @@ -1,3 +1,13 @@ +2021-03-04 Aakash Jain + +Reduce unnecessary logging in ews-app +https://bugs.webkit.org/show_bug.cgi?id=222764 + +Reviewed by Jonathan Bedard. + +* CISupport/ews-app/ews/views/retrypatch.py: +(RetryPatch.post): + 2021-03-04 Matt Lewis Add Apple Silicon Devices to Big Sur builders and testers. ___ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes
[webkit-changes] [273929] trunk/Source/WebKit
Title: [273929] trunk/Source/WebKit Revision 273929 Author commit-qu...@webkit.org Date 2021-03-04 16:12:41 -0800 (Thu, 04 Mar 2021) Log Message Validate documentState of FrameState when setting and getting it https://bugs.webkit.org/show_bug.cgi?id=222587 Patch by Sihui Liu on 2021-03-04 Reviewed by Geoffrey Garen. In rdar://48634553, strings of documentState can be invalid when they are encoded in encodeFrameStateNode in UI process. To get a better idea of when the strings become invalid, add checks for documentState when getting and setting it. No test as no behavior change. * Shared/SessionState.cpp: (WebKit::FrameState::encode const): (WebKit::FrameState::decode): (WebKit::FrameState::validateDocumentState const): (WebKit::FrameState::setDocumentState): * Shared/SessionState.h: (WebKit::FrameState::FrameState): (WebKit::FrameState::~FrameState): (WebKit::FrameState::documentState const): * Shared/WebBackForwardListItem.cpp: (WebKit::WebBackForwardListItem::create): (WebKit::WebBackForwardListItem::~WebBackForwardListItem): * UIProcess/API/glib/WebKitWebViewSessionState.cpp: (encodeFrameState): (decodeFrameState): * UIProcess/Cocoa/SessionStateCoding.h: * UIProcess/LegacySessionStateCoding.h: * UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::sessionState const): * UIProcess/mac/LegacySessionStateCoding.cpp: (WebKit::encodeFrameStateNode): (WebKit::decodeBackForwardTreeNode): * WebProcess/WebCoreSupport/SessionStateConversion.cpp: (WebKit::toFrameState): (WebKit::applyFrameState): Modified Paths trunk/Source/WebKit/ChangeLog trunk/Source/WebKit/Shared/SessionState.cpp trunk/Source/WebKit/Shared/SessionState.h trunk/Source/WebKit/Shared/WebBackForwardListItem.cpp trunk/Source/WebKit/UIProcess/API/glib/WebKitWebViewSessionState.cpp trunk/Source/WebKit/UIProcess/Cocoa/SessionStateCoding.h trunk/Source/WebKit/UIProcess/LegacySessionStateCoding.h trunk/Source/WebKit/UIProcess/WebPageProxy.cpp trunk/Source/WebKit/UIProcess/mac/LegacySessionStateCoding.cpp trunk/Source/WebKit/WebProcess/WebCoreSupport/SessionStateConversion.cpp Diff Modified: trunk/Source/WebKit/ChangeLog (273928 => 273929) --- trunk/Source/WebKit/ChangeLog 2021-03-04 23:58:19 UTC (rev 273928) +++ trunk/Source/WebKit/ChangeLog 2021-03-05 00:12:41 UTC (rev 273929) @@ -1,3 +1,42 @@ +2021-03-04 Sihui Liu + +Validate documentState of FrameState when setting and getting it +https://bugs.webkit.org/show_bug.cgi?id=222587 + +Reviewed by Geoffrey Garen. + +In rdar://48634553, strings of documentState can be invalid when they are encoded in encodeFrameStateNode +in UI process. To get a better idea of when the strings become invalid, add checks for documentState when +getting and setting it. + +No test as no behavior change. + +* Shared/SessionState.cpp: +(WebKit::FrameState::encode const): +(WebKit::FrameState::decode): +(WebKit::FrameState::validateDocumentState const): +(WebKit::FrameState::setDocumentState): +* Shared/SessionState.h: +(WebKit::FrameState::FrameState): +(WebKit::FrameState::~FrameState): +(WebKit::FrameState::documentState const): +* Shared/WebBackForwardListItem.cpp: +(WebKit::WebBackForwardListItem::create): +(WebKit::WebBackForwardListItem::~WebBackForwardListItem): +* UIProcess/API/glib/WebKitWebViewSessionState.cpp: +(encodeFrameState): +(decodeFrameState): +* UIProcess/Cocoa/SessionStateCoding.h: +* UIProcess/LegacySessionStateCoding.h: +* UIProcess/WebPageProxy.cpp: +(WebKit::WebPageProxy::sessionState const): +* UIProcess/mac/LegacySessionStateCoding.cpp: +(WebKit::encodeFrameStateNode): +(WebKit::decodeBackForwardTreeNode): +* WebProcess/WebCoreSupport/SessionStateConversion.cpp: +(WebKit::toFrameState): +(WebKit::applyFrameState): + 2021-03-04 Tim Horton Fix the build after r273904 Modified: trunk/Source/WebKit/Shared/SessionState.cpp (273928 => 273929) --- trunk/Source/WebKit/Shared/SessionState.cpp 2021-03-04 23:58:19 UTC (rev 273928) +++ trunk/Source/WebKit/Shared/SessionState.cpp 2021-03-05 00:12:41 UTC (rev 273929) @@ -110,7 +110,7 @@ encoder << referrer; encoder << target; -encoder << documentState; +encoder << m_documentState; encoder << stateObjectData; encoder << documentSequenceNumber; @@ -146,8 +146,10 @@ if (!decoder.decode(result.target)) return WTF::nullopt; -if (!decoder.decode(result.documentState)) +if (!decoder.decode(result.m_documentState)) return WTF::nullopt; +result.validateDocumentState(); + if (!decoder.decode(result.stateObjectData)) return WTF::nullopt; @@ -270,4 +272,30 @@ return {{ WTFMove(*items), WTFMove(currentIndex) }}; } +void FrameState::validateDocumentState() const +{ +for (auto& stateString :
[webkit-changes] [273928] trunk/Source/WebCore
Title: [273928] trunk/Source/WebCore Revision 273928 Author don.olmst...@sony.com Date 2021-03-04 15:58:19 -0800 (Thu, 04 Mar 2021) Log Message Non-unified build fixes, early March 2021 edition https://bugs.webkit.org/show_bug.cgi?id=222755 Unreviewed non-unified build fixes. * dom/EventContext.cpp: * html/canvas/ImageBitmapRenderingContext.cpp: * inspector/agents/worker/WorkerNetworkAgent.cpp: * page/scrolling/nicosia/ScrollingTreeScrollingNodeDelegateNicosia.cpp: * rendering/RenderModel.cpp: Modified Paths trunk/Source/WebCore/ChangeLog trunk/Source/WebCore/dom/EventContext.cpp trunk/Source/WebCore/html/canvas/ImageBitmapRenderingContext.cpp trunk/Source/WebCore/inspector/agents/worker/WorkerNetworkAgent.cpp trunk/Source/WebCore/page/scrolling/nicosia/ScrollingTreeScrollingNodeDelegateNicosia.cpp trunk/Source/WebCore/rendering/RenderModel.cpp Diff Modified: trunk/Source/WebCore/ChangeLog (273927 => 273928) --- trunk/Source/WebCore/ChangeLog 2021-03-04 23:46:12 UTC (rev 273927) +++ trunk/Source/WebCore/ChangeLog 2021-03-04 23:58:19 UTC (rev 273928) @@ -1,3 +1,16 @@ +2021-03-04 Don Olmstead + +Non-unified build fixes, early March 2021 edition +https://bugs.webkit.org/show_bug.cgi?id=222755 + +Unreviewed non-unified build fixes. + +* dom/EventContext.cpp: +* html/canvas/ImageBitmapRenderingContext.cpp: +* inspector/agents/worker/WorkerNetworkAgent.cpp: +* page/scrolling/nicosia/ScrollingTreeScrollingNodeDelegateNicosia.cpp: +* rendering/RenderModel.cpp: + 2021-03-04 Devin Rousso [Payment Request] increment the current version Modified: trunk/Source/WebCore/dom/EventContext.cpp (273927 => 273928) --- trunk/Source/WebCore/dom/EventContext.cpp 2021-03-04 23:46:12 UTC (rev 273927) +++ trunk/Source/WebCore/dom/EventContext.cpp 2021-03-04 23:58:19 UTC (rev 273928) @@ -30,6 +30,7 @@ #include "DOMWindow.h" #include "Document.h" +#include "EventNames.h" #include "FocusEvent.h" #include "HTMLFormElement.h" #include "MouseEvent.h" Modified: trunk/Source/WebCore/html/canvas/ImageBitmapRenderingContext.cpp (273927 => 273928) --- trunk/Source/WebCore/html/canvas/ImageBitmapRenderingContext.cpp 2021-03-04 23:46:12 UTC (rev 273927) +++ trunk/Source/WebCore/html/canvas/ImageBitmapRenderingContext.cpp 2021-03-04 23:58:19 UTC (rev 273928) @@ -26,6 +26,7 @@ #include "config.h" #include "ImageBitmapRenderingContext.h" +#include "HTMLCanvasElement.h" #include "ImageBitmap.h" #include "ImageBuffer.h" #include "InspectorInstrumentation.h" Modified: trunk/Source/WebCore/inspector/agents/worker/WorkerNetworkAgent.cpp (273927 => 273928) --- trunk/Source/WebCore/inspector/agents/worker/WorkerNetworkAgent.cpp 2021-03-04 23:46:12 UTC (rev 273927) +++ trunk/Source/WebCore/inspector/agents/worker/WorkerNetworkAgent.cpp 2021-03-04 23:58:19 UTC (rev 273928) @@ -26,6 +26,7 @@ #include "config.h" #include "WorkerNetworkAgent.h" +#include "SharedBuffer.h" #include "WorkerDebuggerProxy.h" #include "WorkerOrWorkletGlobalScope.h" #include "WorkerThread.h" Modified: trunk/Source/WebCore/page/scrolling/nicosia/ScrollingTreeScrollingNodeDelegateNicosia.cpp (273927 => 273928) --- trunk/Source/WebCore/page/scrolling/nicosia/ScrollingTreeScrollingNodeDelegateNicosia.cpp 2021-03-04 23:46:12 UTC (rev 273927) +++ trunk/Source/WebCore/page/scrolling/nicosia/ScrollingTreeScrollingNodeDelegateNicosia.cpp 2021-03-04 23:58:19 UTC (rev 273928) @@ -27,10 +27,11 @@ #include "config.h" #include "ScrollingTreeScrollingNodeDelegateNicosia.h" +#if ENABLE(ASYNC_SCROLLING) && USE(NICOSIA) + #include "NicosiaPlatformLayer.h" +#include "ScrollingTreeFrameScrollingNode.h" -#if ENABLE(ASYNC_SCROLLING) && USE(NICOSIA) - namespace WebCore { class ScrollAnimation; class ScrollAnimationKinetic; Modified: trunk/Source/WebCore/rendering/RenderModel.cpp (273927 => 273928) --- trunk/Source/WebCore/rendering/RenderModel.cpp 2021-03-04 23:46:12 UTC (rev 273927) +++ trunk/Source/WebCore/rendering/RenderModel.cpp 2021-03-04 23:58:19 UTC (rev 273928) @@ -23,11 +23,11 @@ * THE POSSIBILITY OF SUCH DAMAGE. */ -#if ENABLE(MODEL_ELEMENT) - #include "config.h" #include "RenderModel.h" +#if ENABLE(MODEL_ELEMENT) + #include "HTMLModelElement.h" #include "RenderStyle.h" #include ___ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes
[webkit-changes] [273927] trunk/LayoutTests
Title: [273927] trunk/LayoutTests Revision 273927 Author jon...@apple.com Date 2021-03-04 15:46:12 -0800 (Thu, 04 Mar 2021) Log Message [GPUP] Test platform/mac/media/encrypted-media/fps-encrypted-event.html times out when media in GPU Process is enabled https://bugs.webkit.org/show_bug.cgi?id=221847 Reviewed by Simon Fraser. * platform/mac-wk2/TestExpectations: The test no longer times out. Remove expectation. Modified Paths trunk/LayoutTests/ChangeLog trunk/LayoutTests/platform/mac-wk2/TestExpectations Diff Modified: trunk/LayoutTests/ChangeLog (273926 => 273927) --- trunk/LayoutTests/ChangeLog 2021-03-04 23:37:58 UTC (rev 273926) +++ trunk/LayoutTests/ChangeLog 2021-03-04 23:46:12 UTC (rev 273927) @@ -1,5 +1,14 @@ 2021-03-04 Jon Lee +[GPUP] Test platform/mac/media/encrypted-media/fps-encrypted-event.html times out when media in GPU Process is enabled +https://bugs.webkit.org/show_bug.cgi?id=221847 + +Reviewed by Simon Fraser. + +* platform/mac-wk2/TestExpectations: The test no longer times out. Remove expectation. + +2021-03-04 Jon Lee + Garden encrypted media tests https://bugs.webkit.org/show_bug.cgi?id=221687 Modified: trunk/LayoutTests/platform/mac-wk2/TestExpectations (273926 => 273927) --- trunk/LayoutTests/platform/mac-wk2/TestExpectations 2021-03-04 23:37:58 UTC (rev 273926) +++ trunk/LayoutTests/platform/mac-wk2/TestExpectations 2021-03-04 23:46:12 UTC (rev 273927) @@ -1327,8 +1327,6 @@ # webkit.org/b/221826 fast/mediastream/media-element-current-time.html [ Failure ] -webkit.org/b/221847 platform/mac/media/encrypted-media/fps-encrypted-event.html [ Timeout ] - webkit.org/b/221965 [ BigSur ] imported/w3c/web-platform-tests/media-source/mediasource-seekable.html [ Pass Failure ] webkit.org/b/221857 fast/selectors/text-field-selection-window-inactive-text-shadow.html [ Pass ImageOnlyFailure ] ___ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes
[webkit-changes] [273926] trunk/Tools
Title: [273926] trunk/Tools Revision 273926 Author jlew...@apple.com Date 2021-03-04 15:37:58 -0800 (Thu, 04 Mar 2021) Log Message Add Apple Silicon Devices to Big Sur builders and testers. https://bugs.webkit.org/show_bug.cgi?id=222616 Reviewed by Aakash Jain. * CISupport/build-webkit-org/config.json: * CISupport/build-webkit-org/public_html/dashboard/Scripts/WebKitBuildbot.js: (WebKitBuildbot): Modified Paths trunk/Tools/CISupport/build-webkit-org/config.json trunk/Tools/CISupport/build-webkit-org/public_html/dashboard/Scripts/WebKitBuildbot.js trunk/Tools/ChangeLog Diff Modified: trunk/Tools/CISupport/build-webkit-org/config.json (273925 => 273926) --- trunk/Tools/CISupport/build-webkit-org/config.json 2021-03-04 23:30:44 UTC (rev 273925) +++ trunk/Tools/CISupport/build-webkit-org/config.json 2021-03-04 23:37:58 UTC (rev 273926) @@ -1,13 +1,23 @@ { "workers": [ +{ "name": "bot105", "platform": "mac-bigsur" }, +{ "name": "bot111", "platform": "mac-bigsur" }, +{ "name": "bot121", "platform": "mac-bigsur" }, +{ "name": "bot124", "platform": "mac-bigsur" }, +{ "name": "bot126", "platform": "mac-bigsur" }, +{ "name": "bot131", "platform": "mac-bigsur" }, +{ "name": "bot132", "platform": "mac-bigsur" }, +{ "name": "bot135", "platform": "mac-bigsur" }, +{ "name": "bot137", "platform": "mac-bigsur" }, +{ "name": "bot138", "platform": "mac-bigsur" }, +{ "name": "bot139", "platform": "mac-bigsur" }, +{ "name": "bot140", "platform": "mac-bigsur" }, +{ "name": "bot141", "platform": "mac-bigsur" }, +{ "name": "bot142", "platform": "mac-bigsur" }, { "name": "bot279", "platform": "mac-bigsur" }, { "name": "bot302", "platform": "mac-bigsur" }, -{ "name": "bot600", "platform": "mac-bigsur" }, { "name": "bot603", "platform": "mac-bigsur" }, -{ "name": "bot614", "platform": "mac-bigsur" }, { "name": "bot632", "platform": "mac-bigsur" }, -{ "name": "bot684", "platform": "mac-bigsur" }, -{ "name": "bot685", "platform": "mac-bigsur" }, { "name": "bot1020", "platform": "mac-bigsur" }, { "name": "bot1021", "platform": "mac-bigsur" }, { "name": "bot1022", "platform": "mac-bigsur" }, @@ -17,7 +27,6 @@ { "name": "bot1026", "platform": "mac-bigsur" }, { "name": "bot1027", "platform": "mac-bigsur" }, -{ "name": "bot121", "platform": "mac-catalina" }, { "name": "bot187", "platform": "mac-catalina" }, { "name": "bot205", "platform": "mac-catalina" }, { "name": "bot241", "platform": "mac-catalina" }, @@ -37,7 +46,6 @@ { "name": "bot688", "platform": "mac-catalina" }, -{ "name": "bot132", "platform": "*" }, { "name": "bot178", "platform": "*" }, { "name": "bot179", "platform": "*" }, { "name": "bot183", "platform": "*" }, @@ -48,6 +56,10 @@ { "name": "bot611", "platform": "*" }, { "name": "bot612", "platform": "*" }, { "name": "bot613", "platform": "*" }, +{ "name": "bot600", "platform": "*" }, +{ "name": "bot614", "platform": "*" }, +{ "name": "bot684", "platform": "*" }, +{ "name": "bot685", "platform": "*" }, { "name": "bot673", "platform": "ios-14" }, @@ -121,8 +133,11 @@ "builders": [ { "name": "Apple-BigSur-Release-Build", "factory": "BuildFactory", "builddir": "bigsur-release", "platform": "mac-bigsur", "configuration": "release", "architectures": ["x86_64", "arm64"], - "triggers": ["bigsur-release-tests-test262", "bigsur-release-tests-wk1", "bigsur-release-tests-wk2", "bigsur-release-tests-wk2-webgl"], - "workernames": ["bot279", "bot600", "bot614"] + "triggers": [ + "bigsur-release-tests-test262", "bigsur-release-tests-wk1", "bigsur-release-tests-wk2", "bigsur-release-applesilicon-tests-wk1", + "bigsur-release-applesilicon-tests-wk2", "bigsur-applesilicon-release-tests-jsc", "bigsur-release-tests-wk2-webgl" + ], + "workernames": ["bot279", "bot121", "bot124"] }, { "name": "Apple-BigSur-Release-Test262-Tests", "factory": "Test262Factory", "builddir":
[webkit-changes] [273925] branches/safari-612.1.5-branch
Title: [273925] branches/safari-612.1.5-branch Revision 273925 Author repst...@apple.com Date 2021-03-04 15:30:44 -0800 (Thu, 04 Mar 2021) Log Message Cherry-pick r273784. rdar://problem/75059445 REGRESSION(r270691): It's impossible to use MobileAsset fonts on macOS https://bugs.webkit.org/show_bug.cgi?id=222582 Reviewed by Per Arne Vollan. Source/WebKit: Simply apply the iOS codepath to macOS. There is also an additional change here to the Mac sandbox. On Big Sur and earlier, before this patch, com.apple.mobileassetd was allowed, and com.apple.mobileassetd.v2 was disallowed. After this patch, they both are allowed, but only with the com.apple.webkit.extension.mach extension. On other OSes, before this patch, nothing was allowed, whereas after this patch, only com.apple.mobileassetd.v2 is allowed with the com.apple.webkit.extension.mach extension. Test: WebKit.MobileAssetSandboxCheck * UIProcess/API/Cocoa/WKWebView.mm: (-[WKWebView _grantAccessToAssetServices]): (-[WKWebView _revokeAccessToAssetServices]): * UIProcess/API/Cocoa/WKWebViewPrivate.h: * UIProcess/API/ios/WKWebViewIOS.mm: (-[WKWebView _grantAccessToAssetServices]): Deleted. (-[WKWebView _revokeAccessToAssetServices]): Deleted. * UIProcess/Cocoa/WebPageProxyCocoa.mm: (WebKit::WebPageProxy::grantAccessToAssetServices): (WebKit::WebPageProxy::revokeAccessToAssetServices): * UIProcess/WebPageProxy.h: * UIProcess/ios/WebPageProxyIOS.mm: (WebKit::WebPageProxy::grantAccessToAssetServices): Deleted. (WebKit::WebPageProxy::revokeAccessToAssetServices): Deleted. * WebProcess/WebProcess.h: * WebProcess/WebProcess.messages.in: * WebProcess/cocoa/WebProcessCocoa.mm: (WebKit::WebProcess::revokeAccessToAssetServices): * WebProcess/com.apple.WebProcess.sb.in: * WebProcess/glib/WebProcessGLib.cpp: (WebKit::WebProcess::grantAccessToAssetServices): (WebKit::WebProcess::revokeAccessToAssetServices): * WebProcess/playstation/WebProcessPlayStation.cpp: (WebKit::WebProcess::grantAccessToAssetServices): (WebKit::WebProcess::revokeAccessToAssetServices): * WebProcess/win/WebProcessWin.cpp: (WebKit::WebProcess::grantAccessToAssetServices): (WebKit::WebProcess::revokeAccessToAssetServices): Tools: * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: * TestWebKitAPI/Tests/WebKit/MobileAssetSandboxCheck.mm: Copied from Source/WebKit/WebProcess/win/WebProcessWin.cpp. (TEST): git-svn-id: https://svn.webkit.org/repository/webkit/trunk@273784 268f45cc-cd09-0410-ab3c-d52691b4dbfc Modified Paths branches/safari-612.1.5-branch/Source/WebKit/ChangeLog branches/safari-612.1.5-branch/Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm branches/safari-612.1.5-branch/Source/WebKit/UIProcess/API/Cocoa/WKWebViewPrivate.h branches/safari-612.1.5-branch/Source/WebKit/UIProcess/API/ios/WKWebViewIOS.mm branches/safari-612.1.5-branch/Source/WebKit/UIProcess/Cocoa/WebPageProxyCocoa.mm branches/safari-612.1.5-branch/Source/WebKit/UIProcess/WebPageProxy.h branches/safari-612.1.5-branch/Source/WebKit/UIProcess/ios/WebPageProxyIOS.mm branches/safari-612.1.5-branch/Source/WebKit/WebProcess/WebProcess.h branches/safari-612.1.5-branch/Source/WebKit/WebProcess/WebProcess.messages.in branches/safari-612.1.5-branch/Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm branches/safari-612.1.5-branch/Source/WebKit/WebProcess/com.apple.WebProcess.sb.in branches/safari-612.1.5-branch/Source/WebKit/WebProcess/glib/WebProcessGLib.cpp branches/safari-612.1.5-branch/Source/WebKit/WebProcess/playstation/WebProcessPlayStation.cpp branches/safari-612.1.5-branch/Source/WebKit/WebProcess/win/WebProcessWin.cpp branches/safari-612.1.5-branch/Tools/ChangeLog branches/safari-612.1.5-branch/Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj Added Paths branches/safari-612.1.5-branch/Tools/TestWebKitAPI/Tests/WebKit/MobileAssetSandboxCheck.mm Diff Modified: branches/safari-612.1.5-branch/Source/WebKit/ChangeLog (273924 => 273925) --- branches/safari-612.1.5-branch/Source/WebKit/ChangeLog 2021-03-04 23:22:29 UTC (rev 273924) +++ branches/safari-612.1.5-branch/Source/WebKit/ChangeLog 2021-03-04 23:30:44 UTC (rev 273925) @@ -1,3 +1,114 @@ +2021-03-04 Alan Coon + +Cherry-pick r273784. rdar://problem/75059445 + +REGRESSION(r270691): It's impossible to use MobileAsset fonts on macOS +https://bugs.webkit.org/show_bug.cgi?id=222582 + + +Reviewed by Per Arne Vollan. + +Source/WebKit: + +Simply apply the iOS codepath to macOS. + +There is also an additional change here to the Mac sandbox. +On Big Sur and earlier, before this patch, com.apple.mobileassetd was allowed, +and com.apple.mobileassetd.v2 was disallowed. After this patch, they both are +allowed, but only with the com.apple.webkit.extension.mach extension. +On other OSes, before
[webkit-changes] [273924] trunk/Source/WebKit
Title: [273924] trunk/Source/WebKit Revision 273924 Author timothy_hor...@apple.com Date 2021-03-04 15:22:29 -0800 (Thu, 04 Mar 2021) Log Message Fix the build after r273904 * WebProcess/cocoa/WebProcessCocoa.mm: (WebKit::setPreferenceValue): auto's evilness rears its head again. -mutableCopy returns `id`, so we infer RetainPtr, so depending on what headers are included we get ambiguous selector errors. De-auto to fix. Modified Paths trunk/Source/WebKit/ChangeLog trunk/Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm Diff Modified: trunk/Source/WebKit/ChangeLog (273923 => 273924) --- trunk/Source/WebKit/ChangeLog 2021-03-04 23:14:54 UTC (rev 273923) +++ trunk/Source/WebKit/ChangeLog 2021-03-04 23:22:29 UTC (rev 273924) @@ -1,3 +1,13 @@ +2021-03-04 Tim Horton + +Fix the build after r273904 + +* WebProcess/cocoa/WebProcessCocoa.mm: +(WebKit::setPreferenceValue): +auto's evilness rears its head again. -mutableCopy returns `id`, so +we infer RetainPtr, so depending on what headers are included +we get ambiguous selector errors. De-auto to fix. + 2021-03-04 Chris Dumez Clean up API::ResourceLoadStatisticsThirdParty / API::ResourceLoadStatisticsFirstParty Modified: trunk/Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm (273923 => 273924) --- trunk/Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm 2021-03-04 23:14:54 UTC (rev 273923) +++ trunk/Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm 2021-03-04 23:22:29 UTC (rev 273924) @@ -1109,7 +1109,7 @@ if (key == "AppleLanguages") { // We need to set AppleLanguages for the volatile domain, similarly to what we do in XPCServiceMain.mm. NSDictionary *existingArguments = [[NSUserDefaults standardUserDefaults] volatileDomainForName:NSArgumentDomain]; -auto newArguments = adoptNS([existingArguments mutableCopy]); +RetainPtr newArguments = adoptNS([existingArguments mutableCopy]); [newArguments setValue:value forKey:@"AppleLanguages"]; [[NSUserDefaults standardUserDefaults] setVolatileDomain:newArguments.get() forName:NSArgumentDomain]; ___ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes
[webkit-changes] [273923] trunk/Source/WebKit
Title: [273923] trunk/Source/WebKit Revision 273923 Author cdu...@apple.com Date 2021-03-04 15:14:54 -0800 (Thu, 04 Mar 2021) Log Message Clean up API::ResourceLoadStatisticsThirdParty / API::ResourceLoadStatisticsFirstParty https://bugs.webkit.org/show_bug.cgi?id=222701 Reviewed by Geoffrey Garen. Clean up API::ResourceLoadStatisticsThirdParty / API::ResourceLoadStatisticsFirstParty: 1. Make constructors private since there is a create() factory function. 2. Mark constructor as explicit since they take a single parameter. 3. Update ResourceLoadStatisticsFirstParty constructor to take parameter as a const reference instead of passing it by value. 4. Add assertions to make sure those are constructed and destroyed on the main thread. * UIProcess/API/APIResourceLoadStatisticsFirstParty.h: * UIProcess/API/APIResourceLoadStatisticsThirdParty.h: Modified Paths trunk/Source/WebKit/ChangeLog trunk/Source/WebKit/UIProcess/API/APIResourceLoadStatisticsFirstParty.h trunk/Source/WebKit/UIProcess/API/APIResourceLoadStatisticsThirdParty.h Diff Modified: trunk/Source/WebKit/ChangeLog (273922 => 273923) --- trunk/Source/WebKit/ChangeLog 2021-03-04 23:06:39 UTC (rev 273922) +++ trunk/Source/WebKit/ChangeLog 2021-03-04 23:14:54 UTC (rev 273923) @@ -1,3 +1,20 @@ +2021-03-04 Chris Dumez + +Clean up API::ResourceLoadStatisticsThirdParty / API::ResourceLoadStatisticsFirstParty +https://bugs.webkit.org/show_bug.cgi?id=222701 + +Reviewed by Geoffrey Garen. + +Clean up API::ResourceLoadStatisticsThirdParty / API::ResourceLoadStatisticsFirstParty: +1. Make constructors private since there is a create() factory function. +2. Mark constructor as explicit since they take a single parameter. +3. Update ResourceLoadStatisticsFirstParty constructor to take parameter as a const + reference instead of passing it by value. +4. Add assertions to make sure those are constructed and destroyed on the main thread. + +* UIProcess/API/APIResourceLoadStatisticsFirstParty.h: +* UIProcess/API/APIResourceLoadStatisticsThirdParty.h: + 2021-03-04 Alex Christensen Remove the HTTPSUpgradeEnabled experimental feature Modified: trunk/Source/WebKit/UIProcess/API/APIResourceLoadStatisticsFirstParty.h (273922 => 273923) --- trunk/Source/WebKit/UIProcess/API/APIResourceLoadStatisticsFirstParty.h 2021-03-04 23:06:39 UTC (rev 273922) +++ trunk/Source/WebKit/UIProcess/API/APIResourceLoadStatisticsFirstParty.h 2021-03-04 23:14:54 UTC (rev 273923) @@ -33,14 +33,15 @@ class ResourceLoadStatisticsFirstParty final : public ObjectImpl { public: -static Ref create(const WebKit::WebResourceLoadStatisticsStore::ThirdPartyDataForSpecificFirstParty firstPartyData) +static Ref create(const WebKit::WebResourceLoadStatisticsStore::ThirdPartyDataForSpecificFirstParty& firstPartyData) { +RELEASE_ASSERT(RunLoop::isMain()); return adoptRef(*new ResourceLoadStatisticsFirstParty(firstPartyData)); } -ResourceLoadStatisticsFirstParty(const WebKit::WebResourceLoadStatisticsStore::ThirdPartyDataForSpecificFirstParty firstPartyData) -: m_firstPartyData(firstPartyData) +~ResourceLoadStatisticsFirstParty() { +RELEASE_ASSERT(RunLoop::isMain()); } const WTF::String& firstPartyDomain() const { return m_firstPartyData.firstPartyDomain.string(); } @@ -48,8 +49,12 @@ double timeLastUpdated() const { return m_firstPartyData.timeLastUpdated.value(); } private: +explicit ResourceLoadStatisticsFirstParty(const WebKit::WebResourceLoadStatisticsStore::ThirdPartyDataForSpecificFirstParty& firstPartyData) +: m_firstPartyData(firstPartyData) +{ +} + const WebKit::WebResourceLoadStatisticsStore::ThirdPartyDataForSpecificFirstParty m_firstPartyData; - }; } // namespace API Modified: trunk/Source/WebKit/UIProcess/API/APIResourceLoadStatisticsThirdParty.h (273922 => 273923) --- trunk/Source/WebKit/UIProcess/API/APIResourceLoadStatisticsThirdParty.h 2021-03-04 23:06:39 UTC (rev 273922) +++ trunk/Source/WebKit/UIProcess/API/APIResourceLoadStatisticsThirdParty.h 2021-03-04 23:14:54 UTC (rev 273923) @@ -35,12 +35,13 @@ public: static Ref create(WebKit::WebResourceLoadStatisticsStore::ThirdPartyData&& thirdPartyData) { +RELEASE_ASSERT(RunLoop::isMain()); return adoptRef(*new ResourceLoadStatisticsThirdParty(WTFMove(thirdPartyData))); } -ResourceLoadStatisticsThirdParty(WebKit::WebResourceLoadStatisticsStore::ThirdPartyData&& thirdPartyData) -: m_thirdPartyData(WTFMove(thirdPartyData)) +~ResourceLoadStatisticsThirdParty() { +RELEASE_ASSERT(RunLoop::isMain()); } const WTF::String& thirdPartyDomain() const { return m_thirdPartyData.thirdPartyDomain.string(); } @@ -47,6 +48,11 @@ const Vector& underFirstParties() const { return m_thirdPartyData.underFirstParties; } private: +
[webkit-changes] [273922] trunk/Source/WebCore
Title: [273922] trunk/Source/WebCore Revision 273922 Author drou...@apple.com Date 2021-03-04 15:06:39 -0800 (Thu, 04 Mar 2021) Log Message [Payment Request] increment the current version https://bugs.webkit.org/show_bug.cgi?id=222742 Reviewed by Wenson Hsieh. * Modules/applepay/cocoa/PaymentAPIVersionCocoa.mm: (WebCore::PaymentAPIVersion::current): * testing/MockPaymentCoordinator.h: * testing/MockPaymentCoordinator.cpp: (WebCore::MockPaymentCoordinator::showPaymentUI): (WebCore::MockPaymentCoordinator::completeShippingMethodSelection): (WebCore::MockPaymentCoordinator::completeShippingContactSelection): (WebCore::MockPaymentCoordinator::completePaymentMethodSelection): (WebCore::MockPaymentCoordinator::completePaymentMethodModeChange): * Modules/paymentrequest/PaymentRequestUtilities.h: Added. * Modules/paymentrequest/PaymentRequestUtilities.cpp: Added. (isValidDecimalMonetaryValue): * Modules/paymentrequest/PaymentRequest.cpp: (isValidDecimalMonetaryValue): Deleted. * Modules/applepay/ApplePaySession.cpp: (convertAndValidateTotal): (convertAndValidate): (validateAmount): Deleted. * Modules/applepay/paymentrequest/ApplePayPaymentHandler.cpp: Move `isValidDecimalMonetaryValue` so it can be used in other files. * Sources.txt: * WebCore.xcodeproj/project.pbxproj: Modified Paths trunk/Source/WebCore/ChangeLog trunk/Source/WebCore/Modules/applepay/ApplePaySession.cpp trunk/Source/WebCore/Modules/applepay/cocoa/PaymentAPIVersionCocoa.mm trunk/Source/WebCore/Modules/applepay/paymentrequest/ApplePayPaymentHandler.cpp trunk/Source/WebCore/Modules/paymentrequest/PaymentRequest.cpp trunk/Source/WebCore/Sources.txt trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj trunk/Source/WebCore/testing/MockPaymentCoordinator.cpp trunk/Source/WebCore/testing/MockPaymentCoordinator.h Added Paths trunk/Source/WebCore/Modules/paymentrequest/PaymentRequestUtilities.cpp trunk/Source/WebCore/Modules/paymentrequest/PaymentRequestUtilities.h Diff Modified: trunk/Source/WebCore/ChangeLog (273921 => 273922) --- trunk/Source/WebCore/ChangeLog 2021-03-04 23:06:01 UTC (rev 273921) +++ trunk/Source/WebCore/ChangeLog 2021-03-04 23:06:39 UTC (rev 273922) @@ -1,3 +1,37 @@ +2021-03-04 Devin Rousso + +[Payment Request] increment the current version +https://bugs.webkit.org/show_bug.cgi?id=222742 + + +Reviewed by Wenson Hsieh. + +* Modules/applepay/cocoa/PaymentAPIVersionCocoa.mm: +(WebCore::PaymentAPIVersion::current): + +* testing/MockPaymentCoordinator.h: +* testing/MockPaymentCoordinator.cpp: +(WebCore::MockPaymentCoordinator::showPaymentUI): +(WebCore::MockPaymentCoordinator::completeShippingMethodSelection): +(WebCore::MockPaymentCoordinator::completeShippingContactSelection): +(WebCore::MockPaymentCoordinator::completePaymentMethodSelection): +(WebCore::MockPaymentCoordinator::completePaymentMethodModeChange): + +* Modules/paymentrequest/PaymentRequestUtilities.h: Added. +* Modules/paymentrequest/PaymentRequestUtilities.cpp: Added. +(isValidDecimalMonetaryValue): +* Modules/paymentrequest/PaymentRequest.cpp: +(isValidDecimalMonetaryValue): Deleted. +* Modules/applepay/ApplePaySession.cpp: +(convertAndValidateTotal): +(convertAndValidate): +(validateAmount): Deleted. +* Modules/applepay/paymentrequest/ApplePayPaymentHandler.cpp: +Move `isValidDecimalMonetaryValue` so it can be used in other files. + +* Sources.txt: +* WebCore.xcodeproj/project.pbxproj: + 2021-03-04 Zalan Bujtas [LFC][IFC] LineStatus::availableWidth should always be a valid number Modified: trunk/Source/WebCore/Modules/applepay/ApplePaySession.cpp (273921 => 273922) --- trunk/Source/WebCore/Modules/applepay/ApplePaySession.cpp 2021-03-04 23:06:01 UTC (rev 273921) +++ trunk/Source/WebCore/Modules/applepay/ApplePaySession.cpp 2021-03-04 23:06:39 UTC (rev 273922) @@ -59,6 +59,7 @@ #include "PaymentCoordinator.h" #include "PaymentMerchantSession.h" #include "PaymentMethod.h" +#include "PaymentRequestUtilities.h" #include "PaymentRequestValidator.h" #include "SecurityOrigin.h" #include "Settings.h" @@ -74,76 +75,9 @@ WTF_MAKE_ISO_ALLOCATED_IMPL(ApplePaySession); -// The amount follows the regular _expression_ -?[0-9]+(\.[0-9][0-9])?. -static bool validateAmount(const String& amountString) -{ -enum class State { -Start, -Sign, -Digit, -Dot, -DotDigit, -End, -}; - -State state = State::Start; - -for (unsigned i = 0; i < amountString.length(); ++i) { -UChar c = amountString[i]; - -switch (state) { -case State::Start: -if (c == '-') { -state = State::Sign; -break; -} - -if (!isASCIIDigit(c)) -return false; -state = State::Digit; -
[webkit-changes] [273921] branches/safari-611.1.21.0-branch
Title: [273921] branches/safari-611.1.21.0-branch Revision 273921 Author repst...@apple.com Date 2021-03-04 15:06:01 -0800 (Thu, 04 Mar 2021) Log Message Cherry-pick r273901. rdar://problem/75058982 window proxy of detached iframe doesn't respect updates to global values https://bugs.webkit.org/show_bug.cgi?id=206445 Reviewed by Chris Dumez. Source/WebCore: According to the html spec the frame should only be needing for COOP access violation reporting, which we don't support. This patch removes our old behavior of blocking stores to windows that have been detached. I also removed some stale caching code from getOwnPropertySlotByIndex since it's only accessed once now. * bindings/js/JSDOMWindowCustom.cpp: (WebCore::JSDOMWindow::getOwnPropertySlotByIndex): (WebCore::JSDOMWindow::doPutPropertySecurityCheck): (WebCore::JSDOMWindow::put): (WebCore::JSDOMWindow::putByIndex): LayoutTests: * fast/frames/iframe-detached-window-still-writable-eval-expected.txt: Added. * fast/frames/iframe-detached-window-still-writable-eval.html: Added. * fast/frames/iframe-detached-window-still-writable-expected.txt: Added. * fast/frames/iframe-detached-window-still-writable.html: Added. * http/tests/dom/cross-origin-detached-window-properties-expected.txt: * http/tests/dom/cross-origin-detached-window-properties.html: git-svn-id: https://svn.webkit.org/repository/webkit/trunk@273901 268f45cc-cd09-0410-ab3c-d52691b4dbfc Modified Paths branches/safari-611.1.21.0-branch/LayoutTests/ChangeLog branches/safari-611.1.21.0-branch/LayoutTests/http/tests/dom/cross-origin-detached-window-properties-expected.txt branches/safari-611.1.21.0-branch/LayoutTests/http/tests/dom/cross-origin-detached-window-properties.html branches/safari-611.1.21.0-branch/Source/WebCore/ChangeLog branches/safari-611.1.21.0-branch/Source/WebCore/bindings/js/JSDOMWindowCustom.cpp Added Paths branches/safari-611.1.21.0-branch/LayoutTests/fast/frames/iframe-detached-window-still-writable-eval-expected.txt branches/safari-611.1.21.0-branch/LayoutTests/fast/frames/iframe-detached-window-still-writable-eval.html branches/safari-611.1.21.0-branch/LayoutTests/fast/frames/iframe-detached-window-still-writable-expected.txt branches/safari-611.1.21.0-branch/LayoutTests/fast/frames/iframe-detached-window-still-writable.html Diff Modified: branches/safari-611.1.21.0-branch/LayoutTests/ChangeLog (273920 => 273921) --- branches/safari-611.1.21.0-branch/LayoutTests/ChangeLog 2021-03-04 23:04:08 UTC (rev 273920) +++ branches/safari-611.1.21.0-branch/LayoutTests/ChangeLog 2021-03-04 23:06:01 UTC (rev 273921) @@ -1,3 +1,54 @@ +2021-03-04 Alan Coon + +Cherry-pick r273901. rdar://problem/75058982 + +window proxy of detached iframe doesn't respect updates to global values +https://bugs.webkit.org/show_bug.cgi?id=206445 + +Reviewed by Chris Dumez. + +Source/WebCore: + +According to the html spec the frame should only be needing for +COOP access violation reporting, which we don't support. This +patch removes our old behavior of blocking stores to windows that +have been detached. + +I also removed some stale caching code from +getOwnPropertySlotByIndex since it's only accessed once now. + +* bindings/js/JSDOMWindowCustom.cpp: +(WebCore::JSDOMWindow::getOwnPropertySlotByIndex): +(WebCore::JSDOMWindow::doPutPropertySecurityCheck): +(WebCore::JSDOMWindow::put): +(WebCore::JSDOMWindow::putByIndex): + +LayoutTests: + +* fast/frames/iframe-detached-window-still-writable-eval-expected.txt: Added. +* fast/frames/iframe-detached-window-still-writable-eval.html: Added. +* fast/frames/iframe-detached-window-still-writable-expected.txt: Added. +* fast/frames/iframe-detached-window-still-writable.html: Added. +* http/tests/dom/cross-origin-detached-window-properties-expected.txt: +* http/tests/dom/cross-origin-detached-window-properties.html: + + +git-svn-id: https://svn.webkit.org/repository/webkit/trunk@273901 268f45cc-cd09-0410-ab3c-d52691b4dbfc + +2021-03-04 Keith Miller + +window proxy of detached iframe doesn't respect updates to global values +https://bugs.webkit.org/show_bug.cgi?id=206445 + +Reviewed by Chris Dumez. + +* fast/frames/iframe-detached-window-still-writable-eval-expected.txt: Added. +* fast/frames/iframe-detached-window-still-writable-eval.html: Added. +* fast/frames/iframe-detached-window-still-writable-expected.txt: Added. +* fast/frames/iframe-detached-window-still-writable.html: Added. +* http/tests/dom/cross-origin-detached-window-properties-expected.txt: +* http/tests/dom/cross-origin-detached-window-properties.html: + 2021-03-02 Alan Coon Cherry-pick r273656. rdar://problem/74883345
[webkit-changes] [273920] branches/safari-611.1.21.1-branch
Title: [273920] branches/safari-611.1.21.1-branch Revision 273920 Author repst...@apple.com Date 2021-03-04 15:04:08 -0800 (Thu, 04 Mar 2021) Log Message Cherry-pick r273901. rdar://problem/75058990 window proxy of detached iframe doesn't respect updates to global values https://bugs.webkit.org/show_bug.cgi?id=206445 Reviewed by Chris Dumez. Source/WebCore: According to the html spec the frame should only be needing for COOP access violation reporting, which we don't support. This patch removes our old behavior of blocking stores to windows that have been detached. I also removed some stale caching code from getOwnPropertySlotByIndex since it's only accessed once now. * bindings/js/JSDOMWindowCustom.cpp: (WebCore::JSDOMWindow::getOwnPropertySlotByIndex): (WebCore::JSDOMWindow::doPutPropertySecurityCheck): (WebCore::JSDOMWindow::put): (WebCore::JSDOMWindow::putByIndex): LayoutTests: * fast/frames/iframe-detached-window-still-writable-eval-expected.txt: Added. * fast/frames/iframe-detached-window-still-writable-eval.html: Added. * fast/frames/iframe-detached-window-still-writable-expected.txt: Added. * fast/frames/iframe-detached-window-still-writable.html: Added. * http/tests/dom/cross-origin-detached-window-properties-expected.txt: * http/tests/dom/cross-origin-detached-window-properties.html: git-svn-id: https://svn.webkit.org/repository/webkit/trunk@273901 268f45cc-cd09-0410-ab3c-d52691b4dbfc Modified Paths branches/safari-611.1.21.1-branch/LayoutTests/ChangeLog branches/safari-611.1.21.1-branch/LayoutTests/http/tests/dom/cross-origin-detached-window-properties-expected.txt branches/safari-611.1.21.1-branch/LayoutTests/http/tests/dom/cross-origin-detached-window-properties.html branches/safari-611.1.21.1-branch/Source/WebCore/ChangeLog branches/safari-611.1.21.1-branch/Source/WebCore/bindings/js/JSDOMWindowCustom.cpp Added Paths branches/safari-611.1.21.1-branch/LayoutTests/fast/frames/iframe-detached-window-still-writable-eval-expected.txt branches/safari-611.1.21.1-branch/LayoutTests/fast/frames/iframe-detached-window-still-writable-eval.html branches/safari-611.1.21.1-branch/LayoutTests/fast/frames/iframe-detached-window-still-writable-expected.txt branches/safari-611.1.21.1-branch/LayoutTests/fast/frames/iframe-detached-window-still-writable.html Diff Modified: branches/safari-611.1.21.1-branch/LayoutTests/ChangeLog (273919 => 273920) --- branches/safari-611.1.21.1-branch/LayoutTests/ChangeLog 2021-03-04 22:51:25 UTC (rev 273919) +++ branches/safari-611.1.21.1-branch/LayoutTests/ChangeLog 2021-03-04 23:04:08 UTC (rev 273920) @@ -1,3 +1,54 @@ +2021-03-04 Alan Coon + +Cherry-pick r273901. rdar://problem/75058990 + +window proxy of detached iframe doesn't respect updates to global values +https://bugs.webkit.org/show_bug.cgi?id=206445 + +Reviewed by Chris Dumez. + +Source/WebCore: + +According to the html spec the frame should only be needing for +COOP access violation reporting, which we don't support. This +patch removes our old behavior of blocking stores to windows that +have been detached. + +I also removed some stale caching code from +getOwnPropertySlotByIndex since it's only accessed once now. + +* bindings/js/JSDOMWindowCustom.cpp: +(WebCore::JSDOMWindow::getOwnPropertySlotByIndex): +(WebCore::JSDOMWindow::doPutPropertySecurityCheck): +(WebCore::JSDOMWindow::put): +(WebCore::JSDOMWindow::putByIndex): + +LayoutTests: + +* fast/frames/iframe-detached-window-still-writable-eval-expected.txt: Added. +* fast/frames/iframe-detached-window-still-writable-eval.html: Added. +* fast/frames/iframe-detached-window-still-writable-expected.txt: Added. +* fast/frames/iframe-detached-window-still-writable.html: Added. +* http/tests/dom/cross-origin-detached-window-properties-expected.txt: +* http/tests/dom/cross-origin-detached-window-properties.html: + + +git-svn-id: https://svn.webkit.org/repository/webkit/trunk@273901 268f45cc-cd09-0410-ab3c-d52691b4dbfc + +2021-03-04 Keith Miller + +window proxy of detached iframe doesn't respect updates to global values +https://bugs.webkit.org/show_bug.cgi?id=206445 + +Reviewed by Chris Dumez. + +* fast/frames/iframe-detached-window-still-writable-eval-expected.txt: Added. +* fast/frames/iframe-detached-window-still-writable-eval.html: Added. +* fast/frames/iframe-detached-window-still-writable-expected.txt: Added. +* fast/frames/iframe-detached-window-still-writable.html: Added. +* http/tests/dom/cross-origin-detached-window-properties-expected.txt: +* http/tests/dom/cross-origin-detached-window-properties.html: + 2021-03-03 Ruben Turcios Cherry-pick r273764. rdar://problem/74992878
[webkit-changes] [273919] trunk/LayoutTests
Title: [273919] trunk/LayoutTests Revision 273919 Author jon...@apple.com Date 2021-03-04 14:51:25 -0800 (Thu, 04 Mar 2021) Log Message Garden encrypted media tests https://bugs.webkit.org/show_bug.cgi?id=221687 Reviewed by Simon Fraser. * platform/mac-wk2/TestExpectations: All but platform/mac/media/encrypted-media/fps-clearkey-crash.html are now passing. Remove expectations. Modified Paths trunk/LayoutTests/ChangeLog trunk/LayoutTests/platform/mac-wk2/TestExpectations Diff Modified: trunk/LayoutTests/ChangeLog (273918 => 273919) --- trunk/LayoutTests/ChangeLog 2021-03-04 22:16:16 UTC (rev 273918) +++ trunk/LayoutTests/ChangeLog 2021-03-04 22:51:25 UTC (rev 273919) @@ -1,3 +1,12 @@ +2021-03-04 Jon Lee + +Garden encrypted media tests +https://bugs.webkit.org/show_bug.cgi?id=221687 + +Reviewed by Simon Fraser. + +* platform/mac-wk2/TestExpectations: All but platform/mac/media/encrypted-media/fps-clearkey-crash.html are now passing. Remove expectations. + 2021-03-04 Zalan Bujtas [LFC][IFC] LineStatus::availableWidth should always be a valid number Modified: trunk/LayoutTests/platform/mac-wk2/TestExpectations (273918 => 273919) --- trunk/LayoutTests/platform/mac-wk2/TestExpectations 2021-03-04 22:16:16 UTC (rev 273918) +++ trunk/LayoutTests/platform/mac-wk2/TestExpectations 2021-03-04 22:51:25 UTC (rev 273919) @@ -1323,11 +1323,6 @@ # webkit.org/b/221687 platform/mac/media/encrypted-media/fps-clearkey-crash.html [ Timeout Crash ] -platform/mac/media/encrypted-media/fps-createMediaKeys.html [ Crash ] -platform/mac/media/encrypted-media/fps-createSession.html [ Crash ] -platform/mac/media/encrypted-media/fps-ephemeral-requestMediaKeySystemAccess.html [ Crash ] -platform/mac/media/encrypted-media/fps-generateRequest.html [ Crash ] -platform/mac/media/encrypted-media/fps-requestMediaKeySystemAccess.html [ Crash ] # webkit.org/b/221826 fast/mediastream/media-element-current-time.html [ Failure ] ___ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes
[webkit-changes] [273918] trunk
Title: [273918] trunk Revision 273918 Author za...@apple.com Date 2021-03-04 14:16:16 -0800 (Thu, 04 Mar 2021) Log Message [LFC][IFC] LineStatus::availableWidth should always be a valid number https://bugs.webkit.org/show_bug.cgi?id=222752 Reviewed by Antti Koivisto. Source/WebCore: A NaN available width value can confuse the line breaking logic. This patch ensures we always provide a valid value. Test: fast/inline/crash-when-negative-spacing-produce-nan.html * layout/inlineformatting/InlineContentBreaker.cpp: (WebCore::Layout::InlineContentBreaker::processInlineContent): (WebCore::Layout::InlineContentBreaker::processOverflowingContent const): * layout/inlineformatting/InlineLineBuilder.cpp: (WebCore::Layout::LineBuilder::handleInlineContent): LayoutTests: * fast/inline/crash-when-negative-spacing-produce-nan-expected.txt: Added. * fast/inline/crash-when-negative-spacing-produce-nan.html: Added. Modified Paths trunk/LayoutTests/ChangeLog trunk/Source/WebCore/ChangeLog trunk/Source/WebCore/layout/inlineformatting/InlineContentBreaker.cpp trunk/Source/WebCore/layout/inlineformatting/InlineLineBuilder.cpp Added Paths trunk/LayoutTests/fast/inline/crash-when-negative-spacing-produce-nan-expected.txt trunk/LayoutTests/fast/inline/crash-when-negative-spacing-produce-nan.html Diff Modified: trunk/LayoutTests/ChangeLog (273917 => 273918) --- trunk/LayoutTests/ChangeLog 2021-03-04 22:05:53 UTC (rev 273917) +++ trunk/LayoutTests/ChangeLog 2021-03-04 22:16:16 UTC (rev 273918) @@ -1,3 +1,14 @@ +2021-03-04 Zalan Bujtas + +[LFC][IFC] LineStatus::availableWidth should always be a valid number +https://bugs.webkit.org/show_bug.cgi?id=222752 + + +Reviewed by Antti Koivisto. + +* fast/inline/crash-when-negative-spacing-produce-nan-expected.txt: Added. +* fast/inline/crash-when-negative-spacing-produce-nan.html: Added. + 2021-03-04 Peng Liu [GPUP] Some media tests are flaky when media in GPU Process is enabled Added: trunk/LayoutTests/fast/inline/crash-when-negative-spacing-produce-nan-expected.txt (0 => 273918) --- trunk/LayoutTests/fast/inline/crash-when-negative-spacing-produce-nan-expected.txt (rev 0) +++ trunk/LayoutTests/fast/inline/crash-when-negative-spacing-produce-nan-expected.txt 2021-03-04 22:16:16 UTC (rev 273918) @@ -0,0 +1,3 @@ +* { display: block; } html { zoom: 12345678901234567890; } style { letter-spacing: -1px; zoom: 12345678901234567890; } +PASS if no crash or assert +if (window.testRunner) testRunner.dumpAsText(); Added: trunk/LayoutTests/fast/inline/crash-when-negative-spacing-produce-nan.html (0 => 273918) --- trunk/LayoutTests/fast/inline/crash-when-negative-spacing-produce-nan.html (rev 0) +++ trunk/LayoutTests/fast/inline/crash-when-negative-spacing-produce-nan.html 2021-03-04 22:16:16 UTC (rev 273918) @@ -0,0 +1,19 @@ + + + * { + display: block; + } + html { +zoom: 12345678901234567890; + } + style { +letter-spacing: -1px; +zoom: 12345678901234567890; + } + +PASS if no crash or assert + +if (window.testRunner) + testRunner.dumpAsText(); + + Modified: trunk/Source/WebCore/ChangeLog (273917 => 273918) --- trunk/Source/WebCore/ChangeLog 2021-03-04 22:05:53 UTC (rev 273917) +++ trunk/Source/WebCore/ChangeLog 2021-03-04 22:16:16 UTC (rev 273918) @@ -1,3 +1,21 @@ +2021-03-04 Zalan Bujtas + +[LFC][IFC] LineStatus::availableWidth should always be a valid number +https://bugs.webkit.org/show_bug.cgi?id=222752 + + +Reviewed by Antti Koivisto. + +A NaN available width value can confuse the line breaking logic. This patch ensures we always provide a valid value. + +Test: fast/inline/crash-when-negative-spacing-produce-nan.html + +* layout/inlineformatting/InlineContentBreaker.cpp: +(WebCore::Layout::InlineContentBreaker::processInlineContent): +(WebCore::Layout::InlineContentBreaker::processOverflowingContent const): +* layout/inlineformatting/InlineLineBuilder.cpp: +(WebCore::Layout::LineBuilder::handleInlineContent): + 2021-03-04 Youenn Fablet In case of POST navigation redirected by a 302, the 'Origin' header is kept in the redirected request Modified: trunk/Source/WebCore/layout/inlineformatting/InlineContentBreaker.cpp (273917 => 273918) --- trunk/Source/WebCore/layout/inlineformatting/InlineContentBreaker.cpp 2021-03-04 22:05:53 UTC (rev 273917) +++ trunk/Source/WebCore/layout/inlineformatting/InlineContentBreaker.cpp 2021-03-04 22:16:16 UTC (rev 273918) @@ -131,6 +131,7 @@ InlineContentBreaker::Result InlineContentBreaker::processInlineContent(const ContinuousContent& candidateContent, const LineStatus& lineStatus) { +ASSERT(!std::isnan(lineStatus.availableWidth)); auto processCandidateContent = [&] { if (candidateContent.logicalWidth() <= lineStatus.availableWidth) return Result {
[webkit-changes] [273917] trunk/Source/JavaScriptCore
Title: [273917] trunk/Source/_javascript_Core Revision 273917 Author achristen...@apple.com Date 2021-03-04 14:05:53 -0800 (Thu, 04 Mar 2021) Log Message Unreviewed, reverting r273906. Broke internal build Reverted changeset: "[Cocoa] REGRESSION(r272752): fix some internal builds that use WTFString::WTFString(NSString *)" https://bugs.webkit.org/show_bug.cgi?id=222610 https://commits.webkit.org/r273906 Modified Paths trunk/Source/_javascript_Core/ChangeLog trunk/Source/_javascript_Core/inspector/scripts/codegen/objc_generator.py Diff Modified: trunk/Source/_javascript_Core/ChangeLog (273916 => 273917) --- trunk/Source/_javascript_Core/ChangeLog 2021-03-04 21:43:33 UTC (rev 273916) +++ trunk/Source/_javascript_Core/ChangeLog 2021-03-04 22:05:53 UTC (rev 273917) @@ -1,5 +1,18 @@ 2021-03-04 Alex Christensen +Unreviewed, reverting r273906. + +Broke internal build + +Reverted changeset: + +"[Cocoa] REGRESSION(r272752): fix some internal builds that +use WTFString::WTFString(NSString *)" +https://bugs.webkit.org/show_bug.cgi?id=222610 +https://commits.webkit.org/r273906 + +2021-03-04 Alex Christensen + [Cocoa] REGRESSION(r272752): fix some internal builds that use WTFString::WTFString(NSString *) https://bugs.webkit.org/show_bug.cgi?id=222610 Modified: trunk/Source/_javascript_Core/inspector/scripts/codegen/objc_generator.py (273916 => 273917) --- trunk/Source/_javascript_Core/inspector/scripts/codegen/objc_generator.py 2021-03-04 21:43:33 UTC (rev 273916) +++ trunk/Source/_javascript_Core/inspector/scripts/codegen/objc_generator.py 2021-03-04 22:05:53 UTC (rev 273917) @@ -390,13 +390,13 @@ def objc_protocol_import_expression_for_member(self, name, declaration, member): if isinstance(member.type, EnumType): if member.type.is_anonymous: -return 'fromProtocolString<%s>((__bridge CFStringRef)%s)' % (self.objc_enum_name_for_anonymous_enum_member(declaration, member), name) -return 'fromProtocolString<%s>((__bridge CFStringRef)%s)' % (self.objc_enum_name_for_non_anonymous_enum(member.type), name) +return 'fromProtocolString<%s>(%s)' % (self.objc_enum_name_for_anonymous_enum_member(declaration, member), name) +return 'fromProtocolString<%s>(%s)' % (self.objc_enum_name_for_non_anonymous_enum(member.type), name) return self.objc_protocol_import_expression_for_variable(member.type, name) def objc_protocol_import_expression_for_parameter(self, name, domain, event_or_command_name, parameter): if isinstance(parameter.type, EnumType): -return 'fromProtocolString<%s>((__bridge CFStringRef)%s)' % (self.objc_enum_name_for_non_anonymous_enum(parameter.type), name) +return 'fromProtocolString<%s>(%s)' % (self.objc_enum_name_for_non_anonymous_enum(parameter.type), name) return self.objc_protocol_import_expression_for_variable(parameter.type, name) def objc_protocol_import_expression_for_variable(self, var_type, var_name): @@ -442,8 +442,8 @@ if category in [ObjCTypeCategory.Simple, ObjCTypeCategory.String]: if isinstance(member.type, EnumType): if member.type.is_anonymous: -return 'fromProtocolString<%s>((__bridge CFStringRef)%s).value()' % (self.objc_enum_name_for_anonymous_enum_member(declaration, member), sub_expression) -return 'fromProtocolString<%s>((__bridge CFStringRef)%s).value()' % (self.objc_enum_name_for_non_anonymous_enum(member.type), sub_expression) +return 'fromProtocolString<%s>(%s).value()' % (self.objc_enum_name_for_anonymous_enum_member(declaration, member), sub_expression) +return 'fromProtocolString<%s>(%s).value()' % (self.objc_enum_name_for_non_anonymous_enum(member.type), sub_expression) return sub_expression if category == ObjCTypeCategory.Object: raise Exception("protocol_to_objc_expression_for_member does not support an Object type. See: protocol_to_objc_code_block_for_object_member") @@ -487,9 +487,9 @@ if isinstance(member.type, EnumType): sub_expression = 'payload[@"%s"]' % member.member_name if member.type.is_anonymous: -return 'fromProtocolString<%s>((__bridge CFStringRef)%s)' % (self.objc_enum_name_for_anonymous_enum_member(declaration, member), sub_expression) +return 'fromProtocolString<%s>(%s)' % (self.objc_enum_name_for_anonymous_enum_member(declaration, member), sub_expression) else: -return 'fromProtocolString<%s>((__bridge CFStringRef)%s)' % (self.objc_enum_name_for_non_anonymous_enum(member.type), sub_expression) +return 'fromProtocolString<%s>(%s)' % (self.objc_enum_name_for_non_anonymous_enum(member.type), sub_expression) if isinstance(_type, ObjectType):
[webkit-changes] [273916] trunk/Source
Title: [273916] trunk/Source Revision 273916 Author achristen...@apple.com Date 2021-03-04 13:43:33 -0800 (Thu, 04 Mar 2021) Log Message Remove the HTTPSUpgradeEnabled experimental feature https://bugs.webkit.org/show_bug.cgi?id=222706 Reviewed by Simon Fraser. Source/WebKit: * NetworkProcess/NetworkHTTPSUpgradeChecker.cpp: Removed. * NetworkProcess/NetworkHTTPSUpgradeChecker.h: Removed. * NetworkProcess/NetworkLoadChecker.cpp: (WebKit::NetworkLoadChecker::NetworkLoadChecker): (WebKit::NetworkLoadChecker::checkRequest): (WebKit::NetworkLoadChecker::applyHTTPSUpgradeIfNeeded const): Deleted. * NetworkProcess/NetworkLoadChecker.h: * NetworkProcess/NetworkProcess.h: * NetworkProcess/NetworkResourceLoadParameters.cpp: (WebKit::NetworkResourceLoadParameters::encode const): (WebKit::NetworkResourceLoadParameters::decode): * NetworkProcess/NetworkResourceLoadParameters.h: * NetworkProcess/NetworkResourceLoader.cpp: * NetworkProcess/cocoa/NetworkProcessCocoa.mm: (WebKit::NetworkProcess::networkHTTPSUpgradeChecker): Deleted. * Sources.txt: * WebKit.xcodeproj/project.pbxproj: * WebProcess/Network/WebLoaderStrategy.cpp: (WebKit::addParametersShared): Source/WTF: It was a good experimental implementation, but the feature is now implemented in makeSecureIfNecessary and turned on and off by WKWebViewConfiguration.upgradeKnownHostsToHTTPS. * Scripts/Preferences/WebPreferencesExperimental.yaml: Modified Paths trunk/Source/WTF/ChangeLog trunk/Source/WTF/Scripts/Preferences/WebPreferencesExperimental.yaml trunk/Source/WebKit/ChangeLog trunk/Source/WebKit/NetworkProcess/NetworkLoadChecker.cpp trunk/Source/WebKit/NetworkProcess/NetworkLoadChecker.h trunk/Source/WebKit/NetworkProcess/NetworkProcess.h trunk/Source/WebKit/NetworkProcess/NetworkResourceLoadParameters.cpp trunk/Source/WebKit/NetworkProcess/NetworkResourceLoadParameters.h trunk/Source/WebKit/NetworkProcess/NetworkResourceLoader.cpp trunk/Source/WebKit/NetworkProcess/cocoa/NetworkProcessCocoa.mm trunk/Source/WebKit/Sources.txt trunk/Source/WebKit/WebKit.xcodeproj/project.pbxproj trunk/Source/WebKit/WebProcess/Network/WebLoaderStrategy.cpp Removed Paths trunk/Source/WebKit/NetworkProcess/NetworkHTTPSUpgradeChecker.cpp trunk/Source/WebKit/NetworkProcess/NetworkHTTPSUpgradeChecker.h Diff Modified: trunk/Source/WTF/ChangeLog (273915 => 273916) --- trunk/Source/WTF/ChangeLog 2021-03-04 21:06:56 UTC (rev 273915) +++ trunk/Source/WTF/ChangeLog 2021-03-04 21:43:33 UTC (rev 273916) @@ -1,3 +1,15 @@ +2021-03-04 Alex Christensen + +Remove the HTTPSUpgradeEnabled experimental feature +https://bugs.webkit.org/show_bug.cgi?id=222706 + +Reviewed by Simon Fraser. + +It was a good experimental implementation, but the feature is now implemented in makeSecureIfNecessary +and turned on and off by WKWebViewConfiguration.upgradeKnownHostsToHTTPS. + +* Scripts/Preferences/WebPreferencesExperimental.yaml: + 2021-03-04 Chris Dumez [macOS][WK2] Changing the system language does not update navigator.language Modified: trunk/Source/WTF/Scripts/Preferences/WebPreferencesExperimental.yaml (273915 => 273916) --- trunk/Source/WTF/Scripts/Preferences/WebPreferencesExperimental.yaml 2021-03-04 21:06:56 UTC (rev 273915) +++ trunk/Source/WTF/Scripts/Preferences/WebPreferencesExperimental.yaml 2021-03-04 21:43:33 UTC (rev 273916) @@ -380,19 +380,6 @@ WebKit: default: false -# FIXME: This is not implemented for WebKitLegacy, so should be excluded from WebKitLegacy entirely. -HTTPSUpgradeEnabled: - type: bool - humanReadableName: "Automatic HTTPS upgrade" - humanReadableDescription: "Automatic HTTPS upgrade for known supported sites" - defaultValue: -WebKitLegacy: - default: false -WebKit: - default: false -WebCore: - default: false - HighlightAPIEnabled: type: bool humanReadableName: "Highlight API" Modified: trunk/Source/WebKit/ChangeLog (273915 => 273916) --- trunk/Source/WebKit/ChangeLog 2021-03-04 21:06:56 UTC (rev 273915) +++ trunk/Source/WebKit/ChangeLog 2021-03-04 21:43:33 UTC (rev 273916) @@ -1,3 +1,30 @@ +2021-03-04 Alex Christensen + +Remove the HTTPSUpgradeEnabled experimental feature +https://bugs.webkit.org/show_bug.cgi?id=222706 + +Reviewed by Simon Fraser. + +* NetworkProcess/NetworkHTTPSUpgradeChecker.cpp: Removed. +* NetworkProcess/NetworkHTTPSUpgradeChecker.h: Removed. +* NetworkProcess/NetworkLoadChecker.cpp: +(WebKit::NetworkLoadChecker::NetworkLoadChecker): +(WebKit::NetworkLoadChecker::checkRequest): +(WebKit::NetworkLoadChecker::applyHTTPSUpgradeIfNeeded const): Deleted. +* NetworkProcess/NetworkLoadChecker.h: +* NetworkProcess/NetworkProcess.h: +* NetworkProcess/NetworkResourceLoadParameters.cpp: +(WebKit::NetworkResourceLoadParameters::encode const): +(WebKit::NetworkResourceLoadParameters::decode): +*
[webkit-changes] [273915] trunk/Source/WebKit
Title: [273915] trunk/Source/WebKit Revision 273915 Author wenson_hs...@apple.com Date 2021-03-04 13:06:56 -0800 (Thu, 04 Mar 2021) Log Message [iOS] Add support for a new image-extraction-related responder action https://bugs.webkit.org/show_bug.cgi?id=222743 Reviewed by Devin Rousso. Add support for the new action, such that we return `YES` if and only if we're in an editable context, and also such that we return a non-null target for the new action. * UIProcess/ios/WKContentViewInteraction.h: Add a fallback definition for `FOR_EACH_ADDITIONAL_WKCONTENTVIEW_ACTION`, which can be used by WebKitAdditions to inject additional responder actions when generating selector forwarding code between `WKContentView` and `WKWebView`. * UIProcess/ios/WKContentViewInteraction.mm: (-[WKContentView canPerformActionForWebView:withSender:]): Modified Paths trunk/Source/WebKit/ChangeLog trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.h trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm Diff Modified: trunk/Source/WebKit/ChangeLog (273914 => 273915) --- trunk/Source/WebKit/ChangeLog 2021-03-04 21:00:51 UTC (rev 273914) +++ trunk/Source/WebKit/ChangeLog 2021-03-04 21:06:56 UTC (rev 273915) @@ -1,3 +1,23 @@ +2021-03-04 Wenson Hsieh + +[iOS] Add support for a new image-extraction-related responder action +https://bugs.webkit.org/show_bug.cgi?id=222743 + + +Reviewed by Devin Rousso. + +Add support for the new action, such that we return `YES` if and only if we're in an editable context, and also +such that we return a non-null target for the new action. + +* UIProcess/ios/WKContentViewInteraction.h: + +Add a fallback definition for `FOR_EACH_ADDITIONAL_WKCONTENTVIEW_ACTION`, which can be used by WebKitAdditions +to inject additional responder actions when generating selector forwarding code between `WKContentView` and +`WKWebView`. + +* UIProcess/ios/WKContentViewInteraction.mm: +(-[WKContentView canPerformActionForWebView:withSender:]): + 2021-03-04 Chris Dumez Unreviewed build fix after r272629. Modified: trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.h (273914 => 273915) --- trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.h 2021-03-04 21:00:51 UTC (rev 273914) +++ trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.h 2021-03-04 21:06:56 UTC (rev 273915) @@ -145,7 +145,12 @@ typedef BlockPtr InteractionInformationCallback; typedef std::pair InteractionInformationRequestAndCallback; +#if !defined(FOR_EACH_ADDITIONAL_WKCONTENTVIEW_ACTION) +#define FOR_EACH_ADDITIONAL_WKCONTENTVIEW_ACTION(M) +#endif + #define FOR_EACH_WKCONTENTVIEW_ACTION(M) \ +FOR_EACH_ADDITIONAL_WKCONTENTVIEW_ACTION(M) \ M(_addShortcut) \ M(_define) \ M(_lookup) \ Modified: trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm (273914 => 273915) --- trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm 2021-03-04 21:00:51 UTC (rev 273914) +++ trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm 2021-03-04 21:06:56 UTC (rev 273915) @@ -3698,6 +3698,11 @@ return baseWritingDirection != WebCore::WritingDirection::RightToLeft; } +#if ENABLE(IMAGE_EXTRACTION) +if (action == WebKit::imageExtractionAction()) +return editorState.isContentEditable; +#endif + return [super canPerformAction:action withSender:sender]; } ___ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes
[webkit-changes] [273914] trunk/LayoutTests
Title: [273914] trunk/LayoutTests Revision 273914 Author peng.l...@apple.com Date 2021-03-04 13:00:51 -0800 (Thu, 04 Mar 2021) Log Message [GPUP] Some media tests are flaky when media in GPU Process is enabled https://bugs.webkit.org/show_bug.cgi?id=221693 Unreviewed test gardening. Remove the tests which are consistently passing on bots from the test expectations. * platform/wk2/TestExpectations: Modified Paths trunk/LayoutTests/ChangeLog trunk/LayoutTests/platform/wk2/TestExpectations Diff Modified: trunk/LayoutTests/ChangeLog (273913 => 273914) --- trunk/LayoutTests/ChangeLog 2021-03-04 20:42:52 UTC (rev 273913) +++ trunk/LayoutTests/ChangeLog 2021-03-04 21:00:51 UTC (rev 273914) @@ -1,3 +1,14 @@ +2021-03-04 Peng Liu + +[GPUP] Some media tests are flaky when media in GPU Process is enabled +https://bugs.webkit.org/show_bug.cgi?id=221693 + +Unreviewed test gardening. + +Remove the tests which are consistently passing on bots from the test expectations. + +* platform/wk2/TestExpectations: + 2021-03-04 Youenn Fablet In case of POST navigation redirected by a 302, the 'Origin' header is kept in the redirected request Modified: trunk/LayoutTests/platform/wk2/TestExpectations (273913 => 273914) --- trunk/LayoutTests/platform/wk2/TestExpectations 2021-03-04 20:42:52 UTC (rev 273913) +++ trunk/LayoutTests/platform/wk2/TestExpectations 2021-03-04 21:00:51 UTC (rev 273914) @@ -238,13 +238,8 @@ media/picture-in-picture/picture-in-picture-api-pip-window.html [ Timeout Pass ] # webkit.org/b/221693 -media/audio-playback-restriction-removed-track-enabled.html [ Timeout Pass ] -media/controls/inline-elements-dropoff-order.html [ Failure Pass ] media/encrypted-media/clearKey/clearKey-session-life-cycle.html [ Failure Crash ] -media/media-can-play-webm.html [ Failure ] media/media-controller-unpause.html [ Timeout ] -media/track/track-cues-pause-on-exit.html [ Timeout Pass ] -media/video-as-img-output-pts.html [ Timeout Pass ] media/video-controller-child-rate.html [ Failure Pass ] media/video-set-rate-from-pause.html [ Timeout Pass ] ___ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes
[webkit-changes] [273913] trunk/Tools
Title: [273913] trunk/Tools Revision 273913 Author aakash_j...@apple.com Date 2021-03-04 12:42:52 -0800 (Thu, 04 Mar 2021) Log Message [ews] Add python 3 support - part 5 https://bugs.webkit.org/show_bug.cgi?id=222744 Reviewed by Jonathan Bedard. * CISupport/ews-build/steps.py: (CheckPatchRelevance._patch_is_relevant): Ensure that in python 3, path and changes are bytes. This is because buildbot stores patch as bytes, as mentioned in https://github.com/buildbot/buildbot/issues/5812#issuecomment-790175979 * CISupport/ews-build/steps_unittest.py: Updated one unit-test to test binary patch. Modified Paths trunk/Tools/CISupport/ews-build/steps.py trunk/Tools/CISupport/ews-build/steps_unittest.py trunk/Tools/ChangeLog Diff Modified: trunk/Tools/CISupport/ews-build/steps.py (273912 => 273913) --- trunk/Tools/CISupport/ews-build/steps.py 2021-03-04 20:12:09 UTC (rev 273912) +++ trunk/Tools/CISupport/ews-build/steps.py 2021-03-04 20:42:52 UTC (rev 273913) @@ -406,6 +406,11 @@ for change in patch.splitlines(): for path in relevant_paths: +if sys.version_info > (3, 0): +if type(path) == str: +path = path.encode(encoding='utf-8', errors='replace') +if type(change) == str: +change = change.encode(encoding='utf-8', errors='replace') if re.search(path, change, re.IGNORECASE): return True return False Modified: trunk/Tools/CISupport/ews-build/steps_unittest.py (273912 => 273913) --- trunk/Tools/CISupport/ews-build/steps_unittest.py 2021-03-04 20:12:09 UTC (rev 273912) +++ trunk/Tools/CISupport/ews-build/steps_unittest.py 2021-03-04 20:42:52 UTC (rev 273913) @@ -2437,7 +2437,7 @@ return rc def test_relevant_windows_wk1_patch(self): -CheckPatchRelevance._get_patch = lambda x: 'Sample patch; file: Source/WebKitLegacy' +CheckPatchRelevance._get_patch = lambda x: b'Sample patch; file: Source/WebKitLegacy' self.setupStep(CheckPatchRelevance()) self.setProperty('buildername', 'Windows-EWS') self.expectOutcome(result=SUCCESS, state_string='Patch contains relevant changes') Modified: trunk/Tools/ChangeLog (273912 => 273913) --- trunk/Tools/ChangeLog 2021-03-04 20:12:09 UTC (rev 273912) +++ trunk/Tools/ChangeLog 2021-03-04 20:42:52 UTC (rev 273913) @@ -1,3 +1,15 @@ +2021-03-04 Aakash Jain + +[ews] Add python 3 support - part 5 +https://bugs.webkit.org/show_bug.cgi?id=222744 + +Reviewed by Jonathan Bedard. + +* CISupport/ews-build/steps.py: +(CheckPatchRelevance._patch_is_relevant): Ensure that in python 3, path and changes are bytes. This is because buildbot +stores patch as bytes, as mentioned in https://github.com/buildbot/buildbot/issues/5812#issuecomment-790175979 +* CISupport/ews-build/steps_unittest.py: Updated one unit-test to test binary patch. + 2021-03-04 Chris Dumez [macOS][WK2] Changing the system language does not update navigator.language ___ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes
[webkit-changes] [273912] trunk/Source/WebInspectorUI
Title: [273912] trunk/Source/WebInspectorUI Revision 273912 Author commit-qu...@webkit.org Date 2021-03-04 12:12:09 -0800 (Thu, 04 Mar 2021) Log Message Web Inspector: Persist CSS Grid overlay colors https://bugs.webkit.org/show_bug.cgi?id=222319 Patch by Razvan Caliman on 2021-03-04 Reviewed by Devin Rousso. Save and restore CSS Grid overlay colors edited by a user. * UserInterface/Controllers/OverlayManager.js: (WI.OverlayManager): (WI.OverlayManager.prototype.showGridOverlay): (WI.OverlayManager.prototype.getGridColorForNode): (WI.OverlayManager.prototype.setGridColorForNode): (WI.OverlayManager.prototype._handleMainResourceDidChange): * UserInterface/Views/CSSGridSection.js: (WI.CSSGridSection.prototype.layout): Modified Paths trunk/Source/WebInspectorUI/ChangeLog trunk/Source/WebInspectorUI/UserInterface/Controllers/OverlayManager.js trunk/Source/WebInspectorUI/UserInterface/Views/CSSGridSection.js Diff Modified: trunk/Source/WebInspectorUI/ChangeLog (273911 => 273912) --- trunk/Source/WebInspectorUI/ChangeLog 2021-03-04 19:52:49 UTC (rev 273911) +++ trunk/Source/WebInspectorUI/ChangeLog 2021-03-04 20:12:09 UTC (rev 273912) @@ -1,5 +1,24 @@ 2021-03-04 Razvan Caliman +Web Inspector: Persist CSS Grid overlay colors +https://bugs.webkit.org/show_bug.cgi?id=222319 + + +Reviewed by Devin Rousso. + +Save and restore CSS Grid overlay colors edited by a user. + +* UserInterface/Controllers/OverlayManager.js: +(WI.OverlayManager): +(WI.OverlayManager.prototype.showGridOverlay): +(WI.OverlayManager.prototype.getGridColorForNode): +(WI.OverlayManager.prototype.setGridColorForNode): +(WI.OverlayManager.prototype._handleMainResourceDidChange): +* UserInterface/Views/CSSGridSection.js: +(WI.CSSGridSection.prototype.layout): + +2021-03-04 Razvan Caliman + Web Inspector: Audits Tab: nothing happens when clicking "Start" button in the content area placeholder text https://bugs.webkit.org/show_bug.cgi?id=222740 rdar://75008042 Modified: trunk/Source/WebInspectorUI/UserInterface/Controllers/OverlayManager.js (273911 => 273912) --- trunk/Source/WebInspectorUI/UserInterface/Controllers/OverlayManager.js 2021-03-04 19:52:49 UTC (rev 273911) +++ trunk/Source/WebInspectorUI/UserInterface/Controllers/OverlayManager.js 2021-03-04 20:12:09 UTC (rev 273912) @@ -30,11 +30,10 @@ super(); this._gridOverlayForNodeMap = new Map; +this._nextDefaultGridColorIndex = 0; +this._gridColorForNodeMap = new WeakMap; +this._gridColorSettingForNodeMap = new WeakMap; -// Can't reuse `this._gridOverlayForNodeMap` because nodes are removed from it when overlay isn't visible. -this._colorForNodeMap = new WeakMap; -this._nextDOMNodeColorIndex = 0; - WI.settings.gridOverlayShowExtendedGridLines.addEventListener(WI.Setting.Event.Changed, this._handleGridSettingChanged, this); WI.settings.gridOverlayShowLineNames.addEventListener(WI.Setting.Event.Changed, this._handleGridSettingChanged, this); WI.settings.gridOverlayShowLineNumbers.addEventListener(WI.Setting.Event.Changed, this._handleGridSettingChanged, this); @@ -60,7 +59,7 @@ console.assert(!color || color instanceof WI.Color, color); console.assert(domNode.layoutContextType === WI.DOMNode.LayoutContextType.Grid, domNode.layoutContextType); -color ||= this.colorForNode(domNode); +color ||= this.getGridColorForNode(domNode); let target = WI.assumingMainTarget(); let commandArguments = { nodeId: domNode.id, @@ -74,10 +73,13 @@ target.DOMAgent.showGridOverlay.invoke(commandArguments); let overlay = {domNode, ...commandArguments}; + +// The method to show the overlay will be called repeatedly while updating the grid overlay color. Avoid adding duplicate event listeners +if (!this._gridOverlayForNodeMap.has(domNode)) +domNode.addEventListener(WI.DOMNode.Event.LayoutContextTypeChanged, this._handleLayoutContextTypeChanged, this); + this._gridOverlayForNodeMap.set(domNode, overlay); -this._colorForNodeMap.set(domNode, color); -domNode.addEventListener(WI.DOMNode.Event.LayoutContextTypeChanged, this._handleLayoutContextTypeChanged, this); this.dispatchEventToListeners(WI.OverlayManager.Event.GridOverlayShown, overlay); } @@ -113,13 +115,13 @@ this.showGridOverlay(domNode); } -colorForNode(domNode) +getGridColorForNode(domNode) { -let color = this._colorForNodeMap.get(domNode); +let color = this._gridColorForNodeMap.get(domNode); if (color) return color; -const hslColors = [ +const defaultGridHSLColors = [ [329, 91, 70], [207, 96, 69], [92, 90, 64], @@ -127,13 +129,34
[webkit-changes] [273911] branches/safari-611.1.21.1-branch/Source/WebCore
Title: [273911] branches/safari-611.1.21.1-branch/Source/WebCore Revision 273911 Author alanc...@apple.com Date 2021-03-04 11:52:49 -0800 (Thu, 04 Mar 2021) Log Message Cherry-pick r273842. rdar://problem/75049285 Crash under SubresourceLoader::notifyDone() https://bugs.webkit.org/show_bug.cgi?id=222683 Reviewed by Geoffrey Garen. We were crashing doing a null-dereference of m_documentLoader under SubresourceLoader::notifyDone(). This adds null checks for m_documentLoader similarly to what is already done elsewhere in ResourceLoader. No new tests, I do not know how to reproduce this. * loader/SubresourceLoader.cpp: (WebCore::SubresourceLoader::notifyDone): git-svn-id: https://svn.webkit.org/repository/webkit/trunk@273842 268f45cc-cd09-0410-ab3c-d52691b4dbfc Modified Paths branches/safari-611.1.21.1-branch/Source/WebCore/ChangeLog branches/safari-611.1.21.1-branch/Source/WebCore/loader/SubresourceLoader.cpp Diff Modified: branches/safari-611.1.21.1-branch/Source/WebCore/ChangeLog (273910 => 273911) --- branches/safari-611.1.21.1-branch/Source/WebCore/ChangeLog 2021-03-04 19:51:24 UTC (rev 273910) +++ branches/safari-611.1.21.1-branch/Source/WebCore/ChangeLog 2021-03-04 19:52:49 UTC (rev 273911) @@ -1,3 +1,42 @@ +2021-03-04 Alan Coon + +Cherry-pick r273842. rdar://problem/75049285 + +Crash under SubresourceLoader::notifyDone() +https://bugs.webkit.org/show_bug.cgi?id=222683 + + +Reviewed by Geoffrey Garen. + +We were crashing doing a null-dereference of m_documentLoader under +SubresourceLoader::notifyDone(). This adds null checks for m_documentLoader +similarly to what is already done elsewhere in ResourceLoader. + +No new tests, I do not know how to reproduce this. + +* loader/SubresourceLoader.cpp: +(WebCore::SubresourceLoader::notifyDone): + + +git-svn-id: https://svn.webkit.org/repository/webkit/trunk@273842 268f45cc-cd09-0410-ab3c-d52691b4dbfc + +2021-03-03 Chris Dumez + +Crash under SubresourceLoader::notifyDone() +https://bugs.webkit.org/show_bug.cgi?id=222683 + + +Reviewed by Geoffrey Garen. + +We were crashing doing a null-dereference of m_documentLoader under +SubresourceLoader::notifyDone(). This adds null checks for m_documentLoader +similarly to what is already done elsewhere in ResourceLoader. + +No new tests, I do not know how to reproduce this. + +* loader/SubresourceLoader.cpp: +(WebCore::SubresourceLoader::notifyDone): + 2021-03-03 Ruben Turcios Cherry-pick r273764. rdar://problem/74992878 Modified: branches/safari-611.1.21.1-branch/Source/WebCore/loader/SubresourceLoader.cpp (273910 => 273911) --- branches/safari-611.1.21.1-branch/Source/WebCore/loader/SubresourceLoader.cpp 2021-03-04 19:51:24 UTC (rev 273910) +++ branches/safari-611.1.21.1-branch/Source/WebCore/loader/SubresourceLoader.cpp 2021-03-04 19:52:49 UTC (rev 273911) @@ -842,10 +842,12 @@ if (m_state == CancelledWhileInitializing) shouldPerformPostLoadActions = false; #endif -m_documentLoader->cachedResourceLoader().loadDone(type, shouldPerformPostLoadActions); +if (m_documentLoader) +m_documentLoader->cachedResourceLoader().loadDone(type, shouldPerformPostLoadActions); if (reachedTerminalState()) return; -m_documentLoader->removeSubresourceLoader(type, this); +if (m_documentLoader) +m_documentLoader->removeSubresourceLoader(type, this); } void SubresourceLoader::releaseResources() ___ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes
[webkit-changes] [273910] branches/safari-611.1.21.1-branch/Source
Title: [273910] branches/safari-611.1.21.1-branch/Source Revision 273910 Author alanc...@apple.com Date 2021-03-04 11:51:24 -0800 (Thu, 04 Mar 2021) Log Message Versioning. WebKit-7611.1.21.1.5 Modified Paths branches/safari-611.1.21.1-branch/Source/_javascript_Core/Configurations/Version.xcconfig branches/safari-611.1.21.1-branch/Source/ThirdParty/ANGLE/Configurations/Version.xcconfig branches/safari-611.1.21.1-branch/Source/ThirdParty/libwebrtc/Configurations/Version.xcconfig branches/safari-611.1.21.1-branch/Source/WebCore/Configurations/Version.xcconfig branches/safari-611.1.21.1-branch/Source/WebCore/PAL/Configurations/Version.xcconfig branches/safari-611.1.21.1-branch/Source/WebInspectorUI/Configurations/Version.xcconfig branches/safari-611.1.21.1-branch/Source/WebKit/Configurations/Version.xcconfig branches/safari-611.1.21.1-branch/Source/WebKitLegacy/mac/Configurations/Version.xcconfig Diff Modified: branches/safari-611.1.21.1-branch/Source/_javascript_Core/Configurations/Version.xcconfig (273909 => 273910) --- branches/safari-611.1.21.1-branch/Source/_javascript_Core/Configurations/Version.xcconfig 2021-03-04 19:46:00 UTC (rev 273909) +++ branches/safari-611.1.21.1-branch/Source/_javascript_Core/Configurations/Version.xcconfig 2021-03-04 19:51:24 UTC (rev 273910) @@ -25,7 +25,7 @@ MINOR_VERSION = 1; TINY_VERSION = 21; MICRO_VERSION = 1; -NANO_VERSION = 4; +NANO_VERSION = 5; FULL_VERSION = $(MAJOR_VERSION).$(MINOR_VERSION).$(TINY_VERSION).$(MICRO_VERSION).$(NANO_VERSION); // The bundle version and short version string are set based on the current build configuration, see below. Modified: branches/safari-611.1.21.1-branch/Source/ThirdParty/ANGLE/Configurations/Version.xcconfig (273909 => 273910) --- branches/safari-611.1.21.1-branch/Source/ThirdParty/ANGLE/Configurations/Version.xcconfig 2021-03-04 19:46:00 UTC (rev 273909) +++ branches/safari-611.1.21.1-branch/Source/ThirdParty/ANGLE/Configurations/Version.xcconfig 2021-03-04 19:51:24 UTC (rev 273910) @@ -25,7 +25,7 @@ MINOR_VERSION = 1; TINY_VERSION = 21; MICRO_VERSION = 1; -NANO_VERSION = 4; +NANO_VERSION = 5; FULL_VERSION = $(MAJOR_VERSION).$(MINOR_VERSION).$(TINY_VERSION).$(MICRO_VERSION).$(NANO_VERSION); // The bundle version and short version string are set based on the current build configuration, see below. Modified: branches/safari-611.1.21.1-branch/Source/ThirdParty/libwebrtc/Configurations/Version.xcconfig (273909 => 273910) --- branches/safari-611.1.21.1-branch/Source/ThirdParty/libwebrtc/Configurations/Version.xcconfig 2021-03-04 19:46:00 UTC (rev 273909) +++ branches/safari-611.1.21.1-branch/Source/ThirdParty/libwebrtc/Configurations/Version.xcconfig 2021-03-04 19:51:24 UTC (rev 273910) @@ -25,7 +25,7 @@ MINOR_VERSION = 1; TINY_VERSION = 21; MICRO_VERSION = 1; -NANO_VERSION = 4; +NANO_VERSION = 5; FULL_VERSION = $(MAJOR_VERSION).$(MINOR_VERSION).$(TINY_VERSION).$(MICRO_VERSION).$(NANO_VERSION); // The bundle version and short version string are set based on the current build configuration, see below. Modified: branches/safari-611.1.21.1-branch/Source/WebCore/Configurations/Version.xcconfig (273909 => 273910) --- branches/safari-611.1.21.1-branch/Source/WebCore/Configurations/Version.xcconfig 2021-03-04 19:46:00 UTC (rev 273909) +++ branches/safari-611.1.21.1-branch/Source/WebCore/Configurations/Version.xcconfig 2021-03-04 19:51:24 UTC (rev 273910) @@ -25,7 +25,7 @@ MINOR_VERSION = 1; TINY_VERSION = 21; MICRO_VERSION = 1; -NANO_VERSION = 4; +NANO_VERSION = 5; FULL_VERSION = $(MAJOR_VERSION).$(MINOR_VERSION).$(TINY_VERSION).$(MICRO_VERSION).$(NANO_VERSION); // The bundle version and short version string are set based on the current build configuration, see below. Modified: branches/safari-611.1.21.1-branch/Source/WebCore/PAL/Configurations/Version.xcconfig (273909 => 273910) --- branches/safari-611.1.21.1-branch/Source/WebCore/PAL/Configurations/Version.xcconfig 2021-03-04 19:46:00 UTC (rev 273909) +++ branches/safari-611.1.21.1-branch/Source/WebCore/PAL/Configurations/Version.xcconfig 2021-03-04 19:51:24 UTC (rev 273910) @@ -25,7 +25,7 @@ MINOR_VERSION = 1; TINY_VERSION = 21; MICRO_VERSION = 1; -NANO_VERSION = 4; +NANO_VERSION = 5; FULL_VERSION = $(MAJOR_VERSION).$(MINOR_VERSION).$(TINY_VERSION).$(MICRO_VERSION).$(NANO_VERSION); // The bundle version and short version string are set based on the current build configuration, see below. Modified: branches/safari-611.1.21.1-branch/Source/WebInspectorUI/Configurations/Version.xcconfig (273909 => 273910) --- branches/safari-611.1.21.1-branch/Source/WebInspectorUI/Configurations/Version.xcconfig 2021-03-04 19:46:00 UTC (rev 273909) +++ branches/safari-611.1.21.1-branch/Source/WebInspectorUI/Configurations/Version.xcconfig 2021-03-04 19:51:24 UTC (rev 273910) @@ -2,7 +2,7 @@ MINOR_VERSION = 1; TINY_VERSION = 21; MICRO_VERSION = 1; -NANO_VERSION = 4; +NANO_VERSION = 5; FULL_VERSION =
[webkit-changes] [273909] branches/safari-611.1.21.0-branch/Source/WebCore
Title: [273909] branches/safari-611.1.21.0-branch/Source/WebCore Revision 273909 Author alanc...@apple.com Date 2021-03-04 11:46:00 -0800 (Thu, 04 Mar 2021) Log Message Cherry-pick r273842. rdar://problem/75049263 Crash under SubresourceLoader::notifyDone() https://bugs.webkit.org/show_bug.cgi?id=222683 Reviewed by Geoffrey Garen. We were crashing doing a null-dereference of m_documentLoader under SubresourceLoader::notifyDone(). This adds null checks for m_documentLoader similarly to what is already done elsewhere in ResourceLoader. No new tests, I do not know how to reproduce this. * loader/SubresourceLoader.cpp: (WebCore::SubresourceLoader::notifyDone): git-svn-id: https://svn.webkit.org/repository/webkit/trunk@273842 268f45cc-cd09-0410-ab3c-d52691b4dbfc Modified Paths branches/safari-611.1.21.0-branch/Source/WebCore/ChangeLog branches/safari-611.1.21.0-branch/Source/WebCore/loader/SubresourceLoader.cpp Diff Modified: branches/safari-611.1.21.0-branch/Source/WebCore/ChangeLog (273908 => 273909) --- branches/safari-611.1.21.0-branch/Source/WebCore/ChangeLog 2021-03-04 19:44:26 UTC (rev 273908) +++ branches/safari-611.1.21.0-branch/Source/WebCore/ChangeLog 2021-03-04 19:46:00 UTC (rev 273909) @@ -1,3 +1,42 @@ +2021-03-04 Alan Coon + +Cherry-pick r273842. rdar://problem/75049263 + +Crash under SubresourceLoader::notifyDone() +https://bugs.webkit.org/show_bug.cgi?id=222683 + + +Reviewed by Geoffrey Garen. + +We were crashing doing a null-dereference of m_documentLoader under +SubresourceLoader::notifyDone(). This adds null checks for m_documentLoader +similarly to what is already done elsewhere in ResourceLoader. + +No new tests, I do not know how to reproduce this. + +* loader/SubresourceLoader.cpp: +(WebCore::SubresourceLoader::notifyDone): + + +git-svn-id: https://svn.webkit.org/repository/webkit/trunk@273842 268f45cc-cd09-0410-ab3c-d52691b4dbfc + +2021-03-03 Chris Dumez + +Crash under SubresourceLoader::notifyDone() +https://bugs.webkit.org/show_bug.cgi?id=222683 + + +Reviewed by Geoffrey Garen. + +We were crashing doing a null-dereference of m_documentLoader under +SubresourceLoader::notifyDone(). This adds null checks for m_documentLoader +similarly to what is already done elsewhere in ResourceLoader. + +No new tests, I do not know how to reproduce this. + +* loader/SubresourceLoader.cpp: +(WebCore::SubresourceLoader::notifyDone): + 2021-03-02 Russell Epstein Apply patch. rdar://problem/74944257 Modified: branches/safari-611.1.21.0-branch/Source/WebCore/loader/SubresourceLoader.cpp (273908 => 273909) --- branches/safari-611.1.21.0-branch/Source/WebCore/loader/SubresourceLoader.cpp 2021-03-04 19:44:26 UTC (rev 273908) +++ branches/safari-611.1.21.0-branch/Source/WebCore/loader/SubresourceLoader.cpp 2021-03-04 19:46:00 UTC (rev 273909) @@ -842,10 +842,12 @@ if (m_state == CancelledWhileInitializing) shouldPerformPostLoadActions = false; #endif -m_documentLoader->cachedResourceLoader().loadDone(type, shouldPerformPostLoadActions); +if (m_documentLoader) +m_documentLoader->cachedResourceLoader().loadDone(type, shouldPerformPostLoadActions); if (reachedTerminalState()) return; -m_documentLoader->removeSubresourceLoader(type, this); +if (m_documentLoader) +m_documentLoader->removeSubresourceLoader(type, this); } void SubresourceLoader::releaseResources() ___ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes
[webkit-changes] [273908] branches/safari-611.1.21.0-branch/Source
Title: [273908] branches/safari-611.1.21.0-branch/Source Revision 273908 Author alanc...@apple.com Date 2021-03-04 11:44:26 -0800 (Thu, 04 Mar 2021) Log Message Versioning. WebKit-7611.1.21.0.4 Modified Paths branches/safari-611.1.21.0-branch/Source/_javascript_Core/Configurations/Version.xcconfig branches/safari-611.1.21.0-branch/Source/ThirdParty/ANGLE/Configurations/Version.xcconfig branches/safari-611.1.21.0-branch/Source/ThirdParty/libwebrtc/Configurations/Version.xcconfig branches/safari-611.1.21.0-branch/Source/WebCore/Configurations/Version.xcconfig branches/safari-611.1.21.0-branch/Source/WebCore/PAL/Configurations/Version.xcconfig branches/safari-611.1.21.0-branch/Source/WebInspectorUI/Configurations/Version.xcconfig branches/safari-611.1.21.0-branch/Source/WebKit/Configurations/Version.xcconfig branches/safari-611.1.21.0-branch/Source/WebKitLegacy/mac/Configurations/Version.xcconfig Diff Modified: branches/safari-611.1.21.0-branch/Source/_javascript_Core/Configurations/Version.xcconfig (273907 => 273908) --- branches/safari-611.1.21.0-branch/Source/_javascript_Core/Configurations/Version.xcconfig 2021-03-04 19:41:56 UTC (rev 273907) +++ branches/safari-611.1.21.0-branch/Source/_javascript_Core/Configurations/Version.xcconfig 2021-03-04 19:44:26 UTC (rev 273908) @@ -25,7 +25,7 @@ MINOR_VERSION = 1; TINY_VERSION = 21; MICRO_VERSION = 0; -NANO_VERSION = 3; +NANO_VERSION = 4; FULL_VERSION = $(MAJOR_VERSION).$(MINOR_VERSION).$(TINY_VERSION).$(MICRO_VERSION).$(NANO_VERSION); // The bundle version and short version string are set based on the current build configuration, see below. Modified: branches/safari-611.1.21.0-branch/Source/ThirdParty/ANGLE/Configurations/Version.xcconfig (273907 => 273908) --- branches/safari-611.1.21.0-branch/Source/ThirdParty/ANGLE/Configurations/Version.xcconfig 2021-03-04 19:41:56 UTC (rev 273907) +++ branches/safari-611.1.21.0-branch/Source/ThirdParty/ANGLE/Configurations/Version.xcconfig 2021-03-04 19:44:26 UTC (rev 273908) @@ -25,7 +25,7 @@ MINOR_VERSION = 1; TINY_VERSION = 21; MICRO_VERSION = 0; -NANO_VERSION = 3; +NANO_VERSION = 4; FULL_VERSION = $(MAJOR_VERSION).$(MINOR_VERSION).$(TINY_VERSION).$(MICRO_VERSION).$(NANO_VERSION); // The bundle version and short version string are set based on the current build configuration, see below. Modified: branches/safari-611.1.21.0-branch/Source/ThirdParty/libwebrtc/Configurations/Version.xcconfig (273907 => 273908) --- branches/safari-611.1.21.0-branch/Source/ThirdParty/libwebrtc/Configurations/Version.xcconfig 2021-03-04 19:41:56 UTC (rev 273907) +++ branches/safari-611.1.21.0-branch/Source/ThirdParty/libwebrtc/Configurations/Version.xcconfig 2021-03-04 19:44:26 UTC (rev 273908) @@ -25,7 +25,7 @@ MINOR_VERSION = 1; TINY_VERSION = 21; MICRO_VERSION = 0; -NANO_VERSION = 3; +NANO_VERSION = 4; FULL_VERSION = $(MAJOR_VERSION).$(MINOR_VERSION).$(TINY_VERSION).$(MICRO_VERSION).$(NANO_VERSION); // The bundle version and short version string are set based on the current build configuration, see below. Modified: branches/safari-611.1.21.0-branch/Source/WebCore/Configurations/Version.xcconfig (273907 => 273908) --- branches/safari-611.1.21.0-branch/Source/WebCore/Configurations/Version.xcconfig 2021-03-04 19:41:56 UTC (rev 273907) +++ branches/safari-611.1.21.0-branch/Source/WebCore/Configurations/Version.xcconfig 2021-03-04 19:44:26 UTC (rev 273908) @@ -25,7 +25,7 @@ MINOR_VERSION = 1; TINY_VERSION = 21; MICRO_VERSION = 0; -NANO_VERSION = 3; +NANO_VERSION = 4; FULL_VERSION = $(MAJOR_VERSION).$(MINOR_VERSION).$(TINY_VERSION).$(MICRO_VERSION).$(NANO_VERSION); // The bundle version and short version string are set based on the current build configuration, see below. Modified: branches/safari-611.1.21.0-branch/Source/WebCore/PAL/Configurations/Version.xcconfig (273907 => 273908) --- branches/safari-611.1.21.0-branch/Source/WebCore/PAL/Configurations/Version.xcconfig 2021-03-04 19:41:56 UTC (rev 273907) +++ branches/safari-611.1.21.0-branch/Source/WebCore/PAL/Configurations/Version.xcconfig 2021-03-04 19:44:26 UTC (rev 273908) @@ -25,7 +25,7 @@ MINOR_VERSION = 1; TINY_VERSION = 21; MICRO_VERSION = 0; -NANO_VERSION = 3; +NANO_VERSION = 4; FULL_VERSION = $(MAJOR_VERSION).$(MINOR_VERSION).$(TINY_VERSION).$(MICRO_VERSION).$(NANO_VERSION); // The bundle version and short version string are set based on the current build configuration, see below. Modified: branches/safari-611.1.21.0-branch/Source/WebInspectorUI/Configurations/Version.xcconfig (273907 => 273908) --- branches/safari-611.1.21.0-branch/Source/WebInspectorUI/Configurations/Version.xcconfig 2021-03-04 19:41:56 UTC (rev 273907) +++ branches/safari-611.1.21.0-branch/Source/WebInspectorUI/Configurations/Version.xcconfig 2021-03-04 19:44:26 UTC (rev 273908) @@ -2,7 +2,7 @@ MINOR_VERSION = 1; TINY_VERSION = 21; MICRO_VERSION = 0; -NANO_VERSION = 3; +NANO_VERSION = 4; FULL_VERSION =
[webkit-changes] [273907] trunk/Source/WebKit
Title: [273907] trunk/Source/WebKit Revision 273907 Author cdu...@apple.com Date 2021-03-04 11:41:56 -0800 (Thu, 04 Mar 2021) Log Message Unreviewed build fix after r272629. * UIProcess/Cocoa/WKBlankOverlayView.mm: Modified Paths trunk/Source/WebKit/ChangeLog trunk/Source/WebKit/UIProcess/Cocoa/WKBlankOverlayView.mm Diff Modified: trunk/Source/WebKit/ChangeLog (273906 => 273907) --- trunk/Source/WebKit/ChangeLog 2021-03-04 19:40:02 UTC (rev 273906) +++ trunk/Source/WebKit/ChangeLog 2021-03-04 19:41:56 UTC (rev 273907) @@ -1,5 +1,11 @@ 2021-03-04 Chris Dumez +Unreviewed build fix after r272629. + +* UIProcess/Cocoa/WKBlankOverlayView.mm: + +2021-03-04 Chris Dumez + [macOS][WK2] Changing the system language does not update navigator.language https://bugs.webkit.org/show_bug.cgi?id=222619 Modified: trunk/Source/WebKit/UIProcess/Cocoa/WKBlankOverlayView.mm (273906 => 273907) --- trunk/Source/WebKit/UIProcess/Cocoa/WKBlankOverlayView.mm 2021-03-04 19:40:02 UTC (rev 273906) +++ trunk/Source/WebKit/UIProcess/Cocoa/WKBlankOverlayView.mm 2021-03-04 19:41:56 UTC (rev 273907) @@ -24,7 +24,7 @@ */ #import "config.h" -#import "WKBlankOverlayView.mm" +#import "WKBlankOverlayView.h" @implementation WKBlankOverlayView { } ___ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes
[webkit-changes] [273906] trunk/Source/JavaScriptCore
Title: [273906] trunk/Source/_javascript_Core Revision 273906 Author achristen...@apple.com Date 2021-03-04 11:40:02 -0800 (Thu, 04 Mar 2021) Log Message [Cocoa] REGRESSION(r272752): fix some internal builds that use WTFString::WTFString(NSString *) https://bugs.webkit.org/show_bug.cgi?id=222610 Reviewed by Chris Dumez. * inspector/scripts/codegen/objc_generator.py: (ObjCGenerator.objc_protocol_import_expression_for_member): (ObjCGenerator.objc_protocol_import_expression_for_parameter): (ObjCGenerator.protocol_to_objc_expression_for_member): (ObjCGenerator.payload_to_objc_expression_for_member): Modified Paths trunk/Source/_javascript_Core/ChangeLog trunk/Source/_javascript_Core/inspector/scripts/codegen/objc_generator.py Diff Modified: trunk/Source/_javascript_Core/ChangeLog (273905 => 273906) --- trunk/Source/_javascript_Core/ChangeLog 2021-03-04 19:30:12 UTC (rev 273905) +++ trunk/Source/_javascript_Core/ChangeLog 2021-03-04 19:40:02 UTC (rev 273906) @@ -1,3 +1,16 @@ +2021-03-04 Alex Christensen + +[Cocoa] REGRESSION(r272752): fix some internal builds that use WTFString::WTFString(NSString *) +https://bugs.webkit.org/show_bug.cgi?id=222610 + +Reviewed by Chris Dumez. + +* inspector/scripts/codegen/objc_generator.py: +(ObjCGenerator.objc_protocol_import_expression_for_member): +(ObjCGenerator.objc_protocol_import_expression_for_parameter): +(ObjCGenerator.protocol_to_objc_expression_for_member): +(ObjCGenerator.payload_to_objc_expression_for_member): + 2021-03-03 Devin Rousso Web Inspector: `RecordCanvasActionVariant` causes a huge symbol to be created in WebCore Modified: trunk/Source/_javascript_Core/inspector/scripts/codegen/objc_generator.py (273905 => 273906) --- trunk/Source/_javascript_Core/inspector/scripts/codegen/objc_generator.py 2021-03-04 19:30:12 UTC (rev 273905) +++ trunk/Source/_javascript_Core/inspector/scripts/codegen/objc_generator.py 2021-03-04 19:40:02 UTC (rev 273906) @@ -390,13 +390,13 @@ def objc_protocol_import_expression_for_member(self, name, declaration, member): if isinstance(member.type, EnumType): if member.type.is_anonymous: -return 'fromProtocolString<%s>(%s)' % (self.objc_enum_name_for_anonymous_enum_member(declaration, member), name) -return 'fromProtocolString<%s>(%s)' % (self.objc_enum_name_for_non_anonymous_enum(member.type), name) +return 'fromProtocolString<%s>((__bridge CFStringRef)%s)' % (self.objc_enum_name_for_anonymous_enum_member(declaration, member), name) +return 'fromProtocolString<%s>((__bridge CFStringRef)%s)' % (self.objc_enum_name_for_non_anonymous_enum(member.type), name) return self.objc_protocol_import_expression_for_variable(member.type, name) def objc_protocol_import_expression_for_parameter(self, name, domain, event_or_command_name, parameter): if isinstance(parameter.type, EnumType): -return 'fromProtocolString<%s>(%s)' % (self.objc_enum_name_for_non_anonymous_enum(parameter.type), name) +return 'fromProtocolString<%s>((__bridge CFStringRef)%s)' % (self.objc_enum_name_for_non_anonymous_enum(parameter.type), name) return self.objc_protocol_import_expression_for_variable(parameter.type, name) def objc_protocol_import_expression_for_variable(self, var_type, var_name): @@ -442,8 +442,8 @@ if category in [ObjCTypeCategory.Simple, ObjCTypeCategory.String]: if isinstance(member.type, EnumType): if member.type.is_anonymous: -return 'fromProtocolString<%s>(%s).value()' % (self.objc_enum_name_for_anonymous_enum_member(declaration, member), sub_expression) -return 'fromProtocolString<%s>(%s).value()' % (self.objc_enum_name_for_non_anonymous_enum(member.type), sub_expression) +return 'fromProtocolString<%s>((__bridge CFStringRef)%s).value()' % (self.objc_enum_name_for_anonymous_enum_member(declaration, member), sub_expression) +return 'fromProtocolString<%s>((__bridge CFStringRef)%s).value()' % (self.objc_enum_name_for_non_anonymous_enum(member.type), sub_expression) return sub_expression if category == ObjCTypeCategory.Object: raise Exception("protocol_to_objc_expression_for_member does not support an Object type. See: protocol_to_objc_code_block_for_object_member") @@ -487,9 +487,9 @@ if isinstance(member.type, EnumType): sub_expression = 'payload[@"%s"]' % member.member_name if member.type.is_anonymous: -return 'fromProtocolString<%s>(%s)' % (self.objc_enum_name_for_anonymous_enum_member(declaration, member), sub_expression) +return 'fromProtocolString<%s>((__bridge CFStringRef)%s)' % (self.objc_enum_name_for_anonymous_enum_member(declaration, member), sub_expression) else: -
[webkit-changes] [273905] trunk
Title: [273905] trunk Revision 273905 Author you...@apple.com Date 2021-03-04 11:30:12 -0800 (Thu, 04 Mar 2021) Log Message In case of POST navigation redirected by a 302, the 'Origin' header is kept in the redirected request https://bugs.webkit.org/show_bug.cgi?id=222653 Reviewed by Alex Christensen. Source/WebCore: Remove Origin header if the navigation request goes from POST to GET. This aligns with other browsers and removes some known interop issues. This is consistent with WebKit not sending Origin headers for GET navigations. Test: http/wpt/fetch/navigation-post-to-get-origin.html * loader/DocumentLoader.cpp: (WebCore::isRedirectToGetAfterPost): (WebCore::DocumentLoader::willSendRequest): LayoutTests: * http/wpt/fetch/echo-origin.py: Added. * http/wpt/fetch/navigation-post-to-get-origin-expected.txt: Added. * http/wpt/fetch/navigation-post-to-get-origin.html: Added. Modified Paths trunk/LayoutTests/ChangeLog trunk/Source/WebCore/ChangeLog trunk/Source/WebCore/loader/DocumentLoader.cpp Added Paths trunk/LayoutTests/http/wpt/fetch/navigation-post-to-get-origin-expected.txt trunk/LayoutTests/http/wpt/fetch/navigation-post-to-get-origin.html trunk/LayoutTests/http/wpt/fetch/resources/echo-origin.py Diff Modified: trunk/LayoutTests/ChangeLog (273904 => 273905) --- trunk/LayoutTests/ChangeLog 2021-03-04 19:02:27 UTC (rev 273904) +++ trunk/LayoutTests/ChangeLog 2021-03-04 19:30:12 UTC (rev 273905) @@ -1,3 +1,15 @@ +2021-03-04 Youenn Fablet + +In case of POST navigation redirected by a 302, the 'Origin' header is kept in the redirected request +https://bugs.webkit.org/show_bug.cgi?id=222653 + + +Reviewed by Alex Christensen. + +* http/wpt/fetch/echo-origin.py: Added. +* http/wpt/fetch/navigation-post-to-get-origin-expected.txt: Added. +* http/wpt/fetch/navigation-post-to-get-origin.html: Added. + 2021-03-04 Said Abou-Hallawa Followup (r273764): Use different container sizes in background-svg-image-loading.html Added: trunk/LayoutTests/http/wpt/fetch/navigation-post-to-get-origin-expected.txt (0 => 273905) --- trunk/LayoutTests/http/wpt/fetch/navigation-post-to-get-origin-expected.txt (rev 0) +++ trunk/LayoutTests/http/wpt/fetch/navigation-post-to-get-origin-expected.txt 2021-03-04 19:30:12 UTC (rev 273905) @@ -0,0 +1,8 @@ + + + + + +PASS No origin header after POST submission and 302 redirection +PASS No origin header after POST submission and 303 redirection + Added: trunk/LayoutTests/http/wpt/fetch/navigation-post-to-get-origin.html (0 => 273905) --- trunk/LayoutTests/http/wpt/fetch/navigation-post-to-get-origin.html (rev 0) +++ trunk/LayoutTests/http/wpt/fetch/navigation-post-to-get-origin.html 2021-03-04 19:30:12 UTC (rev 273905) @@ -0,0 +1,32 @@ + + + + +Navigation and POST to GET redirect + + ++
[webkit-changes] [273904] trunk
Title: [273904] trunk Revision 273904 Author cdu...@apple.com Date 2021-03-04 11:02:27 -0800 (Thu, 04 Mar 2021) Log Message [macOS][WK2] Changing the system language does not update navigator.language https://bugs.webkit.org/show_bug.cgi?id=222619 Reviewed by Per Arne Vollan. Source/WebKit: * Shared/EntryPointUtilities/Cocoa/XPCService/XPCServiceMain.mm: (WebKit::setAppleLanguagesPreference): Fix a memory leak for newArguments. * WebProcess/cocoa/WebProcessCocoa.mm: (WebKit::WebProcess::platformInitializeWebProcess): If CFPREFS_DIRECT_MODE is not enabled, we need to listen for AppleLanguagePreferencesChangedNotification inside the WebProcess. This used to happen implicitly inside WTF::platformUserPreferredLanguages() but it is now explicit since we don't want/need it when using CFPREFS_DIRECT_MODE. (WebKit::setPreferenceValue): - If preference is AppleLanguages, set it for the volatile domain to match what we do in XPCServiceMain.mm. This is needed because the preference in the volatile domain seems to take precedence. - Call WTF::languageDidChange() when the AppleLanguages preference gets updated so that language change listeners get notified of the language change (e.g. we fire a languagechange event at the Window). Source/WebKitLegacy/mac: We need to listen for AppleLanguagePreferencesChangedNotification on mac WK1. This used to happen implicitly inside WTF::platformUserPreferredLanguages() but it is now explicit since we don't want/need it when using CFPREFS_DIRECT_MODE in WK2. * WebView/WebView.mm: (-[WebView _commonInitializationWithFrameName:groupName:]): Source/WTF: Update WTF::languageDidChange() to clear preferredLanguages() on Cocoa platforms so that we get updated values from the system the next time platformUserPreferredLanguages() is called. platformUserPreferredLanguages() used to implicitly register a AppleLanguagePreferencesChangedNotification listener. We've now made this registering opt-in by moving it to a separate listenForLanguageChangeNotifications() function. This function is getting called on Mac WK1 and WK2 when CFPREFS_DIRECT_MODE is disabled (legacy). When CFPREFS_DIRECT_MODE is enabled in WK2, we don't want/need to listen for this notification because the AppleLanguages preference gets pushed by the UIProcess down to the WebProcesses. Even though we could listen for this notification, the WebProcess would not have the latest AppleLanguages preference when receiving the notification. This would cause us to fire the languagechange event at the Window too early and navigator.language would keep returning the old language. For WK2 with CFPREFS_DIRECT_MODE enabled, we now explicitly call WTF::languageDidChange() when the "AppleLanguages" preference gets sync'd from the UIProcess instead. * wtf/Language.cpp: (WTF::languageDidChange): (WTF::platformLanguageDidChange): * wtf/Language.h: * wtf/cf/LanguageCF.cpp: (WTF::languagePreferencesDidChange): (WTF::platformLanguageDidChange): (WTF::listenForLanguageChangeNotifications): (WTF::platformUserPreferredLanguages): Tools: Add API test coverage. * TestWebKitAPI/Tests/WebKit/OverrideAppleLanguagesPreference.mm: (TEST): Modified Paths trunk/Source/WTF/ChangeLog trunk/Source/WTF/wtf/Language.cpp trunk/Source/WTF/wtf/Language.h trunk/Source/WTF/wtf/cf/LanguageCF.cpp trunk/Source/WebKit/ChangeLog trunk/Source/WebKit/Shared/EntryPointUtilities/Cocoa/XPCService/XPCServiceMain.mm trunk/Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm trunk/Source/WebKitLegacy/mac/ChangeLog trunk/Source/WebKitLegacy/mac/WebView/WebView.mm trunk/Tools/ChangeLog trunk/Tools/TestWebKitAPI/Tests/WebKit/OverrideAppleLanguagesPreference.mm Diff Modified: trunk/Source/WTF/ChangeLog (273903 => 273904) --- trunk/Source/WTF/ChangeLog 2021-03-04 18:41:02 UTC (rev 273903) +++ trunk/Source/WTF/ChangeLog 2021-03-04 19:02:27 UTC (rev 273904) @@ -1,5 +1,40 @@ 2021-03-04 Chris Dumez +[macOS][WK2] Changing the system language does not update navigator.language +https://bugs.webkit.org/show_bug.cgi?id=222619 + +Reviewed by Per Arne Vollan. + +Update WTF::languageDidChange() to clear preferredLanguages() on Cocoa platforms +so that we get updated values from the system the next time +platformUserPreferredLanguages() is called. + +platformUserPreferredLanguages() used to implicitly register a AppleLanguagePreferencesChangedNotification +listener. We've now made this registering opt-in by moving it to a separate +listenForLanguageChangeNotifications() function. This function is getting called +on Mac WK1 and WK2 when CFPREFS_DIRECT_MODE is disabled (legacy). +When CFPREFS_DIRECT_MODE is enabled in WK2, we don't want/need to listen for this +notification because the AppleLanguages preference gets pushed by the UIProcess +down to the WebProcesses. Even though we could listen for this notification, +the WebProcess would not have the
[webkit-changes] [273903] trunk/Source
Title: [273903] trunk/Source Revision 273903 Author cdu...@apple.com Date 2021-03-04 10:41:02 -0800 (Thu, 04 Mar 2021) Log Message Set ownership of IOSurfaces from the GPUProcess instead of the WebProcess https://bugs.webkit.org/show_bug.cgi?id=222391 Source/WebCore: Reviewed by Simon Fraser. Replace use of IOSurfaceSetOwnership() SPI with IOSurfaceSetOwnershipIdentity(). Both do the same thing but IOSurfaceSetOwnershipIdentity() only requires an identity token for the new owner (instead of a control port). As a result, IOSurfaceSetOwnershipIdentity() requires a lot less priviledges and can now be used directly in the GPUProcess instead of the WebProcess. * platform/graphics/cocoa/IOSurface.h: * platform/graphics/cocoa/IOSurface.mm: (WebCore::IOSurface::setOwnershipIdentity): Source/WebCore/PAL: Reviewed by Simon Fraser. Add declaration for new IOSurfaceSetOwnershipIdentity() SPI, for the open source SDK. * pal/spi/cocoa/IOSurfaceSPI.h: Source/WebKit: Reviewed by Simon Fraser. Replace use of IOSurfaceSetOwnership() SPI with IOSurfaceSetOwnershipIdentity(). Both do the same thing but IOSurfaceSetOwnershipIdentity() only requires an identity token for the new owner (instead of a control port). As a result, IOSurfaceSetOwnershipIdentity() requires a lot less priviledges and can now be used directly in the GPUProcess instead of the WebProcess. * GPUProcess/graphics/RemoteGraphicsContextGLCocoa.cpp: (WebKit::RemoteGraphicsContextGLCocoa::prepareForDisplay): * GPUProcess/graphics/RemoteImageBuffer.h: (WebKit::RemoteImageBuffer::setProcessOwnership): * GPUProcess/graphics/RemoteRenderingBackend.cpp: (WebKit::RemoteRenderingBackend::createImageBuffer): * WebProcess/GPU/graphics/RemoteGraphicsContextGLProxy.cpp: (WebKit::RemoteGraphicsContextGLProxy::prepareForDisplay): * WebProcess/GPU/graphics/cocoa/ImageBufferShareableMappedIOSurfaceBackend.cpp: (WebKit::ImageBufferShareableMappedIOSurfaceBackend::create): (WebKit::ImageBufferShareableMappedIOSurfaceBackend::setProcessOwnership): * WebProcess/GPU/graphics/cocoa/ImageBufferShareableMappedIOSurfaceBackend.h: Source/WTF: Reviewed by Simon Fraser. Add HAVE_IOSURFACE_SET_OWNERSHIP_IDENTITY feature flag to protect uses of the new IOSurfaceSetOwnershipIdentity() SPI. * wtf/PlatformHave.h: Modified Paths trunk/Source/WTF/ChangeLog trunk/Source/WTF/wtf/PlatformHave.h trunk/Source/WebCore/ChangeLog trunk/Source/WebCore/PAL/ChangeLog trunk/Source/WebCore/PAL/pal/spi/cocoa/IOSurfaceSPI.h trunk/Source/WebCore/platform/graphics/cocoa/IOSurface.h trunk/Source/WebCore/platform/graphics/cocoa/IOSurface.mm trunk/Source/WebKit/ChangeLog trunk/Source/WebKit/GPUProcess/graphics/RemoteGraphicsContextGLCocoa.cpp trunk/Source/WebKit/GPUProcess/graphics/RemoteImageBuffer.h trunk/Source/WebKit/GPUProcess/graphics/RemoteRenderingBackend.cpp trunk/Source/WebKit/WebProcess/GPU/graphics/RemoteGraphicsContextGLProxy.cpp trunk/Source/WebKit/WebProcess/GPU/graphics/cocoa/ImageBufferShareableMappedIOSurfaceBackend.cpp trunk/Source/WebKit/WebProcess/GPU/graphics/cocoa/ImageBufferShareableMappedIOSurfaceBackend.h Diff Modified: trunk/Source/WTF/ChangeLog (273902 => 273903) --- trunk/Source/WTF/ChangeLog 2021-03-04 18:28:40 UTC (rev 273902) +++ trunk/Source/WTF/ChangeLog 2021-03-04 18:41:02 UTC (rev 273903) @@ -1,3 +1,16 @@ +2021-03-04 Chris Dumez + +Set ownership of IOSurfaces from the GPUProcess instead of the WebProcess +https://bugs.webkit.org/show_bug.cgi?id=222391 + + +Reviewed by Simon Fraser. + +Add HAVE_IOSURFACE_SET_OWNERSHIP_IDENTITY feature flag to protect uses of the +new IOSurfaceSetOwnershipIdentity() SPI. + +* wtf/PlatformHave.h: + 2021-03-03 Alex Christensen Limit HashTable entry size to 500 bytes Modified: trunk/Source/WTF/wtf/PlatformHave.h (273902 => 273903) --- trunk/Source/WTF/wtf/PlatformHave.h 2021-03-04 18:28:40 UTC (rev 273902) +++ trunk/Source/WTF/wtf/PlatformHave.h 2021-03-04 18:41:02 UTC (rev 273903) @@ -305,6 +305,13 @@ #define HAVE_IOSURFACE_SET_OWNERSHIP 1 #endif +#if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 12) \ +|| (((PLATFORM(IOS) && !PLATFORM(IOS_FAMILY_SIMULATOR)) || PLATFORM(MACCATALYST)) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 15) \ +|| (PLATFORM(WATCHOS) && !PLATFORM(IOS_FAMILY_SIMULATOR) && __WATCH_OS_VERSION_MIN_REQUIRED >= 8) \ +|| (PLATFORM(APPLETV) && !PLATFORM(IOS_FAMILY_SIMULATOR) && __TV_OS_VERSION_MIN_REQUIRED >= 15) +#define HAVE_IOSURFACE_SET_OWNERSHIP_IDENTITY 1 +#endif + #if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MAX_ALLOWED >= 110300) \ || (((PLATFORM(IOS) && !PLATFORM(IOS_FAMILY_SIMULATOR)) || PLATFORM(MACCATALYST)) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 140500) \ || (PLATFORM(WATCHOS) && !PLATFORM(IOS_FAMILY_SIMULATOR) && __WATCH_OS_VERSION_MAX_ALLOWED >= 70500) \ Modified: trunk/Source/WebCore/ChangeLog (273902 => 273903) --- trunk/Source/WebCore/ChangeLog 2021-03-04
[webkit-changes] [273902] trunk/LayoutTests
Title: [273902] trunk/LayoutTests Revision 273902 Author s...@apple.com Date 2021-03-04 10:28:40 -0800 (Thu, 04 Mar 2021) Log Message Followup (r273764): Use different container sizes in background-svg-image-loading.html https://bugs.webkit.org/show_bug.cgi?id=222679 Reviewed by Antti Koivisto. This will force different SVGImageForContainers in SVGImageCache one for each SVGImage client ( element in this test). * fast/css/background-svg-image-loading-expected.html: * fast/css/background-svg-image-loading.html: Modified Paths trunk/LayoutTests/ChangeLog trunk/LayoutTests/fast/css/background-svg-image-loading-expected.html trunk/LayoutTests/fast/css/background-svg-image-loading.html Diff Modified: trunk/LayoutTests/ChangeLog (273901 => 273902) --- trunk/LayoutTests/ChangeLog 2021-03-04 18:26:22 UTC (rev 273901) +++ trunk/LayoutTests/ChangeLog 2021-03-04 18:28:40 UTC (rev 273902) @@ -1,3 +1,16 @@ +2021-03-04 Said Abou-Hallawa + +Followup (r273764): Use different container sizes in background-svg-image-loading.html +https://bugs.webkit.org/show_bug.cgi?id=222679 + +Reviewed by Antti Koivisto. + +This will force different SVGImageForContainers in SVGImageCache one for +each SVGImage client ( element in this test). + +* fast/css/background-svg-image-loading-expected.html: +* fast/css/background-svg-image-loading.html: + 2021-03-04 Keith Miller window proxy of detached iframe doesn't respect updates to global values Modified: trunk/LayoutTests/fast/css/background-svg-image-loading-expected.html (273901 => 273902) --- trunk/LayoutTests/fast/css/background-svg-image-loading-expected.html 2021-03-04 18:26:22 UTC (rev 273901) +++ trunk/LayoutTests/fast/css/background-svg-image-loading-expected.html 2021-03-04 18:28:40 UTC (rev 273902) @@ -1,18 +1,26 @@.container { +zoom: 50%; width: 900px; } .line { background-color: green;-background-size: 24px;+font-size: 32px; +padding-left: 5px; } -PASS when all the lines below have visible background images. +PASS when all the lines below have visible green background. -should have a visible background image -should have a visible background image -should have a visible background image -should have a visible background image +This line should have a visible green background. + +This line should have a visible green background. + + +This line should have a visible green background. + + +This line should have a visible green background. + Modified: trunk/LayoutTests/fast/css/background-svg-image-loading.html (273901 => 273902) --- trunk/LayoutTests/fast/css/background-svg-image-loading.html 2021-03-04 18:26:22 UTC (rev 273901) +++ trunk/LayoutTests/fast/css/background-svg-image-loading.html 2021-03-04 18:28:40 UTC (rev 273902) @@ -1,5 +1,6 @@ .container { +zoom: 50%; width: 900px; } .line { @@ -7,15 +8,22 @@\ '); -background-size: 24px;+font-size: 32px; +padding-left: 5px; } -PASS when all the lines below have visible background images. +PASS when all the lines below have visible green background. -should have a visible background image -should have a visible background image -should have a visible background image -should have a visible background image +This line should have a visible green background. + +This line should have a visible green background. + + +This line should have a visible green background. + + +This line should have a visible green background. + ___ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes
[webkit-changes] [273901] trunk
Title: [273901] trunk Revision 273901 Author keith_mil...@apple.com Date 2021-03-04 10:26:22 -0800 (Thu, 04 Mar 2021) Log Message window proxy of detached iframe doesn't respect updates to global values https://bugs.webkit.org/show_bug.cgi?id=206445 Reviewed by Chris Dumez. Source/WebCore: According to the html spec the frame should only be needing for COOP access violation reporting, which we don't support. This patch removes our old behavior of blocking stores to windows that have been detached. I also removed some stale caching code from getOwnPropertySlotByIndex since it's only accessed once now. * bindings/js/JSDOMWindowCustom.cpp: (WebCore::JSDOMWindow::getOwnPropertySlotByIndex): (WebCore::JSDOMWindow::doPutPropertySecurityCheck): (WebCore::JSDOMWindow::put): (WebCore::JSDOMWindow::putByIndex): LayoutTests: * fast/frames/iframe-detached-window-still-writable-eval-expected.txt: Added. * fast/frames/iframe-detached-window-still-writable-eval.html: Added. * fast/frames/iframe-detached-window-still-writable-expected.txt: Added. * fast/frames/iframe-detached-window-still-writable.html: Added. * http/tests/dom/cross-origin-detached-window-properties-expected.txt: * http/tests/dom/cross-origin-detached-window-properties.html: Modified Paths trunk/LayoutTests/ChangeLog trunk/LayoutTests/http/tests/dom/cross-origin-detached-window-properties-expected.txt trunk/LayoutTests/http/tests/dom/cross-origin-detached-window-properties.html trunk/Source/WebCore/ChangeLog trunk/Source/WebCore/bindings/js/JSDOMWindowCustom.cpp Added Paths trunk/LayoutTests/fast/frames/iframe-detached-window-still-writable-eval-expected.txt trunk/LayoutTests/fast/frames/iframe-detached-window-still-writable-eval.html trunk/LayoutTests/fast/frames/iframe-detached-window-still-writable-expected.txt trunk/LayoutTests/fast/frames/iframe-detached-window-still-writable.html Diff Modified: trunk/LayoutTests/ChangeLog (273900 => 273901) --- trunk/LayoutTests/ChangeLog 2021-03-04 18:19:15 UTC (rev 273900) +++ trunk/LayoutTests/ChangeLog 2021-03-04 18:26:22 UTC (rev 273901) @@ -1,3 +1,17 @@ +2021-03-04 Keith Miller + +window proxy of detached iframe doesn't respect updates to global values +https://bugs.webkit.org/show_bug.cgi?id=206445 + +Reviewed by Chris Dumez. + +* fast/frames/iframe-detached-window-still-writable-eval-expected.txt: Added. +* fast/frames/iframe-detached-window-still-writable-eval.html: Added. +* fast/frames/iframe-detached-window-still-writable-expected.txt: Added. +* fast/frames/iframe-detached-window-still-writable.html: Added. +* http/tests/dom/cross-origin-detached-window-properties-expected.txt: +* http/tests/dom/cross-origin-detached-window-properties.html: + 2021-03-04 Jon Lee Garden GPU Process TestExpectations Added: trunk/LayoutTests/fast/frames/iframe-detached-window-still-writable-eval-expected.txt (0 => 273901) --- trunk/LayoutTests/fast/frames/iframe-detached-window-still-writable-eval-expected.txt (rev 0) +++ trunk/LayoutTests/fast/frames/iframe-detached-window-still-writable-eval-expected.txt 2021-03-04 18:26:22 UTC (rev 273901) @@ -0,0 +1,13 @@ +Verify that scripts running in a detached window can still modify global properties + +On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". + + +PASS () => foo is 2 +PASS () => globalThis[0] is 2 +PASS iframeContentWindow.foo is 2 +PASS iframeContentWindow[0] is 2 +PASS successfullyParsed is true + +TEST COMPLETE + Added: trunk/LayoutTests/fast/frames/iframe-detached-window-still-writable-eval.html (0 => 273901) --- trunk/LayoutTests/fast/frames/iframe-detached-window-still-writable-eval.html (rev 0) +++ trunk/LayoutTests/fast/frames/iframe-detached-window-still-writable-eval.html 2021-03-04 18:26:22 UTC (rev 273901) @@ -0,0 +1,24 @@ + + + +description("Verify that scripts running in a detached window can still modify global properties"); +const iframe = document.createElement('iframe'); +document.body.appendChild(iframe); +const iframeContentWindow = iframe.contentWindow; +const iframeEval = iframeContentWindow.eval; +iframeContentWindow.foo = 1; +iframeContentWindow[0] = 1; +iframeContentWindow.shouldBe = shouldBe; +iframe.remove(); +iframeEval(` +foo++; +globalThis[0]++; +shouldBe(() => foo, "2"); +shouldBe(() => globalThis[0], "2"); +`); +shouldBe("iframeContentWindow.foo", "2"); +shouldBe("iframeContentWindow[0]", "2"); + + + \ No newline at end of file Added: trunk/LayoutTests/fast/frames/iframe-detached-window-still-writable-expected.txt (0 => 273901) --- trunk/LayoutTests/fast/frames/iframe-detached-window-still-writable-expected.txt (rev 0) +++ trunk/LayoutTests/fast/frames/iframe-detached-window-still-writable-expected.txt 2021-03-04 18:26:22 UTC (rev
[webkit-changes] [273900] trunk/Source/WebInspectorUI
Title: [273900] trunk/Source/WebInspectorUI Revision 273900 Author commit-qu...@webkit.org Date 2021-03-04 10:19:15 -0800 (Thu, 04 Mar 2021) Log Message Web Inspector: Audits Tab: nothing happens when clicking "Start" button in the content area placeholder text https://bugs.webkit.org/show_bug.cgi?id=222740 rdar://75008042 Patch by Razvan Caliman on 2021-03-04 Reviewed by Devin Rousso. * UserInterface/Views/AuditTestContentView.js: (WI.AuditTestContentView.prototype.showNoResultPlaceholder): Modified Paths trunk/Source/WebInspectorUI/ChangeLog trunk/Source/WebInspectorUI/UserInterface/Views/AuditTestContentView.js Diff Modified: trunk/Source/WebInspectorUI/ChangeLog (273899 => 273900) --- trunk/Source/WebInspectorUI/ChangeLog 2021-03-04 18:10:22 UTC (rev 273899) +++ trunk/Source/WebInspectorUI/ChangeLog 2021-03-04 18:19:15 UTC (rev 273900) @@ -1,3 +1,14 @@ +2021-03-04 Razvan Caliman + +Web Inspector: Audits Tab: nothing happens when clicking "Start" button in the content area placeholder text +https://bugs.webkit.org/show_bug.cgi?id=222740 +rdar://75008042 + +Reviewed by Devin Rousso. + +* UserInterface/Views/AuditTestContentView.js: +(WI.AuditTestContentView.prototype.showNoResultPlaceholder): + 2021-03-03 Devin Rousso Web Inspector: `RecordCanvasActionVariant` causes a huge symbol to be created in WebCore Modified: trunk/Source/WebInspectorUI/UserInterface/Views/AuditTestContentView.js (273899 => 273900) --- trunk/Source/WebInspectorUI/UserInterface/Views/AuditTestContentView.js 2021-03-04 18:10:22 UTC (rev 273899) +++ trunk/Source/WebInspectorUI/UserInterface/Views/AuditTestContentView.js 2021-03-04 18:19:15 UTC (rev 273900) @@ -346,7 +346,7 @@ startNavigationItem.buttonStyle = WI.ButtonNavigationItem.Style.ImageAndText; startNavigationItem.addEventListener(WI.ButtonNavigationItem.Event.Clicked, function(event) { WI.auditManager.start([this.representedObject]); -}, startNavigationItem); +}, this); let importHelpElement = WI.createNavigationItemHelp(WI.UIString("Press %s to start running the audit."), startNavigationItem); this.placeholderElement.appendChild(importHelpElement); ___ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes
[webkit-changes] [273899] trunk/LayoutTests
Title: [273899] trunk/LayoutTests Revision 273899 Author jon...@apple.com Date 2021-03-04 10:10:22 -0800 (Thu, 04 Mar 2021) Log Message Garden GPU Process TestExpectations https://bugs.webkit.org/show_bug.cgi?id=222729 Reviewed by Said Abou-Hallawa. * gpu-process/TestExpectations: Complete filing bugs for failing tests. Remove expectations for some tests which are now passing on the bot. Modified Paths trunk/LayoutTests/ChangeLog trunk/LayoutTests/gpu-process/TestExpectations Diff Modified: trunk/LayoutTests/ChangeLog (273898 => 273899) --- trunk/LayoutTests/ChangeLog 2021-03-04 18:08:23 UTC (rev 273898) +++ trunk/LayoutTests/ChangeLog 2021-03-04 18:10:22 UTC (rev 273899) @@ -1,3 +1,13 @@ +2021-03-04 Jon Lee + +Garden GPU Process TestExpectations +https://bugs.webkit.org/show_bug.cgi?id=222729 + +Reviewed by Said Abou-Hallawa. + +* gpu-process/TestExpectations: Complete filing bugs for failing tests. +Remove expectations for some tests which are now passing on the bot. + 2021-03-04 Robert Jenner [ macOS ] inspector/page/empty-or-missing-resources.html is a flakey timeout Modified: trunk/LayoutTests/gpu-process/TestExpectations (273898 => 273899) --- trunk/LayoutTests/gpu-process/TestExpectations 2021-03-04 18:08:23 UTC (rev 273898) +++ trunk/LayoutTests/gpu-process/TestExpectations 2021-03-04 18:10:22 UTC (rev 273899) @@ -1,8 +1,13 @@ -compositing/animation/repaint-after-clearing-shared-backing.html [ ImageOnlyFailure ] +# webkit.org/b/222728 compositing/canvas/accelerated-canvas-compositing.html [ Failure ] compositing/layer-creation/spanOverlapsCanvas.html [ Failure ] - css3/blending/blend-mode-clip-accelerated-blending-canvas.html [ Failure ] +fast/images/ordered-animated-image-frames.html [ ImageOnlyFailure ] +fast/repaint/canvas-object-fit.html [ Failure ] +fast/repaint/canvas-putImageData.html [ Failure ] +imported/w3c/web-platform-tests/html/canvas/element/path-objects/2d.path.stroke.scale2.html [ Failure ] +inspector/canvas/memory.html [ Failure ] +svg/canvas/canvas-global-alpha-svg.html [ ImageOnlyFailure ] # webkit.org/b/220389 fast/canvas/canvas-drawImage-composite-copy.html [ ImageOnlyFailure ] @@ -9,44 +14,32 @@ fast/canvas/canvas-render-layer.html [ Failure ] fast/canvas/hidpi-repaint-on-retina-leaves-bits-behind.html [ ImageOnlyFailure ] +# webkit.org/b/222341 +imported/blink/fast/canvas/canvas-clip-stack-persistence.html [ ImageOnlyFailure ] +imported/blink/fast/canvas/canvas-state-persistence-no-dirty.html [ ImageOnlyFailure ] +imported/blink/fast/canvas/canvas-unbalanced-save.html [ ImageOnlyFailure ] + # webkit.org/b/220806 fast/canvas/webgl/context-update-on-display-configuration.html [ Timeout ] fast/canvas/webgl/webglcontextchangedevent.html [ Timeout ] +# webkit.org/b/222726 fast/canvas/webgl/uniform-samplers-test.html [ Slow ] +webgl/1.0.3/conformance/uniforms/uniform-samplers-test.html [ Slow ] +webgl/2.0.0/conformance/uniforms/uniform-samplers-test.html [ Slow ] webgl/2.0.0/conformance/attribs/gl-vertexattribpointer.html [ Slow ] webgl/2.0.0/conformance2/rendering/blitframebuffer-filter-outofbounds.html [ Slow ] -fast/dom/navigator-detached-no-crash.html [ Failure ] -fast/images/ordered-animated-image-frames.html [ ImageOnlyFailure ] +# webkit.org/b/222722 +webgl/1.0.3/conformance/state/gl-object-get-calls.html [ Timeout ] +webgl/2.0.0/conformance/state/gl-object-get-calls.html [ Timeout ] +webgl/2.0.0/conformance2/state/gl-object-get-calls.html [ Timeout ] -fast/repaint/canvas-object-fit.html [ Failure ] -fast/repaint/canvas-putImageData.html [ Failure ] - -imported/blink/fast/canvas/canvas-clip-stack-persistence.html [ ImageOnlyFailure ] -imported/blink/fast/canvas/canvas-state-persistence-no-dirty.html [ ImageOnlyFailure ] -imported/blink/fast/canvas/canvas-unbalanced-save.html [ ImageOnlyFailure ] - -imported/w3c/web-platform-tests/fetch/range/sw.https.window.html [ Failure ] -imported/w3c/web-platform-tests/html/canvas/element/path-objects/2d.path.arc.angle.2.html [ Crash ] -imported/w3c/web-platform-tests/html/canvas/element/path-objects/2d.path.stroke.scale2.html [ Failure ] - -inspector/canvas/memory.html [ Failure ] -inspector/canvas/recording-2d-frameCount.html [ Crash ] -inspector/canvas/recording-2d-full.html [ Crash ] -inspector/canvas/recording-2d-memoryLimit.html [ Crash ] -inspector/canvas/recording-html-2d.html [ Crash ] - -svg/canvas/canvas-global-alpha-svg.html [ ImageOnlyFailure ] - -# webkit.org/b/220333 -webgl/1.0.3/conformance/state/gl-object-get-calls.html [ Timeout ] -webgl/1.0.3/conformance/uniforms/uniform-samplers-test.html [ Slow ] +# webkit.org/b/222410 webgl/2.0.0/conformance/reading/read-pixels-test.html [ Failure ] -webgl/2.0.0/conformance/state/gl-object-get-calls.html [ Timeout ] -webgl/2.0.0/conformance/uniforms/uniform-samplers-test.html [ Slow ] webgl/2.0.0/conformance2/reading/read-pixels-pack-parameters.html [ Failure ]
[webkit-changes] [273898] trunk/LayoutTests
Title: [273898] trunk/LayoutTests Revision 273898 Author jen...@apple.com Date 2021-03-04 10:08:23 -0800 (Thu, 04 Mar 2021) Log Message [ macOS ] inspector/page/empty-or-missing-resources.html is a flakey timeout https://bugs.webkit.org/show_bug.cgi?id=222692 Unreviewed test gardening. * platform/mac/TestExpectations: Updating test expectations until test flakiness can be resolved. Modified Paths trunk/LayoutTests/ChangeLog trunk/LayoutTests/platform/mac/TestExpectations Diff Modified: trunk/LayoutTests/ChangeLog (273897 => 273898) --- trunk/LayoutTests/ChangeLog 2021-03-04 18:00:49 UTC (rev 273897) +++ trunk/LayoutTests/ChangeLog 2021-03-04 18:08:23 UTC (rev 273898) @@ -1,3 +1,12 @@ +2021-03-04 Robert Jenner + +[ macOS ] inspector/page/empty-or-missing-resources.html is a flakey timeout +https://bugs.webkit.org/show_bug.cgi?id=222692 + +Unreviewed test gardening. + +* platform/mac/TestExpectations: Updating test expectations until test flakiness can be resolved. + 2021-03-04 Peng Liu [GPUProcess] MediaController is using a ClockCM Modified: trunk/LayoutTests/platform/mac/TestExpectations (273897 => 273898) --- trunk/LayoutTests/platform/mac/TestExpectations 2021-03-04 18:00:49 UTC (rev 273897) +++ trunk/LayoutTests/platform/mac/TestExpectations 2021-03-04 18:08:23 UTC (rev 273898) @@ -2298,4 +2298,6 @@ webkit.org/b/222573 media/media-fullscreen-pause-inline.html [ Pass Failure ] -webkit.org/b/222495 media/media-source/media-source-webm-vorbis-partial.html [ Failure ] \ No newline at end of file +webkit.org/b/222495 media/media-source/media-source-webm-vorbis-partial.html [ Failure ] + +webkit.org/b/222692 inspector/page/empty-or-missing-resources.html [ Pass Timeout ] \ No newline at end of file ___ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes
[webkit-changes] [273897] trunk
Title: [273897] trunk Revision 273897 Author commit-qu...@webkit.org Date 2021-03-04 10:00:49 -0800 (Thu, 04 Mar 2021) Log Message Introduce "websocket", "fetch", and "other" resource types to WKContentRuleList https://bugs.webkit.org/show_bug.cgi?id=222709 Patch by Alex Christensen on 2021-03-04 Reviewed by Youenn Fablet. Source/WebCore: "raw" didn't give the desired granularity. This keeps support for "raw", but splits it into 3 subcategories: "websocket" which only applies to WebSocket requests, "fetch" which applies to XMLHTTPRequest and fetch API requests. "other" which applies to other "raw" requests, such as beacons. Covered by API tests. * Modules/websockets/ThreadableWebSocketChannel.cpp: (WebCore::ThreadableWebSocketChannel::validateURL): * contentextensions/ContentExtensionParser.cpp: (WebCore::ContentExtensions::getTypeFlags): * css/StyleSheetContents.cpp: (WebCore::StyleSheetContents::subresourcesAllowReuse const): * loader/NetscapePlugInStreamLoader.cpp: (WebCore::NetscapePlugInStreamLoader::NetscapePlugInStreamLoader): * loader/ResourceLoadInfo.cpp: (WebCore::ContentExtensions::toResourceType): (WebCore::ContentExtensions::readResourceType): (WebCore::ContentExtensions::readLoadType): (WebCore::ContentExtensions::ResourceLoadInfo::getResourceFlags const): * loader/ResourceLoadInfo.h: * loader/ResourceLoader.cpp: (WebCore::ResourceLoader::willSendRequestInternal): * loader/ResourceLoader.h: * loader/SubresourceLoader.cpp: (WebCore::SubresourceLoader::SubresourceLoader): * loader/cache/CachedResourceLoader.cpp: (WebCore::CachedResourceLoader::requestResource): Tools: * TestWebKitAPI/Tests/WebKitCocoa/ContentRuleListNotification.mm: (TEST): (webSocketAcceptValue): * TestWebKitAPI/cocoa/HTTPServer.mm: (TestWebKitAPI::statusText): Modified Paths trunk/Source/WebCore/ChangeLog trunk/Source/WebCore/Modules/websockets/ThreadableWebSocketChannel.cpp trunk/Source/WebCore/contentextensions/ContentExtensionParser.cpp trunk/Source/WebCore/css/StyleSheetContents.cpp trunk/Source/WebCore/loader/NetscapePlugInStreamLoader.cpp trunk/Source/WebCore/loader/ResourceLoadInfo.cpp trunk/Source/WebCore/loader/ResourceLoadInfo.h trunk/Source/WebCore/loader/ResourceLoader.cpp trunk/Source/WebCore/loader/ResourceLoader.h trunk/Source/WebCore/loader/SubresourceLoader.cpp trunk/Source/WebCore/loader/cache/CachedResourceLoader.cpp trunk/Tools/ChangeLog trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/ContentRuleListNotification.mm trunk/Tools/TestWebKitAPI/cocoa/HTTPServer.mm Diff Modified: trunk/Source/WebCore/ChangeLog (273896 => 273897) --- trunk/Source/WebCore/ChangeLog 2021-03-04 17:57:32 UTC (rev 273896) +++ trunk/Source/WebCore/ChangeLog 2021-03-04 18:00:49 UTC (rev 273897) @@ -1,3 +1,40 @@ +2021-03-04 Alex Christensen + +Introduce "websocket", "fetch", and "other" resource types to WKContentRuleList +https://bugs.webkit.org/show_bug.cgi?id=222709 + + +Reviewed by Youenn Fablet. + +"raw" didn't give the desired granularity. This keeps support for "raw", but splits it into 3 subcategories: +"websocket" which only applies to WebSocket requests, +"fetch" which applies to XMLHTTPRequest and fetch API requests. +"other" which applies to other "raw" requests, such as beacons. + +Covered by API tests. + +* Modules/websockets/ThreadableWebSocketChannel.cpp: +(WebCore::ThreadableWebSocketChannel::validateURL): +* contentextensions/ContentExtensionParser.cpp: +(WebCore::ContentExtensions::getTypeFlags): +* css/StyleSheetContents.cpp: +(WebCore::StyleSheetContents::subresourcesAllowReuse const): +* loader/NetscapePlugInStreamLoader.cpp: +(WebCore::NetscapePlugInStreamLoader::NetscapePlugInStreamLoader): +* loader/ResourceLoadInfo.cpp: +(WebCore::ContentExtensions::toResourceType): +(WebCore::ContentExtensions::readResourceType): +(WebCore::ContentExtensions::readLoadType): +(WebCore::ContentExtensions::ResourceLoadInfo::getResourceFlags const): +* loader/ResourceLoadInfo.h: +* loader/ResourceLoader.cpp: +(WebCore::ResourceLoader::willSendRequestInternal): +* loader/ResourceLoader.h: +* loader/SubresourceLoader.cpp: +(WebCore::SubresourceLoader::SubresourceLoader): +* loader/cache/CachedResourceLoader.cpp: +(WebCore::CachedResourceLoader::requestResource): + 2021-03-04 Antoine Quint Adjust progress parameter before calling blend() for discrete interpolations Modified: trunk/Source/WebCore/Modules/websockets/ThreadableWebSocketChannel.cpp (273896 => 273897) --- trunk/Source/WebCore/Modules/websockets/ThreadableWebSocketChannel.cpp 2021-03-04 17:57:32 UTC (rev 273896) +++ trunk/Source/WebCore/Modules/websockets/ThreadableWebSocketChannel.cpp 2021-03-04 18:00:49 UTC (rev 273897) @@ -93,7 +93,7 @@ return { }; #if
[webkit-changes] [273896] trunk/Source/WebCore
Title: [273896] trunk/Source/WebCore Revision 273896 Author grao...@webkit.org Date 2021-03-04 09:57:32 -0800 (Thu, 04 Mar 2021) Log Message Adjust progress parameter before calling blend() for discrete interpolations https://bugs.webkit.org/show_bug.cgi?id=222736 Reviewed by Antti Koivisto. In the case of discrete interpolation, we must treat progress as 0 for progress < 0.5 and 1 otherwise. Currently we do it separately in at two places. So that we don't do it in more places, let's do this directly in CSSPropertyAnimation::blendProperties() so that the progress is already set before any of the blend() methods are called. * animation/CSSPropertyAnimation.cpp: (WebCore::CSSPropertyAnimation::blendProperties): Modified Paths trunk/Source/WebCore/ChangeLog trunk/Source/WebCore/animation/CSSPropertyAnimation.cpp Diff Modified: trunk/Source/WebCore/ChangeLog (273895 => 273896) --- trunk/Source/WebCore/ChangeLog 2021-03-04 17:55:21 UTC (rev 273895) +++ trunk/Source/WebCore/ChangeLog 2021-03-04 17:57:32 UTC (rev 273896) @@ -1,3 +1,18 @@ +2021-03-04 Antoine Quint + +Adjust progress parameter before calling blend() for discrete interpolations +https://bugs.webkit.org/show_bug.cgi?id=222736 + +Reviewed by Antti Koivisto. + +In the case of discrete interpolation, we must treat progress as 0 for progress < 0.5 +and 1 otherwise. Currently we do it separately in at two places. So that we don't do +it in more places, let's do this directly in CSSPropertyAnimation::blendProperties() +so that the progress is already set before any of the blend() methods are called. + +* animation/CSSPropertyAnimation.cpp: +(WebCore::CSSPropertyAnimation::blendProperties): + 2021-03-04 Peng Liu [GPUProcess] MediaController is using a ClockCM Modified: trunk/Source/WebCore/animation/CSSPropertyAnimation.cpp (273895 => 273896) --- trunk/Source/WebCore/animation/CSSPropertyAnimation.cpp 2021-03-04 17:55:21 UTC (rev 273895) +++ trunk/Source/WebCore/animation/CSSPropertyAnimation.cpp 2021-03-04 17:57:32 UTC (rev 273896) @@ -645,13 +645,8 @@ void blend(const CSSPropertyBlendingClient*, RenderStyle* dst, const RenderStyle* a, const RenderStyle* b, double progress) const override { -// https://drafts.csswg.org/web-animations-1/#discrete -// The property’s values cannot be meaningfully combined, thus it is not additive and -// interpolation swaps from Va to Vb at 50% (p=0.5). -if (progress < 0.5) -(dst->*m_setter)((a->*PropertyWrapperGetter::m_getter)()); -else -(dst->*m_setter)((b->*PropertyWrapperGetter::m_getter)()); +ASSERT(!progress || progress == 1.0); +(dst->*m_setter)(this->value(progress ? b : a)); } protected: @@ -776,13 +771,9 @@ void blend(const CSSPropertyBlendingClient* anim, RenderStyle* dst, const RenderStyle* a, const RenderStyle* b, double progress) const override { -if (!canInterpolate(a, b)) { -progress = progress < 0.5 ? 0 : 1; -if (m_flags.contains(Flags::UsesFillKeyword)) -dst->setBorderImageSliceFill((progress ? b : a)->borderImage().fill()); -} else if (m_flags.contains(Flags::UsesFillKeyword)) -dst->setBorderImageSliceFill(a->borderImage().fill()); -(dst->*m_setter)(blendFunc(anim, (a->*PropertyWrapperGetter::m_getter)(), (b->*PropertyWrapperGetter::m_getter)(), progress)); +if (m_flags.contains(Flags::UsesFillKeyword)) +dst->setBorderImageSliceFill((!progress || canInterpolate(a, b) ? a : b)->borderImage().fill()); +(dst->*m_setter)(blendFunc(anim, this->value(a), this->value(b), progress)); } protected: @@ -2156,6 +2147,11 @@ AnimationPropertyWrapperBase* wrapper = CSSPropertyAnimationWrapperMap::singleton().wrapperForProperty(prop); if (wrapper) { +// https://drafts.csswg.org/web-animations-1/#discrete +// The property’s values cannot be meaningfully combined, thus it is not additive and +// interpolation swaps from Va to Vb at 50% (p=0.5). +if (!wrapper->canInterpolate(a, b)) +progress = progress < 0.5 ? 0 : 1; wrapper->blend(anim, dst, a, b, progress); #if !LOG_DISABLED wrapper->logBlend(a, b, dst, progress); ___ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes
[webkit-changes] [273895] trunk
Title: [273895] trunk Revision 273895 Author peng.l...@apple.com Date 2021-03-04 09:55:21 -0800 (Thu, 04 Mar 2021) Log Message [GPUProcess] MediaController is using a ClockCM https://bugs.webkit.org/show_bug.cgi?id=222094 Reviewed by Eric Carlson. Source/WebCore: No new tests. Fix test failures. * html/MediaController.cpp: Some minor clean-up. * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.h: A minor clean-up. Source/WebCore/PAL: Remove `ClockCM` and use `ClockGeneric` instead because `ClockCM::currentTime()` always returns NaN when "Media in GPU Process" is enabled. * PAL.xcodeproj/project.pbxproj: * pal/PlatformMac.cmake: * pal/system/mac/ClockCM.h: Removed. * pal/system/mac/ClockCM.mm: Removed. LayoutTests: * platform/wk2/TestExpectations: Modified Paths trunk/LayoutTests/ChangeLog trunk/LayoutTests/platform/wk2/TestExpectations trunk/Source/WebCore/ChangeLog trunk/Source/WebCore/PAL/ChangeLog trunk/Source/WebCore/PAL/PAL.xcodeproj/project.pbxproj trunk/Source/WebCore/PAL/pal/PlatformMac.cmake trunk/Source/WebCore/html/MediaController.cpp trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.h Removed Paths trunk/Source/WebCore/PAL/pal/system/mac/ClockCM.h trunk/Source/WebCore/PAL/pal/system/mac/ClockCM.mm Diff Modified: trunk/LayoutTests/ChangeLog (273894 => 273895) --- trunk/LayoutTests/ChangeLog 2021-03-04 17:49:24 UTC (rev 273894) +++ trunk/LayoutTests/ChangeLog 2021-03-04 17:55:21 UTC (rev 273895) @@ -1,3 +1,12 @@ +2021-03-04 Peng Liu + +[GPUProcess] MediaController is using a ClockCM +https://bugs.webkit.org/show_bug.cgi?id=222094 + +Reviewed by Eric Carlson. + +* platform/wk2/TestExpectations: + 2021-03-04 Youenn Fablet Handle the case of synchronous failure in loading blob. Modified: trunk/LayoutTests/platform/wk2/TestExpectations (273894 => 273895) --- trunk/LayoutTests/platform/wk2/TestExpectations 2021-03-04 17:49:24 UTC (rev 273894) +++ trunk/LayoutTests/platform/wk2/TestExpectations 2021-03-04 17:55:21 UTC (rev 273895) @@ -242,13 +242,10 @@ media/controls/inline-elements-dropoff-order.html [ Failure Pass ] media/encrypted-media/clearKey/clearKey-session-life-cycle.html [ Failure Crash ] media/media-can-play-webm.html [ Failure ] -media/media-controller-time-constant.html [ Timeout ] -media/media-controller-time.html [ Timeout ] media/media-controller-unpause.html [ Timeout ] media/track/track-cues-pause-on-exit.html [ Timeout Pass ] media/video-as-img-output-pts.html [ Timeout Pass ] -media/video-controller-child-rate.html [ Timeout ] -media/video-controller-currentTime-rate.html [ Failure ] +media/video-controller-child-rate.html [ Failure Pass ] media/video-set-rate-from-pause.html [ Timeout Pass ] # webkit.org/b/220805 Modified: trunk/Source/WebCore/ChangeLog (273894 => 273895) --- trunk/Source/WebCore/ChangeLog 2021-03-04 17:49:24 UTC (rev 273894) +++ trunk/Source/WebCore/ChangeLog 2021-03-04 17:55:21 UTC (rev 273895) @@ -1,3 +1,16 @@ +2021-03-04 Peng Liu + +[GPUProcess] MediaController is using a ClockCM +https://bugs.webkit.org/show_bug.cgi?id=222094 + +Reviewed by Eric Carlson. + +No new tests. Fix test failures. + +* html/MediaController.cpp: Some minor clean-up. +* platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.h: +A minor clean-up. + 2021-03-04 Youenn Fablet AVAudioSessionCaptureDeviceManager::retrieveAudioSessionCaptureDevices is unnecessarily creating a NSArray twice Modified: trunk/Source/WebCore/PAL/ChangeLog (273894 => 273895) --- trunk/Source/WebCore/PAL/ChangeLog 2021-03-04 17:49:24 UTC (rev 273894) +++ trunk/Source/WebCore/PAL/ChangeLog 2021-03-04 17:55:21 UTC (rev 273895) @@ -1,3 +1,18 @@ +2021-03-04 Peng Liu + +[GPUProcess] MediaController is using a ClockCM +https://bugs.webkit.org/show_bug.cgi?id=222094 + +Reviewed by Eric Carlson. + +Remove `ClockCM` and use `ClockGeneric` instead because `ClockCM::currentTime()` +always returns NaN when "Media in GPU Process" is enabled. + +* PAL.xcodeproj/project.pbxproj: +* pal/PlatformMac.cmake: +* pal/system/mac/ClockCM.h: Removed. +* pal/system/mac/ClockCM.mm: Removed. + 2021-03-02 Youenn Fablet Enable MEDIA_SOURCE in IOS Simulator Modified: trunk/Source/WebCore/PAL/PAL.xcodeproj/project.pbxproj (273894 => 273895) --- trunk/Source/WebCore/PAL/PAL.xcodeproj/project.pbxproj 2021-03-04 17:49:24 UTC (rev 273894) +++ trunk/Source/WebCore/PAL/PAL.xcodeproj/project.pbxproj 2021-03-04 17:55:21 UTC (rev 273895) @@ -73,8 +73,6 @@ 0C5AF9211F43A4C7002EAC02 /* SQLite3SPI.h in Headers */ = {isa = PBXBuildFile; fileRef = 0C5AF9171F43A4C7002EAC02 /* SQLite3SPI.h */; }; 0C5AF9221F43A4C7002EAC02 /* UIKitSPI.h in Headers */ = {isa = PBXBuildFile; fileRef = 0C5AF9181F43A4C7002EAC02 /*
[webkit-changes] [273894] trunk/Source/WebCore
Title: [273894] trunk/Source/WebCore Revision 273894 Author you...@apple.com Date 2021-03-04 09:49:24 -0800 (Thu, 04 Mar 2021) Log Message AVAudioSessionCaptureDeviceManager::retrieveAudioSessionCaptureDevices is unnecessarily creating a NSArray twice https://bugs.webkit.org/show_bug.cgi?id=222732 Reviewed by Eric Carlson. Before the patch, [m_audioSession availableInputs] was called twice. This creates two NSArray which is not create from a memory standpoint. There is also the risk that the two NSArrays have two different size, in which case Vector::uncheckedAppend would fail. Cannot be easily tested, no observable change expected. * platform/mediastream/ios/AVAudioSessionCaptureDeviceManager.mm: (WebCore::AVAudioSessionCaptureDeviceManager::retrieveAudioSessionCaptureDevices const): Modified Paths trunk/Source/WebCore/ChangeLog trunk/Source/WebCore/platform/mediastream/ios/AVAudioSessionCaptureDeviceManager.mm Diff Modified: trunk/Source/WebCore/ChangeLog (273893 => 273894) --- trunk/Source/WebCore/ChangeLog 2021-03-04 17:49:03 UTC (rev 273893) +++ trunk/Source/WebCore/ChangeLog 2021-03-04 17:49:24 UTC (rev 273894) @@ -1,5 +1,21 @@ 2021-03-04 Youenn Fablet +AVAudioSessionCaptureDeviceManager::retrieveAudioSessionCaptureDevices is unnecessarily creating a NSArray twice +https://bugs.webkit.org/show_bug.cgi?id=222732 + +Reviewed by Eric Carlson. + +Before the patch, [m_audioSession availableInputs] was called twice. +This creates two NSArray which is not create from a memory standpoint. +There is also the risk that the two NSArrays have two different size, in which case Vector::uncheckedAppend would fail. + +Cannot be easily tested, no observable change expected. + +* platform/mediastream/ios/AVAudioSessionCaptureDeviceManager.mm: +(WebCore::AVAudioSessionCaptureDeviceManager::retrieveAudioSessionCaptureDevices const): + +2021-03-04 Youenn Fablet + Update camera and microphone capture state control WKWebView API https://bugs.webkit.org/show_bug.cgi?id=222166 Modified: trunk/Source/WebCore/platform/mediastream/ios/AVAudioSessionCaptureDeviceManager.mm (273893 => 273894) --- trunk/Source/WebCore/platform/mediastream/ios/AVAudioSessionCaptureDeviceManager.mm 2021-03-04 17:49:03 UTC (rev 273893) +++ trunk/Source/WebCore/platform/mediastream/ios/AVAudioSessionCaptureDeviceManager.mm 2021-03-04 17:49:24 UTC (rev 273894) @@ -201,11 +201,12 @@ Vector AVAudioSessionCaptureDeviceManager::retrieveAudioSessionCaptureDevices() const { -Vector newAudioDevices; auto *defaultInput = [m_audioSession currentRoute].inputs.firstObject; -newAudioDevices.reserveInitialCapacity([m_audioSession availableInputs].count); +auto availableInputs = [m_audioSession availableInputs]; -for (AVAudioSessionPortDescription *portDescription in [m_audioSession availableInputs]) +Vector newAudioDevices; +newAudioDevices.reserveInitialCapacity(availableInputs.count); +for (AVAudioSessionPortDescription *portDescription in availableInputs) newAudioDevices.uncheckedAppend(AVAudioSessionCaptureDevice::create(portDescription, defaultInput)); return newAudioDevices; ___ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes
[webkit-changes] [273892] trunk/Source/WebKit
Title: [273892] trunk/Source/WebKit Revision 273892 Author you...@apple.com Date 2021-03-04 09:48:56 -0800 (Thu, 04 Mar 2021) Log Message REGRESSION (r273732): ASSERTION FAILED: Completion handler should always be called under WebKit::RemoteRealtimeMediaSourceProxy::~RemoteRealtimeMediaSourceProxy https://bugs.webkit.org/show_bug.cgi?id=222691 Reviewed by Eric Carlson. Make sure to return a ApplyConstraints completed message in all cases. Call completion handler when source gets destroyed. Covered by existing tests. * UIProcess/Cocoa/UserMediaCaptureManagerProxy.cpp: (WebKit::UserMediaCaptureManagerProxy::applyConstraints): * WebProcess/cocoa/RemoteRealtimeMediaSourceProxy.cpp: (WebKit::RemoteRealtimeMediaSourceProxy::~RemoteRealtimeMediaSourceProxy): * WebProcess/cocoa/RemoteRealtimeMediaSourceProxy.h: * WebProcess/cocoa/RemoteRealtimeVideoSource.cpp: (WebKit::RemoteRealtimeVideoSource::gpuProcessConnectionDidClose): Modified Paths trunk/Source/WebKit/ChangeLog trunk/Source/WebKit/UIProcess/Cocoa/UserMediaCaptureManagerProxy.cpp trunk/Source/WebKit/WebProcess/cocoa/RemoteRealtimeMediaSourceProxy.cpp trunk/Source/WebKit/WebProcess/cocoa/RemoteRealtimeMediaSourceProxy.h trunk/Source/WebKit/WebProcess/cocoa/RemoteRealtimeVideoSource.cpp Diff Modified: trunk/Source/WebKit/ChangeLog (273891 => 273892) --- trunk/Source/WebKit/ChangeLog 2021-03-04 16:44:16 UTC (rev 273891) +++ trunk/Source/WebKit/ChangeLog 2021-03-04 17:48:56 UTC (rev 273892) @@ -1,5 +1,25 @@ 2021-03-04 Youenn Fablet +REGRESSION (r273732): ASSERTION FAILED: Completion handler should always be called under WebKit::RemoteRealtimeMediaSourceProxy::~RemoteRealtimeMediaSourceProxy +https://bugs.webkit.org/show_bug.cgi?id=222691 + + +Reviewed by Eric Carlson. + +Make sure to return a ApplyConstraints completed message in all cases. +Call completion handler when source gets destroyed. +Covered by existing tests. + +* UIProcess/Cocoa/UserMediaCaptureManagerProxy.cpp: +(WebKit::UserMediaCaptureManagerProxy::applyConstraints): +* WebProcess/cocoa/RemoteRealtimeMediaSourceProxy.cpp: +(WebKit::RemoteRealtimeMediaSourceProxy::~RemoteRealtimeMediaSourceProxy): +* WebProcess/cocoa/RemoteRealtimeMediaSourceProxy.h: +* WebProcess/cocoa/RemoteRealtimeVideoSource.cpp: +(WebKit::RemoteRealtimeVideoSource::gpuProcessConnectionDidClose): + +2021-03-04 Youenn Fablet + Update camera and microphone capture state control WKWebView API https://bugs.webkit.org/show_bug.cgi?id=222166 Modified: trunk/Source/WebKit/UIProcess/Cocoa/UserMediaCaptureManagerProxy.cpp (273891 => 273892) --- trunk/Source/WebKit/UIProcess/Cocoa/UserMediaCaptureManagerProxy.cpp 2021-03-04 16:44:16 UTC (rev 273891) +++ trunk/Source/WebKit/UIProcess/Cocoa/UserMediaCaptureManagerProxy.cpp 2021-03-04 17:48:56 UTC (rev 273892) @@ -325,8 +325,10 @@ void UserMediaCaptureManagerProxy::applyConstraints(RealtimeMediaSourceIdentifier id, const WebCore::MediaConstraints& constraints) { auto* proxy = m_proxies.get(id); -if (!proxy) +if (!proxy) { +m_connectionProxy->connection().send(Messages::UserMediaCaptureManager::ApplyConstraintsFailed(id, { }, "Unknown source"_s), 0); return; +} auto& source = proxy->source(); auto result = source.applyConstraints(constraints); Modified: trunk/Source/WebKit/WebProcess/cocoa/RemoteRealtimeMediaSourceProxy.cpp (273891 => 273892) --- trunk/Source/WebKit/WebProcess/cocoa/RemoteRealtimeMediaSourceProxy.cpp 2021-03-04 16:44:16 UTC (rev 273891) +++ trunk/Source/WebKit/WebProcess/cocoa/RemoteRealtimeMediaSourceProxy.cpp 2021-03-04 17:48:56 UTC (rev 273892) @@ -44,6 +44,11 @@ using namespace PAL; using namespace WebCore; +RemoteRealtimeMediaSourceProxy::~RemoteRealtimeMediaSourceProxy() +{ +failApplyConstraintCallbacks("Source terminated"_s); +} + IPC::Connection* RemoteRealtimeMediaSourceProxy::connection() { ASSERT(isMainThread()); Modified: trunk/Source/WebKit/WebProcess/cocoa/RemoteRealtimeMediaSourceProxy.h (273891 => 273892) --- trunk/Source/WebKit/WebProcess/cocoa/RemoteRealtimeMediaSourceProxy.h 2021-03-04 16:44:16 UTC (rev 273891) +++ trunk/Source/WebKit/WebProcess/cocoa/RemoteRealtimeMediaSourceProxy.h 2021-03-04 17:48:56 UTC (rev 273892) @@ -46,6 +46,7 @@ class RemoteRealtimeMediaSourceProxy { public: RemoteRealtimeMediaSourceProxy(WebCore::RealtimeMediaSourceIdentifier, const WebCore::CaptureDevice&, bool shouldCaptureInGPUProcess, const WebCore::MediaConstraints*); +~RemoteRealtimeMediaSourceProxy(); IPC::Connection* connection(); WebCore::RealtimeMediaSourceIdentifier identifier() const { return m_identifier; } Modified: trunk/Source/WebKit/WebProcess/cocoa/RemoteRealtimeVideoSource.cpp (273891 => 273892) --- trunk/Source/WebKit/WebProcess/cocoa/RemoteRealtimeVideoSource.cpp 2021-03-04 16:44:16 UTC (rev 273891)
[webkit-changes] [273893] trunk/Source/ThirdParty/libwebrtc
Title: [273893] trunk/Source/ThirdParty/libwebrtc Revision 273893 Author you...@apple.com Date 2021-03-04 09:49:03 -0800 (Thu, 04 Mar 2021) Log Message Use NO_MAIN_THREAD_WRAPPING to compile libwebrtc https://bugs.webkit.org/show_bug.cgi?id=222717 Reviewed by Eric Carlson. * Configurations/libwebrtc.xcconfig: This prevents creating socket server in Web Process. Modified Paths trunk/Source/ThirdParty/libwebrtc/ChangeLog trunk/Source/ThirdParty/libwebrtc/Configurations/libwebrtc.xcconfig Diff Modified: trunk/Source/ThirdParty/libwebrtc/ChangeLog (273892 => 273893) --- trunk/Source/ThirdParty/libwebrtc/ChangeLog 2021-03-04 17:48:56 UTC (rev 273892) +++ trunk/Source/ThirdParty/libwebrtc/ChangeLog 2021-03-04 17:49:03 UTC (rev 273893) @@ -1,3 +1,14 @@ +2021-03-04 Youenn Fablet + +Use NO_MAIN_THREAD_WRAPPING to compile libwebrtc +https://bugs.webkit.org/show_bug.cgi?id=222717 + + +Reviewed by Eric Carlson. + +* Configurations/libwebrtc.xcconfig: +This prevents creating socket server in Web Process. + 2021-02-24 Youenn Fablet Update fipsmodule cipher.c to handle EVP_CipherUpdate Modified: trunk/Source/ThirdParty/libwebrtc/Configurations/libwebrtc.xcconfig (273892 => 273893) --- trunk/Source/ThirdParty/libwebrtc/Configurations/libwebrtc.xcconfig 2021-03-04 17:48:56 UTC (rev 273892) +++ trunk/Source/ThirdParty/libwebrtc/Configurations/libwebrtc.xcconfig 2021-03-04 17:49:03 UTC (rev 273893) @@ -49,7 +49,7 @@ WARNING_CFLAGS = -Wno-deprecated-declarations $(inherited); // FIXME: Set WEBRTC_USE_BUILTIN_ISAC_FIX and WEBRTC_USE_BUILTIN_ISAC_FLOAT for iOS and Mac -GCC_PREPROCESSOR_DEFINITIONS = GTEST_RELATIVE_PATH WEBRTC_OPUS_SUPPORT_120MS_PTIME=0 WEBRTC_POSIX WEBRTC_MAC SSL_USE_OPENSSL FEATURE_ENABLE_SSL HAVE_SRTP HAVE_NETINET_IN_H HAVE_OPENSSL_SSL_H SCTP_PROCESS_LEVEL_LOCKS SCTP_SIMPLE_ALLOCATOR SCTP_USE_OPENSSL_SHA1 __Userspace__ HAVE_SA_LEN HAVE_SCONN_LEN __APPLE_USE_RFC_2292 __Userspace_os_Darwin NON_WINDOWS_DEFINE HAVE_WEBRTC_VIDEO HAVE_WEBRTC_VOICE WEBRTC_INTELLIGIBILITY_ENHANCER=0 WEBRTC_APM_DEBUG_DUMP=0 WEBRTC_NS_FLOAT WEBRTC_USE_BUILTIN_OPUS WEBRTC_CODEC_OPUS WEBRTC_CODEC_ISAC WEBRTC_CODEC_RED HAVE_STDINT_H HAVE_STDLIB_H HAVE_UINT64_T OPENSSL HAVE_CONFIG_H WEBRTC_WEBKIT_BUILD HAVE_PTHREAD_COND_TIMEDWAIT_RELATIVE HAVE_SCTP WEBRTC_CODEC_G711 WEBRTC_CODEC_G722 WEBRTC_OPUS_VARIABLE_COMPLEXITY=0 WEBRTC_USE_BUILTIN_ISAC_FIX=1 WEBRTC_USE_BUILTIN_ISAC_FLOAT=0 USE_BUILTIN_SW_CODECS WEBRTC_WEBKIT_BUILD RTC_ENABLE_VP9 $(inherited); +GCC_PREPROCESSOR_DEFINITIONS = GTEST_RELATIVE_PATH WEBRTC_OPUS_SUPPORT_120MS_PTIME=0 WEBRTC_POSIX WEBRTC_MAC SSL_USE_OPENSSL FEATURE_ENABLE_SSL HAVE_SRTP HAVE_NETINET_IN_H HAVE_OPENSSL_SSL_H SCTP_PROCESS_LEVEL_LOCKS SCTP_SIMPLE_ALLOCATOR SCTP_USE_OPENSSL_SHA1 __Userspace__ HAVE_SA_LEN HAVE_SCONN_LEN __APPLE_USE_RFC_2292 __Userspace_os_Darwin NON_WINDOWS_DEFINE HAVE_WEBRTC_VIDEO HAVE_WEBRTC_VOICE WEBRTC_INTELLIGIBILITY_ENHANCER=0 WEBRTC_APM_DEBUG_DUMP=0 WEBRTC_NS_FLOAT WEBRTC_USE_BUILTIN_OPUS WEBRTC_CODEC_OPUS WEBRTC_CODEC_ISAC WEBRTC_CODEC_RED HAVE_STDINT_H HAVE_STDLIB_H HAVE_UINT64_T OPENSSL HAVE_CONFIG_H WEBRTC_WEBKIT_BUILD HAVE_PTHREAD_COND_TIMEDWAIT_RELATIVE HAVE_SCTP WEBRTC_CODEC_G711 WEBRTC_CODEC_G722 WEBRTC_OPUS_VARIABLE_COMPLEXITY=0 WEBRTC_USE_BUILTIN_ISAC_FIX=1 WEBRTC_USE_BUILTIN_ISAC_FLOAT=0 USE_BUILTIN_SW_CODECS WEBRTC_WEBKIT_BUILD RTC_ENABLE_VP9 NO_MAIN_THREAD_WRAPPING $(inherited); GCC_PREPROCESSOR_DEFINITIONS[sdk=macosx*] = $(inherited) WEBRTC_USE_VTB_HARDWARE_ENCODER; GCC_PREPROCESSOR_DEFINITIONS[sdk=iphoneos*] = $(inherited) WEBRTC_IOS; ___ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes
[webkit-changes] [273891] trunk
Title: [273891] trunk Revision 273891 Author you...@apple.com Date 2021-03-04 08:44:16 -0800 (Thu, 04 Mar 2021) Log Message Update camera and microphone capture state control WKWebView API https://bugs.webkit.org/show_bug.cgi?id=222166 Reviewed by Eric Carlson. Source/WebCore: Introduce the possibility to mute either camera and/or microphone capture independently. Covered by existing tests. * Modules/mediastream/MediaStreamTrack.cpp: (WebCore::MediaStreamTrack::updateCaptureAccordingToMutedState): (WebCore::MediaStreamTrack::updateToPageMutedState): (WebCore::trackMatchesKind): (WebCore::MediaStreamTrack::endCapture): * Modules/mediastream/MediaStreamTrack.h: * dom/Document.cpp: (WebCore::Document::stopMediaCapture): * dom/Document.h: * page/MediaProducer.h: * page/Page.cpp: (WebCore::Page::stopMediaCapture): * page/Page.h: Source/WebKit: Introduce KVO states for microphone and camera capture states. Add two APIs to set microphone and camera state. This allows to mute/unmute or stop microphone or camera state. We needed to introduce muting of either microphone or camera since this was tied together before the patch. These two APIs take a completion handler. * UIProcess/API/Cocoa/WKUIDelegatePrivate.h: * UIProcess/API/Cocoa/WKWebView.mm: (-[WKWebView _cameraCaptureState]): (-[WKWebView _microphoneCaptureState]): (-[WKWebView setMicrophoneCaptureState:completionHandler:]): (-[WKWebView setCameraCaptureState:completionHandler:]): (-[WKWebView _stopMediaCapture]): (-[WKWebView _mediaCaptureState]): * UIProcess/API/Cocoa/WKWebViewPrivate.h: * UIProcess/Cocoa/MediaUtilities.h: * UIProcess/Cocoa/MediaUtilities.mm: (WebKit::toWKMediaCaptureStateDeprecated): (WebKit::toWKMediaCaptureState): Deleted. * UIProcess/Cocoa/PageClientImplCocoa.h: * UIProcess/Cocoa/PageClientImplCocoa.mm: (WebKit::PageClientImplCocoa::microphoneCaptureChanged): (WebKit::PageClientImplCocoa::cameraCaptureChanged): * UIProcess/Cocoa/UIDelegate.mm: (WebKit::UIDelegate::UIClient::mediaCaptureStateDidChange): * UIProcess/PageClient.h: (WebKit::PageClient::microphoneCaptureChanged): (WebKit::PageClient::cameraCaptureChanged): * UIProcess/UserMediaPermissionRequestManagerProxy.cpp: (WebKit::UserMediaPermissionRequestManagerProxy::~UserMediaPermissionRequestManagerProxy): (WebKit::UserMediaPermissionRequestManagerProxy::stopCapture): * UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::setMuted): (WebKit::WebPageProxy::stopMediaCapture): (WebKit::WebPageProxy::updateReportedMediaCaptureState): * UIProcess/WebPageProxy.h: (WebKit::WebPageProxy::setMuted): (WebKit::WebPageProxy::stopMediaCapture): * WebProcess/WebPage/WebPage.cpp: (WebKit::m_lastNavigationWasAppBound): (WebKit::WebPage::setMuted): (WebKit::WebPage::stopMediaCapture): * WebProcess/WebPage/WebPage.h: * WebProcess/WebPage/WebPage.messages.in: Tools: Updaed according renaming of _WKMediaCaptureState in _WKMediaCaptureStateDeprecated. * TestWebKitAPI/Tests/WebKit/GetUserMedia.mm: (TestWebKitAPI::wkMediaCaptureStateString): (TestWebKitAPI::waitUntilCaptureState): (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/WebKit/MediaStreamTrackDetached.mm: (-[MediaStreamTrackDetachedUIDelegate _webView:mediaCaptureStateDidChange:]): * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm: (-[GetUserMediaUIDelegate _webView:mediaCaptureStateDidChange:]): * TestWebKitAPI/Tests/WebKitCocoa/SpeechRecognition.mm: (-[SpeechRecognitionUIDelegate _webView:mediaCaptureStateDidChange:]): * WebKitTestRunner/cocoa/TestControllerCocoa.mm: (WTR::TestController::isDoingMediaCapture const): Modified Paths trunk/Source/WebCore/ChangeLog trunk/Source/WebCore/Modules/mediastream/MediaStreamTrack.cpp trunk/Source/WebCore/Modules/mediastream/MediaStreamTrack.h trunk/Source/WebCore/dom/Document.cpp trunk/Source/WebCore/dom/Document.h trunk/Source/WebCore/page/MediaProducer.h trunk/Source/WebCore/page/Page.cpp trunk/Source/WebCore/page/Page.h trunk/Source/WebKit/ChangeLog trunk/Source/WebKit/UIProcess/API/Cocoa/WKUIDelegatePrivate.h trunk/Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm trunk/Source/WebKit/UIProcess/API/Cocoa/WKWebViewPrivate.h trunk/Source/WebKit/UIProcess/Cocoa/MediaUtilities.h trunk/Source/WebKit/UIProcess/Cocoa/MediaUtilities.mm trunk/Source/WebKit/UIProcess/Cocoa/PageClientImplCocoa.h trunk/Source/WebKit/UIProcess/Cocoa/PageClientImplCocoa.mm trunk/Source/WebKit/UIProcess/Cocoa/UIDelegate.mm trunk/Source/WebKit/UIProcess/PageClient.h trunk/Source/WebKit/UIProcess/UserMediaPermissionRequestManagerProxy.cpp trunk/Source/WebKit/UIProcess/WebPageProxy.cpp trunk/Source/WebKit/UIProcess/WebPageProxy.h trunk/Source/WebKit/WebProcess/WebPage/WebPage.cpp trunk/Source/WebKit/WebProcess/WebPage/WebPage.h trunk/Source/WebKit/WebProcess/WebPage/WebPage.messages.in trunk/Tools/ChangeLog trunk/Tools/TestWebKitAPI/Tests/WebKit/GetUserMedia.mm trunk/Tools/TestWebKitAPI/Tests/WebKit/MediaStreamTrackDetached.mm trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm
[webkit-changes] [273890] trunk
Title: [273890] trunk Revision 273890 Author you...@apple.com Date 2021-03-04 08:32:24 -0800 (Thu, 04 Mar 2021) Log Message Handle the case of synchronous failure in loading blob. https://bugs.webkit.org/show_bug.cgi?id=222724 Reviewed by Carlos Garcia Campos. Source/WebCore: Test: http/tests/fetch/blob-in-unload-event-handler.html * fileapi/Blob.cpp: (WebCore::Blob::stream): In case of synchronous failure, wait for the stream to be started to error it. LayoutTests: * http/tests/fetch/blob-in-unload-event-handler-expected.txt: Added. * http/tests/fetch/blob-in-unload-event-handler.html: Added. Modified Paths trunk/LayoutTests/ChangeLog trunk/Source/WebCore/ChangeLog trunk/Source/WebCore/fileapi/Blob.cpp Added Paths trunk/LayoutTests/http/tests/fetch/blob-in-unload-event-handler-expected.txt trunk/LayoutTests/http/tests/fetch/blob-in-unload-event-handler.html Diff Modified: trunk/LayoutTests/ChangeLog (273889 => 273890) --- trunk/LayoutTests/ChangeLog 2021-03-04 16:26:28 UTC (rev 273889) +++ trunk/LayoutTests/ChangeLog 2021-03-04 16:32:24 UTC (rev 273890) @@ -1,3 +1,13 @@ +2021-03-04 Youenn Fablet + +Handle the case of synchronous failure in loading blob. +https://bugs.webkit.org/show_bug.cgi?id=222724 + +Reviewed by Carlos Garcia Campos. + +* http/tests/fetch/blob-in-unload-event-handler-expected.txt: Added. +* http/tests/fetch/blob-in-unload-event-handler.html: Added. + 2021-03-04 Rob Buis Null check platformData when decoding Added: trunk/LayoutTests/http/tests/fetch/blob-in-unload-event-handler-expected.txt (0 => 273890) --- trunk/LayoutTests/http/tests/fetch/blob-in-unload-event-handler-expected.txt (rev 0) +++ trunk/LayoutTests/http/tests/fetch/blob-in-unload-event-handler-expected.txt 2021-03-04 16:32:24 UTC (rev 273890) @@ -0,0 +1,2 @@ +main frame - has 1 onunload handler(s) +PASS Added: trunk/LayoutTests/http/tests/fetch/blob-in-unload-event-handler.html (0 => 273890) --- trunk/LayoutTests/http/tests/fetch/blob-in-unload-event-handler.html (rev 0) +++ trunk/LayoutTests/http/tests/fetch/blob-in-unload-event-handler.html 2021-03-04 16:32:24 UTC (rev 273890) @@ -0,0 +1,26 @@ + + + + +Blobs in unload event handler + + + +if (window.testRunner) { +testRunner.dumpAsText(); +testRunner.waitUntilDone(); +} + +if (window.location.hash == '') { +_onunload_ = () => { +new File([], '').stream(); +}; +window.location = "?#finish"; +} else { +document.body.innerHTML = "PASS"; +if (window.testRunner) +testRunner.notifyDone(); +} + + + Modified: trunk/Source/WebCore/ChangeLog (273889 => 273890) --- trunk/Source/WebCore/ChangeLog 2021-03-04 16:26:28 UTC (rev 273889) +++ trunk/Source/WebCore/ChangeLog 2021-03-04 16:32:24 UTC (rev 273890) @@ -1,3 +1,16 @@ +2021-03-04 Youenn Fablet + +Handle the case of synchronous failure in loading blob. +https://bugs.webkit.org/show_bug.cgi?id=222724 + +Reviewed by Carlos Garcia Campos. + +Test: http/tests/fetch/blob-in-unload-event-handler.html + +* fileapi/Blob.cpp: +(WebCore::Blob::stream): +In case of synchronous failure, wait for the stream to be started to error it. + 2021-03-04 Zalan Bujtas [LFC][IFC] LineBox::m_rootInlineBox does not need to be a UniqueRef Modified: trunk/Source/WebCore/fileapi/Blob.cpp (273889 => 273890) --- trunk/Source/WebCore/fileapi/Blob.cpp 2021-03-04 16:26:28 UTC (rev 273889) +++ trunk/Source/WebCore/fileapi/Blob.cpp 2021-03-04 16:32:24 UTC (rev 273890) @@ -255,7 +255,13 @@ // ReadableStreamSource void setActive() final { } void setInactive() final { } -void doStart() final { } +void doStart() final +{ +m_isStarted = true; +if (m_exception) +controller().error(*m_exception); +} + void doPull() final { } void doCancel() final { @@ -282,13 +288,20 @@ { controller().close(); } -void didFail(ExceptionCode exception) final +void didFail(ExceptionCode code) final { -controller().error(Exception { exception }); +Exception exception { code }; +if (!m_isStarted) { +m_exception = WTFMove(exception); +return; +} +controller().error(exception); } UniqueRef m_loader; size_t m_bytesRead { 0 }; +bool m_isStarted { false }; +Optional m_exception; }; auto* globalObject = scriptExecutionContext.globalObject(); ___ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes
[webkit-changes] [273889] trunk/Source/WebCore
Title: [273889] trunk/Source/WebCore Revision 273889 Author za...@apple.com Date 2021-03-04 08:26:28 -0800 (Thu, 04 Mar 2021) Log Message [LFC][IFC] LineBox::m_rootInlineBox does not need to be a UniqueRef https://bugs.webkit.org/show_bug.cgi?id=222705 Reviewed by Antti Koivisto. * layout/inlineformatting/InlineLineBox.cpp: (WebCore::Layout::m_rootInlineBox): (WebCore::Layout::LineBox::logicalRectForTextRun const): (WebCore::Layout::LineBox::logicalRectForInlineLevelBox const): * layout/inlineformatting/InlineLineBox.h: (WebCore::Layout::LineBox::logicalRectForRootInlineBox const): (WebCore::Layout::LineBox::alignmentBaseline const): (WebCore::Layout::LineBox::inlineLevelBoxForLayoutBox): Modified Paths trunk/Source/WebCore/ChangeLog trunk/Source/WebCore/layout/inlineformatting/InlineLineBox.cpp trunk/Source/WebCore/layout/inlineformatting/InlineLineBox.h Diff Modified: trunk/Source/WebCore/ChangeLog (273888 => 273889) --- trunk/Source/WebCore/ChangeLog 2021-03-04 14:23:01 UTC (rev 273888) +++ trunk/Source/WebCore/ChangeLog 2021-03-04 16:26:28 UTC (rev 273889) @@ -1,5 +1,21 @@ 2021-03-04 Zalan Bujtas +[LFC][IFC] LineBox::m_rootInlineBox does not need to be a UniqueRef +https://bugs.webkit.org/show_bug.cgi?id=222705 + +Reviewed by Antti Koivisto. + +* layout/inlineformatting/InlineLineBox.cpp: +(WebCore::Layout::m_rootInlineBox): +(WebCore::Layout::LineBox::logicalRectForTextRun const): +(WebCore::Layout::LineBox::logicalRectForInlineLevelBox const): +* layout/inlineformatting/InlineLineBox.h: +(WebCore::Layout::LineBox::logicalRectForRootInlineBox const): +(WebCore::Layout::LineBox::alignmentBaseline const): +(WebCore::Layout::LineBox::inlineLevelBoxForLayoutBox): + +2021-03-04 Zalan Bujtas + [LFC][IFC] InlineContentBuilder::createDisplayNonRootInlineBoxes should check if the line has inline boxes at all https://bugs.webkit.org/show_bug.cgi?id=222707 Modified: trunk/Source/WebCore/layout/inlineformatting/InlineLineBox.cpp (273888 => 273889) --- trunk/Source/WebCore/layout/inlineformatting/InlineLineBox.cpp 2021-03-04 14:23:01 UTC (rev 273888) +++ trunk/Source/WebCore/layout/inlineformatting/InlineLineBox.cpp 2021-03-04 16:26:28 UTC (rev 273889) @@ -86,7 +86,7 @@ LineBox::LineBox(const Box& rootLayoutBox, const InlineLayoutPoint& logicalTopleft, InlineLayoutUnit lineLogicalWidth, InlineLayoutUnit contentLogicalLeft, InlineLayoutUnit contentLogicalWidth, size_t numberOfRuns) : m_logicalRect(logicalTopleft, InlineLayoutSize { lineLogicalWidth, { } }) , m_contentLogicalWidth(contentLogicalWidth) -, m_rootInlineBox(makeUniqueRef(rootLayoutBox, contentLogicalLeft, InlineLayoutSize { contentLogicalWidth, { } }, InlineLevelBox::Type::RootInlineBox)) +, m_rootInlineBox(rootLayoutBox, contentLogicalLeft, InlineLayoutSize { contentLogicalWidth, { } }, InlineLevelBox::Type::RootInlineBox) { m_nonRootInlineLevelBoxList.reserveInitialCapacity(numberOfRuns); m_nonRootInlineLevelBoxMap.reserveInitialCapacity(numberOfRuns); @@ -113,7 +113,7 @@ runlogicalTop += parentInlineBox->logicalTop(); } InlineLayoutUnit logicalHeight = fontMetrics.height(); -return { runlogicalTop, m_rootInlineBox->logicalLeft() + run.logicalLeft(), run.logicalWidth(), logicalHeight }; +return { runlogicalTop, m_rootInlineBox.logicalLeft() + run.logicalLeft(), run.logicalWidth(), logicalHeight }; } InlineRect LineBox::logicalRectForLineBreakBox(const Box& layoutBox) const @@ -132,8 +132,8 @@ return inlineBoxLogicalRect; // Fast path for inline level boxes on the root inline box (e.g ). -if (() == _rootInlineBox->layoutBox()) { -inlineBoxLogicalRect.moveVertically(m_rootInlineBox->logicalTop()); +if (() == _rootInlineBox.layoutBox()) { +inlineBoxLogicalRect.moveVertically(m_rootInlineBox.logicalTop()); return inlineBoxLogicalRect; } Modified: trunk/Source/WebCore/layout/inlineformatting/InlineLineBox.h (273888 => 273889) --- trunk/Source/WebCore/layout/inlineformatting/InlineLineBox.h 2021-03-04 14:23:01 UTC (rev 273888) +++ trunk/Source/WebCore/layout/inlineformatting/InlineLineBox.h 2021-03-04 16:26:28 UTC (rev 273889) @@ -153,7 +153,7 @@ InlineRect logicalRectForTextRun(const Line::Run&) const; InlineRect logicalRectForLineBreakBox(const Box&) const; -InlineRect logicalRectForRootInlineBox() const { return m_rootInlineBox->logicalRect(); } +InlineRect logicalRectForRootInlineBox() const { return m_rootInlineBox.logicalRect(); } InlineRect logicalBorderBoxForAtomicInlineLevelBox(const Box&, const BoxGeometry&) const; InlineRect logicalBorderBoxForInlineBox(const Box&, const BoxGeometry&) const; @@ -161,7 +161,7 @@ using InlineLevelBoxList = Vector>; const InlineLevelBoxList& nonRootInlineLevelBoxes() const { return m_nonRootInlineLevelBoxList; } -
[webkit-changes] [273888] trunk/Source/WebCore
Title: [273888] trunk/Source/WebCore Revision 273888 Author za...@apple.com Date 2021-03-04 06:23:01 -0800 (Thu, 04 Mar 2021) Log Message [LFC][IFC] InlineContentBuilder::createDisplayNonRootInlineBoxes should check if the line has inline boxes at all https://bugs.webkit.org/show_bug.cgi?id=222707 Reviewed by Antti Koivisto. * layout/integration/LayoutIntegrationInlineContentBuilder.cpp: (WebCore::LayoutIntegration::InlineContentBuilder::createDisplayNonRootInlineBoxes const): Modified Paths trunk/Source/WebCore/ChangeLog trunk/Source/WebCore/layout/integration/LayoutIntegrationInlineContentBuilder.cpp Diff Modified: trunk/Source/WebCore/ChangeLog (273887 => 273888) --- trunk/Source/WebCore/ChangeLog 2021-03-04 14:22:46 UTC (rev 273887) +++ trunk/Source/WebCore/ChangeLog 2021-03-04 14:23:01 UTC (rev 273888) @@ -1,5 +1,15 @@ 2021-03-04 Zalan Bujtas +[LFC][IFC] InlineContentBuilder::createDisplayNonRootInlineBoxes should check if the line has inline boxes at all +https://bugs.webkit.org/show_bug.cgi?id=222707 + +Reviewed by Antti Koivisto. + +* layout/integration/LayoutIntegrationInlineContentBuilder.cpp: +(WebCore::LayoutIntegration::InlineContentBuilder::createDisplayNonRootInlineBoxes const): + +2021-03-04 Zalan Bujtas + [LFC][IFC] Make LineBox::m_inlineLevelBoxRectMap a non-root inline level box map https://bugs.webkit.org/show_bug.cgi?id=222704 Modified: trunk/Source/WebCore/layout/integration/LayoutIntegrationInlineContentBuilder.cpp (273887 => 273888) --- trunk/Source/WebCore/layout/integration/LayoutIntegrationInlineContentBuilder.cpp 2021-03-04 14:22:46 UTC (rev 273887) +++ trunk/Source/WebCore/layout/integration/LayoutIntegrationInlineContentBuilder.cpp 2021-03-04 14:23:01 UTC (rev 273888) @@ -369,8 +369,10 @@ auto inlineQuirks = inlineFormattingContext.quirks(); for (size_t lineIndex = 0; lineIndex < inlineFormattingState.lineBoxes().size(); ++lineIndex) { auto& lineBox = inlineFormattingState.lineBoxes()[lineIndex]; +if (!lineBox.hasInlineBox()) +continue; + auto& lineBoxLogicalRect = lineBox.logicalRect(); - for (auto& inlineLevelBox : lineBox.nonRootInlineLevelBoxes()) { if (!inlineLevelBox->isInlineBox()) continue; ___ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes
[webkit-changes] [273887] trunk/Source/WebCore
Title: [273887] trunk/Source/WebCore Revision 273887 Author za...@apple.com Date 2021-03-04 06:22:46 -0800 (Thu, 04 Mar 2021) Log Message [LFC][IFC] Make LineBox::m_inlineLevelBoxRectMap a non-root inline level box map https://bugs.webkit.org/show_bug.cgi?id=222704 Reviewed by Antti Koivisto. Let's not trigger hash lookup for the most common inlineLevelBoxForLayoutBox() call (when we lookup the root inline box as the parent of a text content). * layout/inlineformatting/InlineLineBox.cpp: (WebCore::Layout::LineBox::addInlineLevelBox): * layout/inlineformatting/InlineLineBox.h: (WebCore::Layout::LineBox::inlineLevelBoxForLayoutBox const): (WebCore::Layout::LineBox::inlineLevelBoxForLayoutBox): Modified Paths trunk/Source/WebCore/ChangeLog trunk/Source/WebCore/layout/inlineformatting/InlineLineBox.cpp trunk/Source/WebCore/layout/inlineformatting/InlineLineBox.h Diff Modified: trunk/Source/WebCore/ChangeLog (273886 => 273887) --- trunk/Source/WebCore/ChangeLog 2021-03-04 13:53:24 UTC (rev 273886) +++ trunk/Source/WebCore/ChangeLog 2021-03-04 14:22:46 UTC (rev 273887) @@ -1,3 +1,19 @@ +2021-03-04 Zalan Bujtas + +[LFC][IFC] Make LineBox::m_inlineLevelBoxRectMap a non-root inline level box map +https://bugs.webkit.org/show_bug.cgi?id=222704 + +Reviewed by Antti Koivisto. + +Let's not trigger hash lookup for the most common inlineLevelBoxForLayoutBox() call (when we lookup the root inline box +as the parent of a text content). + +* layout/inlineformatting/InlineLineBox.cpp: +(WebCore::Layout::LineBox::addInlineLevelBox): +* layout/inlineformatting/InlineLineBox.h: +(WebCore::Layout::LineBox::inlineLevelBoxForLayoutBox const): +(WebCore::Layout::LineBox::inlineLevelBoxForLayoutBox): + 2021-03-04 Martin Robinson [Nicosia] Move shared scrolling animation code into a ScrollingTreeScrollingNodeDelegate Modified: trunk/Source/WebCore/layout/inlineformatting/InlineLineBox.cpp (273886 => 273887) --- trunk/Source/WebCore/layout/inlineformatting/InlineLineBox.cpp 2021-03-04 13:53:24 UTC (rev 273886) +++ trunk/Source/WebCore/layout/inlineformatting/InlineLineBox.cpp 2021-03-04 14:22:46 UTC (rev 273887) @@ -89,14 +89,13 @@ , m_rootInlineBox(makeUniqueRef(rootLayoutBox, contentLogicalLeft, InlineLayoutSize { contentLogicalWidth, { } }, InlineLevelBox::Type::RootInlineBox)) { m_nonRootInlineLevelBoxList.reserveInitialCapacity(numberOfRuns); -m_inlineLevelBoxRectMap.reserveInitialCapacity(numberOfRuns); -m_inlineLevelBoxRectMap.set(, _rootInlineBox); +m_nonRootInlineLevelBoxMap.reserveInitialCapacity(numberOfRuns); } void LineBox::addInlineLevelBox(std::unique_ptr&& inlineLevelBox) { m_boxTypes.add(inlineLevelBox->type()); -m_inlineLevelBoxRectMap.set(>layoutBox(), inlineLevelBox.get()); +m_nonRootInlineLevelBoxMap.set(>layoutBox(), inlineLevelBox.get()); m_nonRootInlineLevelBoxList.append(WTFMove(inlineLevelBox)); } Modified: trunk/Source/WebCore/layout/inlineformatting/InlineLineBox.h (273886 => 273887) --- trunk/Source/WebCore/layout/inlineformatting/InlineLineBox.h 2021-03-04 13:53:24 UTC (rev 273886) +++ trunk/Source/WebCore/layout/inlineformatting/InlineLineBox.h 2021-03-04 14:22:46 UTC (rev 273887) @@ -149,7 +149,7 @@ bool hasNonInlineBox() const { return m_boxTypes.containsAny({ InlineLevelBox::Type::AtomicInlineLevelBox, InlineLevelBox::Type::LineBreakBox, InlineLevelBox::Type::GenericInlineLevelBox }); } bool hasAtomicInlineLevelBox() const { return m_boxTypes.contains(InlineLevelBox::Type::AtomicInlineLevelBox); } -const InlineLevelBox& inlineLevelBoxForLayoutBox(const Box& layoutBox) const { return *m_inlineLevelBoxRectMap.get(); } +const InlineLevelBox& inlineLevelBoxForLayoutBox(const Box& layoutBox) const { return const_cast(*this).inlineLevelBoxForLayoutBox(layoutBox); } InlineRect logicalRectForTextRun(const Line::Run&) const; InlineRect logicalRectForLineBreakBox(const Box&) const; @@ -172,7 +172,7 @@ InlineLevelBox& rootInlineBox() { return m_rootInlineBox; } -InlineLevelBox& inlineLevelBoxForLayoutBox(const Box& layoutBox) { return *m_inlineLevelBoxRectMap.get(); } +InlineLevelBox& inlineLevelBoxForLayoutBox(const Box& layoutBox) { return == _rootInlineBox->layoutBox() ? m_rootInlineBox.get() : *m_nonRootInlineLevelBoxMap.get(); } InlineRect logicalRectForInlineLevelBox(const Box& layoutBox) const; void setHasContent(bool hasContent) { m_hasContent = hasContent; } @@ -186,7 +186,7 @@ UniqueRef m_rootInlineBox; InlineLevelBoxList m_nonRootInlineLevelBoxList; -HashMap m_inlineLevelBoxRectMap; +HashMap m_nonRootInlineLevelBoxMap; }; inline std::unique_ptr LineBox::InlineLevelBox::createAtomicInlineLevelBox(const Box& layoutBox, InlineLayoutUnit logicalLeft, InlineLayoutSize logicalSize) ___ webkit-changes
[webkit-changes] [273886] trunk
Title: [273886] trunk Revision 273886 Author commit-qu...@webkit.org Date 2021-03-04 05:53:24 -0800 (Thu, 04 Mar 2021) Log Message Null check platformData when decoding https://bugs.webkit.org/show_bug.cgi?id=221442 Patch by Rob Buis on 2021-03-04 Reviewed by Ryosuke Niwa. Source/WebKit: Null check platformData when decoding. Test: ipc/pasteboard-write-custom-data.html * Shared/WebCoreArgumentCoders.cpp: (IPC::ArgumentCoder::decode): LayoutTests: Add test for this. * ipc/pasteboard-write-custom-data-expected.txt: Added. * ipc/pasteboard-write-custom-data.html: Added. Modified Paths trunk/LayoutTests/ChangeLog trunk/Source/WebKit/ChangeLog trunk/Source/WebKit/Shared/WebCoreArgumentCoders.cpp Added Paths trunk/LayoutTests/ipc/pasteboard-write-custom-data-expected.txt trunk/LayoutTests/ipc/pasteboard-write-custom-data.html Diff Modified: trunk/LayoutTests/ChangeLog (273885 => 273886) --- trunk/LayoutTests/ChangeLog 2021-03-04 13:22:14 UTC (rev 273885) +++ trunk/LayoutTests/ChangeLog 2021-03-04 13:53:24 UTC (rev 273886) @@ -1,3 +1,15 @@ +2021-03-04 Rob Buis + +Null check platformData when decoding +https://bugs.webkit.org/show_bug.cgi?id=221442 + +Reviewed by Ryosuke Niwa. + +Add test for this. + +* ipc/pasteboard-write-custom-data-expected.txt: Added. +* ipc/pasteboard-write-custom-data.html: Added. + 2021-03-04 Antoine Quint initial value for border-image-outset should be 0 Added: trunk/LayoutTests/ipc/pasteboard-write-custom-data-expected.txt (0 => 273886) --- trunk/LayoutTests/ipc/pasteboard-write-custom-data-expected.txt (rev 0) +++ trunk/LayoutTests/ipc/pasteboard-write-custom-data-expected.txt 2021-03-04 13:53:24 UTC (rev 273886) @@ -0,0 +1 @@ +Test passes if it does not crash. Added: trunk/LayoutTests/ipc/pasteboard-write-custom-data.html (0 => 273886) --- trunk/LayoutTests/ipc/pasteboard-write-custom-data.html (rev 0) +++ trunk/LayoutTests/ipc/pasteboard-write-custom-data.html 2021-03-04 13:53:24 UTC (rev 273886) @@ -0,0 +1,11 @@ + + +Test passes if it does not crash. + +if (window.testRunner) +testRunner.dumpAsText(); +if (window.IPC) { +buf = new Uint8Array([0x0,0x0,0x0,0x0,0x9,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x9,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x9,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x9,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x9,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x9,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x9,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x9,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x9,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x9,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x9,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x9,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x9,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x9,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x9,0x0,0x0,0x0,0xff,0xff,0xff,0xff,0x9,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x9,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x9,0x0,0x10,0x0,0x0,0x0,0x0,0x0,0xb,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x9,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x9,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x9,0x0,0x0,0x2,0x0,0x0,0x0,0x0,0x9,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x9,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x9,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x9,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x9,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x9,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x9,]) ; +IPC.sendMessage('UI', IPC.webPageProxyID, IPC.messages.WebPasteboardProxy_WriteCustomData.name, [buf]); +} + Modified: trunk/Source/WebKit/ChangeLog (273885 => 273886) --- trunk/Source/WebKit/ChangeLog 2021-03-04 13:22:14 UTC (rev 273885) +++ trunk/Source/WebKit/ChangeLog 2021-03-04 13:53:24 UTC (rev 273886) @@ -1,3 +1,17 @@ +2021-03-04 Rob Buis + +Null check platformData when decoding +https://bugs.webkit.org/show_bug.cgi?id=221442 + +Reviewed by Ryosuke Niwa. + +Null check platformData when decoding. + +Test: ipc/pasteboard-write-custom-data.html + +* Shared/WebCoreArgumentCoders.cpp: +(IPC::ArgumentCoder::decode): + 2021-03-04 Kimmo Kinnunen IPC stream feature should use client/server naming instead of sender/receiver Modified: trunk/Source/WebKit/Shared/WebCoreArgumentCoders.cpp (273885 => 273886) --- trunk/Source/WebKit/Shared/WebCoreArgumentCoders.cpp 2021-03-04 13:22:14 UTC (rev 273885) +++ trunk/Source/WebKit/Shared/WebCoreArgumentCoders.cpp 2021-03-04 13:53:24 UTC (rev 273886) @@ -1571,7 +1571,7 @@ if (hasBuffer) { RefPtr value; -if (!decodeSharedBuffer(decoder, value)) +if (!decodeSharedBuffer(decoder, value) || !value) return false; data.platformData = { value.releaseNonNull() }; } ___ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes
[webkit-changes] [273885] trunk/Source/WebCore
Title: [273885] trunk/Source/WebCore Revision 273885 Author commit-qu...@webkit.org Date 2021-03-04 05:22:14 -0800 (Thu, 04 Mar 2021) Log Message [Nicosia] Move shared scrolling animation code into a ScrollingTreeScrollingNodeDelegate https://bugs.webkit.org/show_bug.cgi?id=222714 Patch by Martin Robinson on 2021-03-04 Reviewed by Žan Doberšek. No new tests. This should not change behavior. * PlatformMac.cmake: Remove delegate parent class from Mac-specific list. * PlatformPlayStation.cmake: Added new class to source list. * Sources.txt: Added delegate parent class to shared source list. * SourcesGTK.txt: Added new class. * SourcesWPE.txt: Ditto. * WebCore.xcodeproj/project.pbxproj: Remove source file from project, since it is now in Sources.txt. * page/scrolling/ScrollingTreeScrollingNodeDelegate.cpp: Changed import to include. * page/scrolling/nicosia/ScrollingTreeFrameScrollingNodeNicosia.cpp: Moved shared code to ScrollingTreeScrollingNodeDelegate. * page/scrolling/nicosia/ScrollingTreeFrameScrollingNodeNicosia.h: Ditto. * page/scrolling/nicosia/ScrollingTreeOverflowScrollingNodeNicosia.cpp: Ditto. * page/scrolling/nicosia/ScrollingTreeOverflowScrollingNodeNicosia.h: Dito. * page/scrolling/nicosia/ScrollingTreeScrollingNodeDelegateNicosia.cpp: Added shared code from ScrollingTreeFrameScrollingNodeNicosia and ScrollingTreeOverflowScrollingNodeNicosia * page/scrolling/nicosia/ScrollingTreeScrollingNodeDelegateNicosia.h: Added. Modified Paths trunk/Source/WebCore/ChangeLog trunk/Source/WebCore/PlatformMac.cmake trunk/Source/WebCore/PlatformPlayStation.cmake trunk/Source/WebCore/Sources.txt trunk/Source/WebCore/SourcesGTK.txt trunk/Source/WebCore/SourcesWPE.txt trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj trunk/Source/WebCore/page/scrolling/ScrollingTreeScrollingNodeDelegate.cpp trunk/Source/WebCore/page/scrolling/nicosia/ScrollingTreeFrameScrollingNodeNicosia.cpp trunk/Source/WebCore/page/scrolling/nicosia/ScrollingTreeFrameScrollingNodeNicosia.h trunk/Source/WebCore/page/scrolling/nicosia/ScrollingTreeOverflowScrollingNodeNicosia.cpp trunk/Source/WebCore/page/scrolling/nicosia/ScrollingTreeOverflowScrollingNodeNicosia.h Added Paths trunk/Source/WebCore/page/scrolling/nicosia/ScrollingTreeScrollingNodeDelegateNicosia.cpp trunk/Source/WebCore/page/scrolling/nicosia/ScrollingTreeScrollingNodeDelegateNicosia.h Diff Modified: trunk/Source/WebCore/ChangeLog (273884 => 273885) --- trunk/Source/WebCore/ChangeLog 2021-03-04 13:18:16 UTC (rev 273884) +++ trunk/Source/WebCore/ChangeLog 2021-03-04 13:22:14 UTC (rev 273885) @@ -1,3 +1,29 @@ +2021-03-04 Martin Robinson + +[Nicosia] Move shared scrolling animation code into a ScrollingTreeScrollingNodeDelegate +https://bugs.webkit.org/show_bug.cgi?id=222714 + +Reviewed by Žan Doberšek. + +No new tests. This should not change behavior. + +* PlatformMac.cmake: Remove delegate parent class from Mac-specific list. +* PlatformPlayStation.cmake: Added new class to source list. +* Sources.txt: Added delegate parent class to shared source list. +* SourcesGTK.txt: Added new class. +* SourcesWPE.txt: Ditto. +* WebCore.xcodeproj/project.pbxproj: Remove source file from project, since +it is now in Sources.txt. +* page/scrolling/ScrollingTreeScrollingNodeDelegate.cpp: Changed import to include. +* page/scrolling/nicosia/ScrollingTreeFrameScrollingNodeNicosia.cpp: +Moved shared code to ScrollingTreeScrollingNodeDelegate. +* page/scrolling/nicosia/ScrollingTreeFrameScrollingNodeNicosia.h: Ditto. +* page/scrolling/nicosia/ScrollingTreeOverflowScrollingNodeNicosia.cpp: Ditto. +* page/scrolling/nicosia/ScrollingTreeOverflowScrollingNodeNicosia.h: Dito. +* page/scrolling/nicosia/ScrollingTreeScrollingNodeDelegateNicosia.cpp: Added +shared code from ScrollingTreeFrameScrollingNodeNicosia and ScrollingTreeOverflowScrollingNodeNicosia +* page/scrolling/nicosia/ScrollingTreeScrollingNodeDelegateNicosia.h: Added. + 2021-03-04 Philippe Normand REGRESSION(r273644 ): [GStreamer] new webrtc failures Modified: trunk/Source/WebCore/PlatformMac.cmake (273884 => 273885) --- trunk/Source/WebCore/PlatformMac.cmake 2021-03-04 13:18:16 UTC (rev 273884) +++ trunk/Source/WebCore/PlatformMac.cmake 2021-03-04 13:22:14 UTC (rev 273885) @@ -172,8 +172,6 @@ page/mac/TextIndicatorWindow.mm page/mac/WheelEventDeltaFilterMac.mm -page/scrolling/ScrollingTreeScrollingNodeDelegate.cpp - page/scrolling/mac/ScrollingCoordinatorMac.mm page/scrolling/mac/ScrollingMomentumCalculatorMac.mm page/scrolling/mac/ScrollingTreeFrameScrollingNodeMac.mm Modified: trunk/Source/WebCore/PlatformPlayStation.cmake (273884 => 273885) --- trunk/Source/WebCore/PlatformPlayStation.cmake 2021-03-04 13:18:16 UTC (rev 273884) +++ trunk/Source/WebCore/PlatformPlayStation.cmake 2021-03-04 13:22:14
[webkit-changes] [273884] trunk/Source/WebCore
Title: [273884] trunk/Source/WebCore Revision 273884 Author commit-qu...@webkit.org Date 2021-03-04 05:18:16 -0800 (Thu, 04 Mar 2021) Log Message REGRESSION(r273644 ): [GStreamer] new webrtc failures https://bugs.webkit.org/show_bug.cgi?id=222649 Patch by Philippe Normand on 2021-03-04 Reviewed by Xabier Rodriguez-Calvar. Since the mediastreamsrc element maintains static source pads, it now needs to remove pads left unused resulting from a track removal. * platform/mediastream/gstreamer/GStreamerMediaStreamSource.cpp: (webkitMediaStreamSrcRemovePad): (webkitMediaStreamSrcRemoveTrackByType): Modified Paths trunk/Source/WebCore/ChangeLog trunk/Source/WebCore/platform/mediastream/gstreamer/GStreamerMediaStreamSource.cpp Diff Modified: trunk/Source/WebCore/ChangeLog (273883 => 273884) --- trunk/Source/WebCore/ChangeLog 2021-03-04 13:01:00 UTC (rev 273883) +++ trunk/Source/WebCore/ChangeLog 2021-03-04 13:18:16 UTC (rev 273884) @@ -1,3 +1,17 @@ +2021-03-04 Philippe Normand + +REGRESSION(r273644 ): [GStreamer] new webrtc failures +https://bugs.webkit.org/show_bug.cgi?id=222649 + +Reviewed by Xabier Rodriguez-Calvar. + +Since the mediastreamsrc element maintains static source pads, it now needs to remove pads +left unused resulting from a track removal. + +* platform/mediastream/gstreamer/GStreamerMediaStreamSource.cpp: +(webkitMediaStreamSrcRemovePad): +(webkitMediaStreamSrcRemoveTrackByType): + 2021-03-04 Antoine Quint initial value for border-image-outset should be 0 Modified: trunk/Source/WebCore/platform/mediastream/gstreamer/GStreamerMediaStreamSource.cpp (273883 => 273884) --- trunk/Source/WebCore/platform/mediastream/gstreamer/GStreamerMediaStreamSource.cpp 2021-03-04 13:01:00 UTC (rev 273883) +++ trunk/Source/WebCore/platform/mediastream/gstreamer/GStreamerMediaStreamSource.cpp 2021-03-04 13:18:16 UTC (rev 273884) @@ -46,6 +46,7 @@ static void webkitMediaStreamSrcRemoveTrackByType(WebKitMediaStreamSrc*, RealtimeMediaSource::Type); static void webkitMediaStreamSrcRemoveTrackObserver(WebKitMediaStreamSrc*, MediaStreamTrackPrivate&); static void webkitMediaStreamSrcPostStreamCollection(WebKitMediaStreamSrc*); +static void webkitMediaStreamSrcRemovePad(WebKitMediaStreamSrc*, const char* padName); static GstStaticPadTemplate videoSrcTemplate = GST_STATIC_PAD_TEMPLATE("video_src", GST_PAD_SRC, GST_PAD_SOMETIMES, GST_STATIC_CAPS("video/x-raw;video/x-h264;video/x-vp8")); @@ -184,7 +185,8 @@ class InternalSource { WTF_MAKE_FAST_ALLOCATED; public: -InternalSource(bool isCaptureTrack) +InternalSource(bool isCaptureTrack, RealtimeMediaSource::Type type) +: m_type(type) { m_src = gst_element_factory_make("appsrc", nullptr); RELEASE_ASSERT_WITH_MESSAGE(GST_IS_APP_SRC(m_src.get()), "GStreamer appsrc element not found. Please make sure to install gst-plugins-base"); @@ -210,6 +212,9 @@ gst_bin_remove(GST_BIN_CAST(parent.get()), m_src.get()); gst_element_set_locked_state(m_src.get(), false); GST_STATE_UNLOCK(GST_ELEMENT_CAST(parent.get())); + +const char* padName = m_type == RealtimeMediaSource::Type::Video ? "video_src" : "audio_src"; +webkitMediaStreamSrcRemovePad(WEBKIT_MEDIA_STREAM_SRC(parent.get()), padName); } } @@ -230,15 +235,12 @@ gst_pad_set_offset(pad.get(), -m_firstBufferPts); } -if (!m_isVideo) -m_isVideo = doCapsHaveType(caps, "video"); - -if (*m_isVideo && drop) +if (m_type == RealtimeMediaSource::Type::Video && drop) drop = doCapsHaveType(caps, "video/x-raw") || GST_BUFFER_FLAG_IS_SET(buffer, GST_BUFFER_FLAG_DELTA_UNIT); if (drop) { m_needsDiscont = true; -GST_INFO_OBJECT(m_src.get(), "%s queue full already... not pushing", *m_isVideo ? "Video" : "Audio"); +GST_INFO_OBJECT(m_src.get(), "%s queue full already... not pushing", m_type == RealtimeMediaSource::Type::Video ? "Video" : "Audio"); return; } @@ -251,11 +253,11 @@ } private: +RealtimeMediaSource::Type m_type { RealtimeMediaSource::Type::None }; GRefPtr m_src; GstClockTime m_firstBufferPts { GST_CLOCK_TIME_NONE }; bool m_enoughData { false }; bool m_needsDiscont { false }; -Optional m_isVideo; }; struct _WebKitMediaStreamSrcPrivate { @@ -459,6 +461,15 @@ gst_pad_push_event(target, gst_event_new_tag(tags.leakRef())); } +static void webkitMediaStreamSrcRemovePad(WebKitMediaStreamSrc* self, const char* padName) +{ +auto pad = adoptGRef(gst_element_get_static_pad(GST_ELEMENT_CAST(self), padName)); +auto proxyPad = adoptGRef(GST_PAD(gst_proxy_pad_get_internal(GST_PROXY_PAD(pad.get(); +gst_flow_combiner_remove_pad(self->priv->flowCombiner.get(), proxyPad.get()); +gst_pad_set_active(pad.get(), FALSE); +
[webkit-changes] [273883] trunk/Tools
Title: [273883] trunk/Tools Revision 273883 Author commit-qu...@webkit.org Date 2021-03-04 05:01:00 -0800 (Thu, 04 Mar 2021) Log Message Detect unrecognized options in run-_javascript_core-tests https://bugs.webkit.org/show_bug.cgi?id=221186 Patch by Angelos Oikonomopoulos on 2021-03-04 Reviewed by Keith Miller. run-_javascript_core-tests saves unrecognized arguments to pass through to build-jsc even when --no-build is used. However, when we're not building, nothing will ever use or look at the extra arguments. This means that those arguments are silently eaten up and, consequently, typos in option names can go undetected. Change the script to fail when --no-build has been passed and there are unrecognized options. * Scripts/run-_javascript_core-tests: Modified Paths trunk/Tools/ChangeLog trunk/Tools/Scripts/run-_javascript_core-tests Diff Modified: trunk/Tools/ChangeLog (273882 => 273883) --- trunk/Tools/ChangeLog 2021-03-04 11:26:43 UTC (rev 273882) +++ trunk/Tools/ChangeLog 2021-03-04 13:01:00 UTC (rev 273883) @@ -1,3 +1,21 @@ +2021-03-04 Angelos Oikonomopoulos + +Detect unrecognized options in run-_javascript_core-tests +https://bugs.webkit.org/show_bug.cgi?id=221186 + +Reviewed by Keith Miller. + +run-_javascript_core-tests saves unrecognized arguments to pass +through to build-jsc even when --no-build is used. However, when +we're not building, nothing will ever use or look at the extra +arguments. This means that those arguments are silently eaten +up and, consequently, typos in option names can go undetected. + +Change the script to fail when --no-build has been passed and +there are unrecognized options. + +* Scripts/run-_javascript_core-tests: + 2021-03-04 Kimmo Kinnunen Adding new test conditions for WebGL should be simpler Modified: trunk/Tools/Scripts/run-_javascript_core-tests (273882 => 273883) --- trunk/Tools/Scripts/run-_javascript_core-tests 2021-03-04 11:26:43 UTC (rev 273882) +++ trunk/Tools/Scripts/run-_javascript_core-tests 2021-03-04 13:01:00 UTC (rev 273883) @@ -484,9 +484,23 @@ $runJSCStress = enableTestOrNot($runJSCStress); $runMozillaTests = enableTestOrNot($runMozillaTests); -# Assume any arguments left over from GetOptions are assumed to be build arguments -my @buildArgs = @ARGV; +my @buildArgs; +if ($buildJSC) { +# Assume any arguments left over from GetOptions are to be passed as build arguments. +@buildArgs = @ARGV; +} elsif (scalar(@ARGV) > 0) { +foreach (@ARGV) { +my $arg = $_; +if ($arg =~ /^-.*/) { +print STDERR "Unrecognized option `$arg'\n"; +} else { +print STDERR "Stray anonymous argument `$arg'\n"; +} +} +exit 2; +} + if ($showHelp) { print STDERR $usage; exit 1; ___ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes
[webkit-changes] [273882] trunk
Title: [273882] trunk Revision 273882 Author grao...@webkit.org Date 2021-03-04 03:26:43 -0800 (Thu, 04 Mar 2021) Log Message initial value for border-image-outset should be 0 https://bugs.webkit.org/show_bug.cgi?id=222721 Reviewed by Antti Koivisto. LayoutTests/imported/w3c: Pass one extra WPT test. * web-platform-tests/css/css-backgrounds/inheritance.sub-expected.txt: * web-platform-tests/css/cssom/cssstyledeclaration-csstext-expected.txt: Source/WebCore: The initial value for border-image-outset was a Length with Fixed type (0px) instead of Relative type (0). * rendering/style/NinePieceImage.h: * style/StyleBuilderCustom.h: (WebCore::Style::ApplyPropertyBorderImageModifier::applyInitialValue): LayoutTests: Update some tests to make the correct assumption on the border-image-ouset initial value. * css3/calc/reflection-computed-style-expected.txt: * fast/css/getComputedStyle/computed-style-border-image-expected.txt: * fast/css/getComputedStyle/computed-style-border-image.html: * fast/css/getComputedStyle/computed-style-with-zoom-expected.txt: * fast/css/getComputedStyle/getComputedStyle-border-image-expected.txt: * fast/reflections/reflection-computed-style-expected.txt: * platform/ios-wk2/imported/w3c/web-platform-tests/css/cssom/cssstyledeclaration-csstext-expected.txt: * platform/ios/fast/css/getComputedStyle/computed-style-expected.txt: * platform/ios/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/ios/svg/css/getComputedStyle-basic-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/mac/svg/css/getComputedStyle-basic-expected.txt: Modified Paths trunk/LayoutTests/ChangeLog trunk/LayoutTests/css3/calc/reflection-computed-style-expected.txt trunk/LayoutTests/fast/css/getComputedStyle/computed-style-border-image-expected.txt trunk/LayoutTests/fast/css/getComputedStyle/computed-style-border-image.html trunk/LayoutTests/fast/css/getComputedStyle/computed-style-with-zoom-expected.txt trunk/LayoutTests/fast/css/getComputedStyle/getComputedStyle-border-image-expected.txt trunk/LayoutTests/fast/reflections/reflection-computed-style-expected.txt trunk/LayoutTests/imported/w3c/ChangeLog trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-backgrounds/inheritance.sub-expected.txt trunk/LayoutTests/imported/w3c/web-platform-tests/css/cssom/cssstyledeclaration-csstext-expected.txt trunk/LayoutTests/platform/ios/fast/css/getComputedStyle/computed-style-expected.txt trunk/LayoutTests/platform/ios/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt trunk/LayoutTests/platform/ios/svg/css/getComputedStyle-basic-expected.txt trunk/LayoutTests/platform/ios-wk2/imported/w3c/web-platform-tests/css/cssom/cssstyledeclaration-csstext-expected.txt trunk/LayoutTests/platform/mac/fast/css/getComputedStyle/computed-style-expected.txt trunk/LayoutTests/platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt trunk/LayoutTests/platform/mac/svg/css/getComputedStyle-basic-expected.txt trunk/Source/WebCore/ChangeLog trunk/Source/WebCore/rendering/style/NinePieceImage.h trunk/Source/WebCore/style/StyleBuilderCustom.h Diff Modified: trunk/LayoutTests/ChangeLog (273881 => 273882) --- trunk/LayoutTests/ChangeLog 2021-03-04 09:39:33 UTC (rev 273881) +++ trunk/LayoutTests/ChangeLog 2021-03-04 11:26:43 UTC (rev 273882) @@ -1,3 +1,26 @@ +2021-03-04 Antoine Quint + +initial value for border-image-outset should be 0 +https://bugs.webkit.org/show_bug.cgi?id=222721 + +Reviewed by Antti Koivisto. + +Update some tests to make the correct assumption on the border-image-ouset initial value. + +* css3/calc/reflection-computed-style-expected.txt: +* fast/css/getComputedStyle/computed-style-border-image-expected.txt: +* fast/css/getComputedStyle/computed-style-border-image.html: +* fast/css/getComputedStyle/computed-style-with-zoom-expected.txt: +* fast/css/getComputedStyle/getComputedStyle-border-image-expected.txt: +* fast/reflections/reflection-computed-style-expected.txt: +* platform/ios-wk2/imported/w3c/web-platform-tests/css/cssom/cssstyledeclaration-csstext-expected.txt: +* platform/ios/fast/css/getComputedStyle/computed-style-expected.txt: +* platform/ios/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: +* platform/ios/svg/css/getComputedStyle-basic-expected.txt: +* platform/mac/fast/css/getComputedStyle/computed-style-expected.txt: +* platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: +* platform/mac/svg/css/getComputedStyle-basic-expected.txt: + 2021-03-04 Youenn Fablet FileReader::enqueueTask should validate that its context is not stopped before executing the task Modified:
[webkit-changes] [273881] trunk
Title: [273881] trunk Revision 273881 Author you...@apple.com Date 2021-03-04 01:39:33 -0800 (Thu, 04 Mar 2021) Log Message FileReader::enqueueTask should validate that its context is not stopped before executing the task https://bugs.webkit.org/show_bug.cgi?id=222472 Source/WebCore: Reviewed by Alex Christensen. The event loop might run tasks even though active dom objects are stopped. Protect from this by adding a check since m_state checks are not sufficient. A follow-up patch should probably try to neuter FileReader if it is stopped. Covered by http/wpt/filereader/filereader-stop.html. * fileapi/FileReader.cpp: (WebCore::FileReader::fireEvent): (WebCore::FileReader::enqueueTask): LayoutTests: Reviewed by Alex Christensen. * http/wpt/filereader/filereader-stop.html: Added. Modified Paths trunk/LayoutTests/ChangeLog trunk/Source/WebCore/ChangeLog trunk/Source/WebCore/fileapi/FileReader.cpp Added Paths trunk/LayoutTests/http/wpt/filereader/ trunk/LayoutTests/http/wpt/filereader/filereader-stop-expected.txt trunk/LayoutTests/http/wpt/filereader/filereader-stop.html Diff Modified: trunk/LayoutTests/ChangeLog (273880 => 273881) --- trunk/LayoutTests/ChangeLog 2021-03-04 09:39:03 UTC (rev 273880) +++ trunk/LayoutTests/ChangeLog 2021-03-04 09:39:33 UTC (rev 273881) @@ -1,5 +1,15 @@ 2021-03-04 Youenn Fablet +FileReader::enqueueTask should validate that its context is not stopped before executing the task +https://bugs.webkit.org/show_bug.cgi?id=222472 + + +Reviewed by Alex Christensen. + +* http/wpt/filereader/filereader-stop.html: Added. + +2021-03-04 Youenn Fablet + Can not read blobs in sandboxed iframes https://bugs.webkit.org/show_bug.cgi?id=170075 Added: trunk/LayoutTests/http/wpt/filereader/filereader-stop-expected.txt (0 => 273881) --- trunk/LayoutTests/http/wpt/filereader/filereader-stop-expected.txt (rev 0) +++ trunk/LayoutTests/http/wpt/filereader/filereader-stop-expected.txt 2021-03-04 09:39:33 UTC (rev 273881) @@ -0,0 +1,3 @@ + +PASS Make sure events are not fired for stopped readers + Added: trunk/LayoutTests/http/wpt/filereader/filereader-stop.html (0 => 273881) --- trunk/LayoutTests/http/wpt/filereader/filereader-stop.html (rev 0) +++ trunk/LayoutTests/http/wpt/filereader/filereader-stop.html 2021-03-04 09:39:33 UTC (rev 273881) @@ -0,0 +1,39 @@ + + + + +Events in stopped file readers + + +