6
6
7
7
#pragma once
8
8
9
- #include < AK/DeprecatedString .h>
9
+ #include < AK/String .h>
10
10
11
11
namespace Web ::HTML {
12
12
@@ -17,31 +17,31 @@ class NavigatorIDMixin {
17
17
// implementers are strongly urged to include as little information in this API as possible.
18
18
19
19
// https://html.spec.whatwg.org/multipage/system-state.html#dom-navigator-appcodename
20
- DeprecatedString app_code_name () const { return " Mozilla" sv ; }
20
+ String app_code_name () const { return " Mozilla" _string ; }
21
21
22
22
// https://html.spec.whatwg.org/multipage/system-state.html#dom-navigator-appcodename
23
- DeprecatedString app_name () const { return " Netscape" sv ; }
23
+ String app_name () const { return " Netscape" _string ; }
24
24
25
25
// https://html.spec.whatwg.org/multipage/system-state.html#dom-navigator-appversion
26
- DeprecatedString app_version () const ;
26
+ String app_version () const ;
27
27
28
28
// https://html.spec.whatwg.org/multipage/system-state.html#dom-navigator-platform
29
- DeprecatedString platform () const ;
29
+ String platform () const ;
30
30
31
31
// https://html.spec.whatwg.org/multipage/system-state.html#dom-navigator-product
32
- DeprecatedString product () const { return " Gecko" sv ; }
32
+ String product () const { return " Gecko" _string ; }
33
33
34
34
// https://html.spec.whatwg.org/multipage/system-state.html#dom-navigator-productsub
35
- DeprecatedString product_sub () const { return " 20030107" sv ; } // Compatibility mode "Chrome"
35
+ String product_sub () const { return " 20030107" _string ; } // Compatibility mode "Chrome"
36
36
37
37
// https://html.spec.whatwg.org/multipage/system-state.html#dom-navigator-useragent
38
- DeprecatedString user_agent () const ;
38
+ String user_agent () const ;
39
39
40
40
// https://html.spec.whatwg.org/multipage/system-state.html#dom-navigator-vendor
41
- DeprecatedString vendor () const { return " Google Inc." sv ; } // Compatibility mode "Chrome"
41
+ String vendor () const { return " Google Inc." _string ; } // Compatibility mode "Chrome"
42
42
43
43
// https://html.spec.whatwg.org/multipage/system-state.html#dom-navigator-vendorsub
44
- DeprecatedString vendor_sub () const { return " " sv ; }
44
+ String vendor_sub () const { return String {} ; }
45
45
46
46
// NOTE: If the navigator compatibility mode is Gecko, then the user agent must also support the following partial interface:
47
47
// bool taint_enabled()
0 commit comments