Title: [270844] trunk/Source/WebKit
- Revision
- 270844
- Author
- [email protected]
- Date
- 2020-12-15 09:27:16 -0800 (Tue, 15 Dec 2020)
Log Message
Fix alertMessageText regression from https://trac.webkit.org/changeset/269918
https://bugs.webkit.org/show_bug.cgi?id=219891
Reviewed by Eric Carlson.
alertMessageText was checking twice for audio while it should check once for audio and once for video.
* UIProcess/Cocoa/MediaPermissionUtilities.mm:
(WebKit::alertMessageText):
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (270843 => 270844)
--- trunk/Source/WebKit/ChangeLog 2020-12-15 17:12:31 UTC (rev 270843)
+++ trunk/Source/WebKit/ChangeLog 2020-12-15 17:27:16 UTC (rev 270844)
@@ -1,3 +1,15 @@
+2020-12-15 Youenn Fablet <[email protected]>
+
+ Fix alertMessageText regression from https://trac.webkit.org/changeset/269918
+ https://bugs.webkit.org/show_bug.cgi?id=219891
+
+ Reviewed by Eric Carlson.
+
+ alertMessageText was checking twice for audio while it should check once for audio and once for video.
+
+ * UIProcess/Cocoa/MediaPermissionUtilities.mm:
+ (WebKit::alertMessageText):
+
2020-12-15 Ryan Hostetler <[email protected]>
"make clean" fails on EmptyDSTROOT target
Modified: trunk/Source/WebKit/UIProcess/Cocoa/MediaPermissionUtilities.mm (270843 => 270844)
--- trunk/Source/WebKit/UIProcess/Cocoa/MediaPermissionUtilities.mm 2020-12-15 17:12:31 UTC (rev 270843)
+++ trunk/Source/WebKit/UIProcess/Cocoa/MediaPermissionUtilities.mm 2020-12-15 17:27:16 UTC (rev 270844)
@@ -133,7 +133,7 @@
return [NSString stringWithFormat:WEB_UI_NSSTRING(@"Allow “%@” to use your camera and microphone?", @"Message for user media prompt"), visibleDomain(origin.host())];
if (types.contains(MediaPermissionType::Audio))
return [NSString stringWithFormat:WEB_UI_NSSTRING(@"Allow “%@” to use your microphone?", @"Message for user microphone access prompt"), visibleDomain(origin.host())];
- if (types.contains(MediaPermissionType::Audio))
+ if (types.contains(MediaPermissionType::Video))
return [NSString stringWithFormat:WEB_UI_NSSTRING(@"Allow “%@” to use your camera?", @"Message for user camera access prompt"), visibleDomain(origin.host())];
return nil;
case MediaPermissionReason::SpeechRecognition:
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes