Skip to content

Commit f205471

Browse files
authored
Use concrete factory constructor for DomXMLHttpRequest (#115094)
This code should be calling the factory method, not the synthetic constructor.
1 parent 84357cb commit f205471

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/flutter/lib/src/painting/_network_image_web.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ typedef HttpRequestFactory = DomXMLHttpRequest Function();
1818

1919
/// Default HTTP client.
2020
DomXMLHttpRequest _httpClient() {
21-
return DomXMLHttpRequest();
21+
return createDomXMLHttpRequest();
2222
}
2323

2424
/// Creates an overridable factory function.

0 commit comments

Comments
 (0)