Skip to content

Avoid suggesting the empty string for navigator.platform #7762

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 30, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -98592,9 +98592,10 @@ interface <dfn interface>Navigator</dfn> {
<!-- oscpu: Mozilla only -->

<dt><dfn attribute for="NavigatorID"><code data-x="dom-navigator-platform">platform</code></dfn></dt>
<dd><p>Must return either the empty string or a string representing the platform on which the
browser is executing, e.g. "<code data-x="">MacIntel</code>", "<code data-x="">Win32</code>",
"<code data-x="">FreeBSD i386</code>", "<code data-x="">WebTV OS</code>".</p></dd>
<dd><p>Must return a string representing the platform on which the
browser is executing (e.g. "<code data-x="">MacIntel</code>", "<code data-x="">Win32</code>",
"<code data-x="">Linux x86_64</code>", "<code data-x="">Linux armv81</code>") or, for privacy and
compatibility, a string that is commonly returned on another platform.</p></dd>

<dt><dfn attribute for="NavigatorID"><code data-x="dom-navigator-product">product</code></dfn></dt>
<dd><p>Must return the string "<code data-x="">Gecko</code>".</p></dd>
Expand Down