Remove // ignore: unsafe_html.
Closes https://github.com/dart-lang/sdk/pull/50203
TEST=N/A
GitOrigin-RevId: dbdc7a784d4fabd750f305f99f138b6bc53407bf
Change-Id: Ia89f24217b4e210bb2503b624e74cf7c351ad039
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/264140
Commit-Queue: Michael Thomsen <mit@google.com>
Reviewed-by: Ben Konyi <bkonyi@google.com>
diff --git a/runtime/observatory/lib/src/elements/heap_snapshot.dart b/runtime/observatory/lib/src/elements/heap_snapshot.dart
index 0efeae0..4cfae98 100644
--- a/runtime/observatory/lib/src/elements/heap_snapshot.dart
+++ b/runtime/observatory/lib/src/elements/heap_snapshot.dart
@@ -603,7 +603,6 @@
var blob = new Blob(_snapshotA!.chunks, 'application/octet-stream');
var blobUrl = Url.createObjectUrl(blob);
var link = new AnchorElement();
- // ignore: unsafe_html
link.href = blobUrl;
var now = new DateTime.now();
link.download = 'dart-heap-${now.year}-${now.month}-${now.day}.bin';
diff --git a/runtime/observatory/lib/src/elements/process_snapshot.dart b/runtime/observatory/lib/src/elements/process_snapshot.dart
index 03b727b..e8b5e0d 100644
--- a/runtime/observatory/lib/src/elements/process_snapshot.dart
+++ b/runtime/observatory/lib/src/elements/process_snapshot.dart
@@ -298,7 +298,6 @@
var blob = new Blob([jsonEncode(_snapshotA)], 'application/json');
var blobUrl = Url.createObjectUrl(blob);
var link = new AnchorElement();
- // ignore: unsafe_html
link.href = blobUrl;
var now = new DateTime.now();
link.download = 'dart-process-${now.year}-${now.month}-${now.day}.json';
diff --git a/runtime/observatory/lib/src/elements/timeline_page.dart b/runtime/observatory/lib/src/elements/timeline_page.dart
index 7e30a2d..ff38285 100644
--- a/runtime/observatory/lib/src/elements/timeline_page.dart
+++ b/runtime/observatory/lib/src/elements/timeline_page.dart
@@ -185,7 +185,6 @@
"This VM is forwarding timeline events to Fuchsia's system tracing. See the ",
new AnchorElement()
..text = "Fuchsia Tracing Usage Guide"
- // ignore: unsafe_html
..href = "https://fuchsia.dev/fuchsia-src/development/tracing",
new SpanElement()..text = ".",
];
@@ -201,7 +200,6 @@
"This VM is forwarding timeline events to Android's systrace. See the ",
new AnchorElement()
..text = "systrace usage guide"
- // ignore: unsafe_html
..href =
"https://developer.android.com/studio/command-line/systrace",
new SpanElement()..text = ".",
@@ -219,7 +217,6 @@
"To track these events, open 'Instruments' and add the 'os_signpost' Filter. See the ",
new AnchorElement()
..text = "Instruments Usage Guide"
- // ignore: unsafe_html
..href = "https://help.apple.com/instruments",
new SpanElement()..text = ".",
];
diff --git a/runtime/observatory_2/lib/src/elements/heap_snapshot.dart b/runtime/observatory_2/lib/src/elements/heap_snapshot.dart
index 6aa9916..f5235ab 100644
--- a/runtime/observatory_2/lib/src/elements/heap_snapshot.dart
+++ b/runtime/observatory_2/lib/src/elements/heap_snapshot.dart
@@ -642,7 +642,6 @@
var blob = new Blob(_snapshotA.chunks, 'application/octet-stream');
var blobUrl = Url.createObjectUrl(blob);
var link = new AnchorElement();
- // ignore: unsafe_html
link.href = blobUrl;
var now = new DateTime.now();
link.download = 'dart-heap-${now.year}-${now.month}-${now.day}.bin';
diff --git a/runtime/observatory_2/lib/src/elements/process_snapshot.dart b/runtime/observatory_2/lib/src/elements/process_snapshot.dart
index c3798c8..82593da 100644
--- a/runtime/observatory_2/lib/src/elements/process_snapshot.dart
+++ b/runtime/observatory_2/lib/src/elements/process_snapshot.dart
@@ -134,7 +134,6 @@
var blob = new Blob([jsonEncode(_snapshotA)], 'application/json');
var blobUrl = Url.createObjectUrl(blob);
var link = new AnchorElement();
- // ignore: unsafe_html
link.href = blobUrl;
var now = new DateTime.now();
link.download = 'dart-process-${now.year}-${now.month}-${now.day}.json';
diff --git a/runtime/observatory_2/lib/src/elements/timeline/dashboard.dart b/runtime/observatory_2/lib/src/elements/timeline/dashboard.dart
index 6e54478..8826324 100644
--- a/runtime/observatory_2/lib/src/elements/timeline/dashboard.dart
+++ b/runtime/observatory_2/lib/src/elements/timeline/dashboard.dart
@@ -91,7 +91,6 @@
if (_content == null) {
_content = new DivElement()..classes = ['content-centered-big'];
}
- // ignore: unsafe_html
_frame.src = _makeFrameUrl();
_content.children = <Element>[
new HeadingElement.h2()
diff --git a/runtime/observatory_2/lib/src/elements/timeline_page.dart b/runtime/observatory_2/lib/src/elements/timeline_page.dart
index aed6e5a..d16c393 100644
--- a/runtime/observatory_2/lib/src/elements/timeline_page.dart
+++ b/runtime/observatory_2/lib/src/elements/timeline_page.dart
@@ -184,7 +184,6 @@
"This VM is forwarding timeline events to Fuchsia's system tracing. See the ",
new AnchorElement()
..text = "Fuchsia Tracing Usage Guide"
- // ignore: unsafe_html
..href = "https://fuchsia.dev/fuchsia-src/development/tracing",
new SpanElement()..text = ".",
];
@@ -200,7 +199,6 @@
"This VM is forwarding timeline events to Android's systrace. See the ",
new AnchorElement()
..text = "systrace usage guide"
- // ignore: unsafe_html
..href =
"https://developer.android.com/studio/command-line/systrace",
new SpanElement()..text = ".",
@@ -218,7 +216,6 @@
"To track these events, open 'Instruments' and add the 'os_signpost' Filter. See the ",
new AnchorElement()
..text = "Instruments Usage Guide"
- // ignore: unsafe_html
..href = "https://help.apple.com/instruments",
new SpanElement()..text = ".",
];