[go: up one dir, main page]

Web MIDI: Update planned schedule to deprecate insecure origin uses

The deprecation was planned to be done at m75, and rescheduled to be
at m76. And we reschedule it again to be at m77.

(cherry picked from commit b36c6fe85bb77ed64f8028f7923a8cc33af5f5ad)

Bug: 973299, 924471
Change-Id: I3fffe56e33c04e36f84afccf7b42faca523f34bc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1650550
Reviewed-by: Kent Tamura <tkent@chromium.org>
Commit-Queue: Takashi Toyoshima <toyoshim@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#668304}
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1657878
Reviewed-by: Takashi Toyoshima <toyoshim@chromium.org>
Cr-Commit-Position: refs/branch-heads/3809@{#281}
Cr-Branched-From: d82dec1a818f378c464ba307ddd9c92133eac355-refs/heads/master@{#665002}
diff --git a/third_party/blink/renderer/core/frame/deprecation.cc b/third_party/blink/renderer/core/frame/deprecation.cc
index c1aa216..f68204b 100644
--- a/third_party/blink/renderer/core/frame/deprecation.cc
+++ b/third_party/blink/renderer/core/frame/deprecation.cc
@@ -60,6 +60,7 @@
   kM74,
   kM75,
   kM76,
+  kM77,
 };
 
 // Returns estimated milestone dates as human-readable strings.
@@ -104,6 +105,8 @@
       return "M75, around June 2019";
     case kM76:
       return "M76, around July 2019";
+    case kM77:
+      return "M77, around September 2019";
   }
 
   NOTREACHED();
@@ -153,6 +156,8 @@
       return 1559620800000;  // June 4, 2019.
     case kM76:
       return 1564459200000;  // Jul 30, 2019.
+    case kM77:
+      return 1568088000000;  // Sep 10, 2019.
   }
 
   NOTREACHED();
@@ -538,23 +543,23 @@
                   MilestoneString(kM72))};
 
     case WebFeature::kNoSysexWebMIDIWithoutPermission:
-      return {"NoSysexWebMIDIWithoutPermission", kM76,
+      return {"NoSysexWebMIDIWithoutPermission", kM77,
               String::Format(
                   "Web MIDI will ask a permission to use even if the sysex is "
                   "not specified in the MIDIOptions since %s. See "
                   "https://www.chromestatus.com/feature/5138066234671104 for "
                   "more details.",
-                  MilestoneString(kM76))};
+                  MilestoneString(kM77))};
 
     case WebFeature::kNoSysexWebMIDIOnInsecureOrigin:
-      return {"NoSysexWebMIDIOnInsecureOrigin", kM76,
+      return {"NoSysexWebMIDIOnInsecureOrigin", kM77,
               String::Format(
                   "Web MIDI will be deprecated on insecure origins since %s. "
                   "You should consider switching your application to a secure "
                   "origin, such as HTTPS. See "
                   "https://www.chromestatus.com/feature/5138066234671104 for "
                   "more details.",
-                  MilestoneString(kM76))};
+                  MilestoneString(kM77))};
 
     case WebFeature::kCustomCursorIntersectsViewport:
       return {
diff --git a/third_party/blink/web_tests/webmidi/implicit-open-expected.txt b/third_party/blink/web_tests/webmidi/implicit-open-expected.txt
index 9e5e7d4..f183f1b 100644
--- a/third_party/blink/web_tests/webmidi/implicit-open-expected.txt
+++ b/third_party/blink/web_tests/webmidi/implicit-open-expected.txt
@@ -1,4 +1,4 @@
-CONSOLE WARNING: line 61: Web MIDI will ask a permission to use even if the sysex is not specified in the MIDIOptions since M76, around July 2019. See https://www.chromestatus.com/feature/5138066234671104 for more details.
+CONSOLE WARNING: line 61: Web MIDI will ask a permission to use even if the sysex is not specified in the MIDIOptions since M77, around September 2019. See https://www.chromestatus.com/feature/5138066234671104 for more details.
 Tests MIDIPort implicit open.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
diff --git a/third_party/blink/web_tests/webmidi/open-close-expected.txt b/third_party/blink/web_tests/webmidi/open-close-expected.txt
index e390f151..83aa5dc 100644
--- a/third_party/blink/web_tests/webmidi/open-close-expected.txt
+++ b/third_party/blink/web_tests/webmidi/open-close-expected.txt
@@ -1,4 +1,4 @@
-CONSOLE WARNING: line 59: Web MIDI will ask a permission to use even if the sysex is not specified in the MIDIOptions since M76, around July 2019. See https://www.chromestatus.com/feature/5138066234671104 for more details.
+CONSOLE WARNING: line 59: Web MIDI will ask a permission to use even if the sysex is not specified in the MIDIOptions since M77, around September 2019. See https://www.chromestatus.com/feature/5138066234671104 for more details.
 Tests MIDIPort.open and MIDIPort.close.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
diff --git a/third_party/blink/web_tests/webmidi/requestmidiaccess-basic-expected.txt b/third_party/blink/web_tests/webmidi/requestmidiaccess-basic-expected.txt
index 224be77..85ab7c6 100644
--- a/third_party/blink/web_tests/webmidi/requestmidiaccess-basic-expected.txt
+++ b/third_party/blink/web_tests/webmidi/requestmidiaccess-basic-expected.txt
@@ -1,4 +1,4 @@
-CONSOLE WARNING: line 12: Web MIDI will ask a permission to use even if the sysex is not specified in the MIDIOptions since M76, around July 2019. See https://www.chromestatus.com/feature/5138066234671104 for more details.
+CONSOLE WARNING: line 12: Web MIDI will ask a permission to use even if the sysex is not specified in the MIDIOptions since M77, around September 2019. See https://www.chromestatus.com/feature/5138066234671104 for more details.
 Test if requestMIDIAccess is available.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
diff --git a/third_party/blink/web_tests/webmidi/requestmidiaccess-expected.txt b/third_party/blink/web_tests/webmidi/requestmidiaccess-expected.txt
index 36e9549..124c87ff 100644
--- a/third_party/blink/web_tests/webmidi/requestmidiaccess-expected.txt
+++ b/third_party/blink/web_tests/webmidi/requestmidiaccess-expected.txt
@@ -1,4 +1,4 @@
-CONSOLE WARNING: line 164: Web MIDI will ask a permission to use even if the sysex is not specified in the MIDIOptions since M76, around July 2019. See https://www.chromestatus.com/feature/5138066234671104 for more details.
+CONSOLE WARNING: line 164: Web MIDI will ask a permission to use even if the sysex is not specified in the MIDIOptions since M77, around September 2019. See https://www.chromestatus.com/feature/5138066234671104 for more details.
 Tests navigator.requestMIDIAccess.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
diff --git a/third_party/blink/web_tests/webmidi/requestmidiaccess-fail-expected.txt b/third_party/blink/web_tests/webmidi/requestmidiaccess-fail-expected.txt
index f292f14a..b134e79 100644
--- a/third_party/blink/web_tests/webmidi/requestmidiaccess-fail-expected.txt
+++ b/third_party/blink/web_tests/webmidi/requestmidiaccess-fail-expected.txt
@@ -1,4 +1,4 @@
-CONSOLE WARNING: line 33: Web MIDI will ask a permission to use even if the sysex is not specified in the MIDIOptions since M76, around July 2019. See https://www.chromestatus.com/feature/5138066234671104 for more details.
+CONSOLE WARNING: line 33: Web MIDI will ask a permission to use even if the sysex is not specified in the MIDIOptions since M77, around September 2019. See https://www.chromestatus.com/feature/5138066234671104 for more details.
 Tests navigator.requestMIDIAccess failure.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
diff --git a/third_party/blink/web_tests/webmidi/requestmidiaccess-options-expected.txt b/third_party/blink/web_tests/webmidi/requestmidiaccess-options-expected.txt
index c357cd0..7e4f97d 100644
--- a/third_party/blink/web_tests/webmidi/requestmidiaccess-options-expected.txt
+++ b/third_party/blink/web_tests/webmidi/requestmidiaccess-options-expected.txt
@@ -1,4 +1,4 @@
-CONSOLE WARNING: line 58: Web MIDI will ask a permission to use even if the sysex is not specified in the MIDIOptions since M76, around July 2019. See https://www.chromestatus.com/feature/5138066234671104 for more details.
+CONSOLE WARNING: line 58: Web MIDI will ask a permission to use even if the sysex is not specified in the MIDIOptions since M77, around September 2019. See https://www.chromestatus.com/feature/5138066234671104 for more details.
 Test requestMIDIAccess with various options.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
diff --git a/third_party/blink/web_tests/webmidi/send-system-messages-expected.txt b/third_party/blink/web_tests/webmidi/send-system-messages-expected.txt
index 4118a95..83cdacb 100644
--- a/third_party/blink/web_tests/webmidi/send-system-messages-expected.txt
+++ b/third_party/blink/web_tests/webmidi/send-system-messages-expected.txt
@@ -1,4 +1,4 @@
-CONSOLE WARNING: line 40: Web MIDI will ask a permission to use even if the sysex is not specified in the MIDIOptions since M76, around July 2019. See https://www.chromestatus.com/feature/5138066234671104 for more details.
+CONSOLE WARNING: line 40: Web MIDI will ask a permission to use even if the sysex is not specified in the MIDIOptions since M77, around September 2019. See https://www.chromestatus.com/feature/5138066234671104 for more details.
 Test if various kinds of system messages can be validated.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".