Skip to content

Commit 5ea3ef2

Browse files
vranaCommit Queue
authored andcommitted
Remove // ignore: unsafe_html.
Closes dart-lang/sdk#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>
1 parent f073bb8 commit 5ea3ef2

File tree

7 files changed

+0
-11
lines changed

7 files changed

+0
-11
lines changed

runtime/observatory/lib/src/elements/heap_snapshot.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,6 @@ class HeapSnapshotElement extends CustomElement implements Renderable {
603603
var blob = new Blob(_snapshotA!.chunks, 'application/octet-stream');
604604
var blobUrl = Url.createObjectUrl(blob);
605605
var link = new AnchorElement();
606-
// ignore: unsafe_html
607606
link.href = blobUrl;
608607
var now = new DateTime.now();
609608
link.download = 'dart-heap-${now.year}-${now.month}-${now.day}.bin';

runtime/observatory/lib/src/elements/process_snapshot.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,6 @@ class ProcessSnapshotElement extends CustomElement implements Renderable {
298298
var blob = new Blob([jsonEncode(_snapshotA)], 'application/json');
299299
var blobUrl = Url.createObjectUrl(blob);
300300
var link = new AnchorElement();
301-
// ignore: unsafe_html
302301
link.href = blobUrl;
303302
var now = new DateTime.now();
304303
link.download = 'dart-process-${now.year}-${now.month}-${now.day}.json';

runtime/observatory/lib/src/elements/timeline_page.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,6 @@ class TimelinePageElement extends CustomElement implements Renderable {
185185
"This VM is forwarding timeline events to Fuchsia's system tracing. See the ",
186186
new AnchorElement()
187187
..text = "Fuchsia Tracing Usage Guide"
188-
// ignore: unsafe_html
189188
..href = "https://fuchsia.dev/fuchsia-src/development/tracing",
190189
new SpanElement()..text = ".",
191190
];
@@ -201,7 +200,6 @@ class TimelinePageElement extends CustomElement implements Renderable {
201200
"This VM is forwarding timeline events to Android's systrace. See the ",
202201
new AnchorElement()
203202
..text = "systrace usage guide"
204-
// ignore: unsafe_html
205203
..href =
206204
"https://developer.android.com/studio/command-line/systrace",
207205
new SpanElement()..text = ".",
@@ -219,7 +217,6 @@ class TimelinePageElement extends CustomElement implements Renderable {
219217
"To track these events, open 'Instruments' and add the 'os_signpost' Filter. See the ",
220218
new AnchorElement()
221219
..text = "Instruments Usage Guide"
222-
// ignore: unsafe_html
223220
..href = "https://help.apple.com/instruments",
224221
new SpanElement()..text = ".",
225222
];

runtime/observatory_2/lib/src/elements/heap_snapshot.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,6 @@ class HeapSnapshotElement extends CustomElement implements Renderable {
642642
var blob = new Blob(_snapshotA.chunks, 'application/octet-stream');
643643
var blobUrl = Url.createObjectUrl(blob);
644644
var link = new AnchorElement();
645-
// ignore: unsafe_html
646645
link.href = blobUrl;
647646
var now = new DateTime.now();
648647
link.download = 'dart-heap-${now.year}-${now.month}-${now.day}.bin';

runtime/observatory_2/lib/src/elements/process_snapshot.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ class ProcessSnapshotElement extends CustomElement implements Renderable {
134134
var blob = new Blob([jsonEncode(_snapshotA)], 'application/json');
135135
var blobUrl = Url.createObjectUrl(blob);
136136
var link = new AnchorElement();
137-
// ignore: unsafe_html
138137
link.href = blobUrl;
139138
var now = new DateTime.now();
140139
link.download = 'dart-process-${now.year}-${now.month}-${now.day}.json';

runtime/observatory_2/lib/src/elements/timeline/dashboard.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ class TimelineDashboardElement extends CustomElement implements Renderable {
9191
if (_content == null) {
9292
_content = new DivElement()..classes = ['content-centered-big'];
9393
}
94-
// ignore: unsafe_html
9594
_frame.src = _makeFrameUrl();
9695
_content.children = <Element>[
9796
new HeadingElement.h2()

runtime/observatory_2/lib/src/elements/timeline_page.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,6 @@ class TimelinePageElement extends CustomElement implements Renderable {
184184
"This VM is forwarding timeline events to Fuchsia's system tracing. See the ",
185185
new AnchorElement()
186186
..text = "Fuchsia Tracing Usage Guide"
187-
// ignore: unsafe_html
188187
..href = "https://fuchsia.dev/fuchsia-src/development/tracing",
189188
new SpanElement()..text = ".",
190189
];
@@ -200,7 +199,6 @@ class TimelinePageElement extends CustomElement implements Renderable {
200199
"This VM is forwarding timeline events to Android's systrace. See the ",
201200
new AnchorElement()
202201
..text = "systrace usage guide"
203-
// ignore: unsafe_html
204202
..href =
205203
"https://developer.android.com/studio/command-line/systrace",
206204
new SpanElement()..text = ".",
@@ -218,7 +216,6 @@ class TimelinePageElement extends CustomElement implements Renderable {
218216
"To track these events, open 'Instruments' and add the 'os_signpost' Filter. See the ",
219217
new AnchorElement()
220218
..text = "Instruments Usage Guide"
221-
// ignore: unsafe_html
222219
..href = "https://help.apple.com/instruments",
223220
new SpanElement()..text = ".",
224221
];

0 commit comments

Comments
 (0)