Skip to content

Commit

Permalink
[giow] (3) Spec navigator.appCodeName (and respec navigator.product) …
Browse files Browse the repository at this point in the history
…constant(s)

Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=22558
Affected topics: DOM APIs

git-svn-id: http://svn.whatwg.org/webapps@8038 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jul 9, 2013
1 parent 70726af commit c4d0c6a
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 24 deletions.
32 changes: 23 additions & 9 deletions complete.html
Expand Up @@ -73965,14 +73965,13 @@ <h4 id=the-navigator-object><span class=secno>7.5.1 </span>The <code><a href=#na
<h5 id=client-identification><span class=secno>7.5.1.1 </span>Client identification</h5>

<pre class=idl>[NoInterfaceObject]
interface <dfn id=navigatorid>NavigatorID</dfn> {<!--
readonly attribute DOMString <span title="dom-navigator-appCodeName">appCodeName</span>;-->
interface <dfn id=navigatorid>NavigatorID</dfn> {
readonly attribute DOMString <a href=#dom-navigator-appcodename title=dom-navigator-appCodeName>appCodeName</a>;
readonly attribute DOMString <a href=#dom-navigator-appname title=dom-navigator-appName>appName</a>;
readonly attribute DOMString <a href=#dom-navigator-appversion title=dom-navigator-appVersion>appVersion</a>;
readonly attribute DOMString <a href=#dom-navigator-platform title=dom-navigator-platform>platform</a>;
readonly attribute DOMString <a href=#dom-navigator-product title=dom-navigator-product>product</a>;
readonly attribute DOMString <a href=#dom-navigator-useragent title=dom-navigator-userAgent>userAgent</a>;

const DOMString product = "Gecko"; // for historical reasons
};</pre>

<p>In certain cases, despite the best efforts of the entire
Expand All @@ -73987,7 +73986,12 @@ <h5 id=client-identification><span class=secno>7.5.1.1 </span>Client identificat
current versions; future versions and unknown versions should always
be assumed to be fully compliant.</p>

<dl class=domintro><dt><var title="">window</var> . <code title=dom-navigator><a href=#dom-navigator>navigator</a></code> . <code title=dom-navigator-appName><a href=#dom-navigator-appname>appName</a></code></dt>
<dl class=domintro><dt><var title="">window</var> . <code title=dom-navigator><a href=#dom-navigator>navigator</a></code> . <code title=dom-navigator-appCodeName><a href=#dom-navigator-appcodename>appCodeName</a></code></dt>
<dd>
<p>Returns the string "<code title="">Mozilla</code>".</p>
</dd>

<dt><var title="">window</var> . <code title=dom-navigator><a href=#dom-navigator>navigator</a></code> . <code title=dom-navigator-appName><a href=#dom-navigator-appname>appName</a></code></dt>
<dd>
<p>Returns the name of the browser.</p>
</dd>
Expand All @@ -74002,17 +74006,24 @@ <h5 id=client-identification><span class=secno>7.5.1.1 </span>Client identificat
<p>Returns the name of the platform.</p>
</dd>

<dt><var title="">window</var> . <code title=dom-navigator><a href=#dom-navigator>navigator</a></code> . <code title=dom-navigator-product><a href=#dom-navigator-product>product</a></code></dt>
<dd>
<p>Returns the string "<code title="">Gecko</code>".</p>
</dd>

<dt><var title="">window</var> . <code title=dom-navigator><a href=#dom-navigator>navigator</a></code> . <code title=dom-navigator-userAgent><a href=#dom-navigator-useragent>userAgent</a></code></dt>
<dd>
<p>Returns the complete User-Agent header.</p>
</dd>

</dl><div class=impl>

<dl><!-- redundant
<dt><dfn title="dom-navigator-appCodeName"><code>appCodeName</code></dfn></dt>
<dd><p>Must return the string "<code title="">Mozilla</code>".</p></dd>
--><!-- appMinorVersion: IE only. In IE8b1, returns " Beta" (with the space) --><dt><dfn id=dom-navigator-appname title=dom-navigator-appName><code>appName</code></dfn></dt>
<dl><dt><dfn id=dom-navigator-appcodename title=dom-navigator-appCodeName><code>appCodeName</code></dfn></dt>
<dd><p>Must return the string "<code title="">Mozilla</code>".</dd>

<!-- appMinorVersion: IE only. In IE8b1, returns " Beta" (with the space) -->

<dt><dfn id=dom-navigator-appname title=dom-navigator-appName><code>appName</code></dfn></dt>
<dd><p>Must return either the string "<code title="">Netscape</code>" or the full name of the browser, e.g. "<code title="">Mellblom Browsernator</code>".</dd>

<dt><dfn id=dom-navigator-appversion title=dom-navigator-appVersion><code>appVersion</code></dfn></dt>
Expand All @@ -74025,6 +74036,9 @@ <h5 id=client-identification><span class=secno>7.5.1.1 </span>Client identificat
<dt><dfn id=dom-navigator-platform title=dom-navigator-platform><code>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 title="">MacIntel</code>", "<code title="">Win32</code>", "<code title="">FreeBSD i386</code>", "<code title="">WebTV OS</code>".</dd>

<dt><dfn id=dom-navigator-product title=dom-navigator-product><code>product</code></dfn></dt>
<dd><p>Must return the string "<code title="">Gecko</code>".</dd>

<!-- productSub: Mozilla and Safari only; returns same as buildID in Mozilla, and returns the fixed string "20030107" in Safari -->

<!-- securityPolicy: Mozilla only; always returns "" -->
Expand Down
32 changes: 23 additions & 9 deletions index
Expand Up @@ -73965,14 +73965,13 @@ setTimeout({ toString: function () {
<h5 id=client-identification><span class=secno>7.5.1.1 </span>Client identification</h5>

<pre class=idl>[NoInterfaceObject]
interface <dfn id=navigatorid>NavigatorID</dfn> {<!--
readonly attribute DOMString <span title="dom-navigator-appCodeName">appCodeName</span>;-->
interface <dfn id=navigatorid>NavigatorID</dfn> {
readonly attribute DOMString <a href=#dom-navigator-appcodename title=dom-navigator-appCodeName>appCodeName</a>;
readonly attribute DOMString <a href=#dom-navigator-appname title=dom-navigator-appName>appName</a>;
readonly attribute DOMString <a href=#dom-navigator-appversion title=dom-navigator-appVersion>appVersion</a>;
readonly attribute DOMString <a href=#dom-navigator-platform title=dom-navigator-platform>platform</a>;
readonly attribute DOMString <a href=#dom-navigator-product title=dom-navigator-product>product</a>;
readonly attribute DOMString <a href=#dom-navigator-useragent title=dom-navigator-userAgent>userAgent</a>;

const DOMString product = "Gecko"; // for historical reasons
};</pre>

<p>In certain cases, despite the best efforts of the entire
Expand All @@ -73987,7 +73986,12 @@ interface <dfn id=navigatorid>NavigatorID</dfn> {<!--
current versions; future versions and unknown versions should always
be assumed to be fully compliant.</p>

<dl class=domintro><dt><var title="">window</var> . <code title=dom-navigator><a href=#dom-navigator>navigator</a></code> . <code title=dom-navigator-appName><a href=#dom-navigator-appname>appName</a></code></dt>
<dl class=domintro><dt><var title="">window</var> . <code title=dom-navigator><a href=#dom-navigator>navigator</a></code> . <code title=dom-navigator-appCodeName><a href=#dom-navigator-appcodename>appCodeName</a></code></dt>
<dd>
<p>Returns the string "<code title="">Mozilla</code>".</p>
</dd>

<dt><var title="">window</var> . <code title=dom-navigator><a href=#dom-navigator>navigator</a></code> . <code title=dom-navigator-appName><a href=#dom-navigator-appname>appName</a></code></dt>
<dd>
<p>Returns the name of the browser.</p>
</dd>
Expand All @@ -74002,17 +74006,24 @@ interface <dfn id=navigatorid>NavigatorID</dfn> {<!--
<p>Returns the name of the platform.</p>
</dd>

<dt><var title="">window</var> . <code title=dom-navigator><a href=#dom-navigator>navigator</a></code> . <code title=dom-navigator-product><a href=#dom-navigator-product>product</a></code></dt>
<dd>
<p>Returns the string "<code title="">Gecko</code>".</p>
</dd>

<dt><var title="">window</var> . <code title=dom-navigator><a href=#dom-navigator>navigator</a></code> . <code title=dom-navigator-userAgent><a href=#dom-navigator-useragent>userAgent</a></code></dt>
<dd>
<p>Returns the complete User-Agent header.</p>
</dd>

</dl><div class=impl>

<dl><!-- redundant
<dt><dfn title="dom-navigator-appCodeName"><code>appCodeName</code></dfn></dt>
<dd><p>Must return the string "<code title="">Mozilla</code>".</p></dd>
--><!-- appMinorVersion: IE only. In IE8b1, returns " Beta" (with the space) --><dt><dfn id=dom-navigator-appname title=dom-navigator-appName><code>appName</code></dfn></dt>
<dl><dt><dfn id=dom-navigator-appcodename title=dom-navigator-appCodeName><code>appCodeName</code></dfn></dt>
<dd><p>Must return the string "<code title="">Mozilla</code>".</dd>

<!-- appMinorVersion: IE only. In IE8b1, returns " Beta" (with the space) -->

<dt><dfn id=dom-navigator-appname title=dom-navigator-appName><code>appName</code></dfn></dt>
<dd><p>Must return either the string "<code title="">Netscape</code>" or the full name of the browser, e.g. "<code title="">Mellblom Browsernator</code>".</dd>

<dt><dfn id=dom-navigator-appversion title=dom-navigator-appVersion><code>appVersion</code></dfn></dt>
Expand All @@ -74025,6 +74036,9 @@ interface <dfn id=navigatorid>NavigatorID</dfn> {<!--
<dt><dfn id=dom-navigator-platform title=dom-navigator-platform><code>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 title="">MacIntel</code>", "<code title="">Win32</code>", "<code title="">FreeBSD i386</code>", "<code title="">WebTV OS</code>".</dd>

<dt><dfn id=dom-navigator-product title=dom-navigator-product><code>product</code></dfn></dt>
<dd><p>Must return the string "<code title="">Gecko</code>".</dd>

<!-- productSub: Mozilla and Safari only; returns same as buildID in Mozilla, and returns the fixed string "20030107" in Safari -->

<!-- securityPolicy: Mozilla only; always returns "" -->
Expand Down
22 changes: 16 additions & 6 deletions source
Expand Up @@ -82795,14 +82795,13 @@ setTimeout({ toString: function () {
<h5>Client identification</h5>

<pre class="idl">[NoInterfaceObject]
interface <dfn>NavigatorID</dfn> {<!--
readonly attribute DOMString <span title="dom-navigator-appCodeName">appCodeName</span>;-->
interface <dfn>NavigatorID</dfn> {
readonly attribute DOMString <span title="dom-navigator-appCodeName">appCodeName</span>;
readonly attribute DOMString <span title="dom-navigator-appName">appName</span>;
readonly attribute DOMString <span title="dom-navigator-appVersion">appVersion</span>;
readonly attribute DOMString <span title="dom-navigator-platform">platform</span>;
readonly attribute DOMString <span title="dom-navigator-product">product</span>;
readonly attribute DOMString <span title="dom-navigator-userAgent">userAgent</span>;

const DOMString product = "Gecko"; // for historical reasons
};</pre>

<p>In certain cases, despite the best efforts of the entire
Expand All @@ -82819,6 +82818,11 @@ interface <dfn>NavigatorID</dfn> {<!--

<dl class="domintro">

<dt><var title="">window</var> . <code title="dom-navigator">navigator</code> . <code title="dom-navigator-appCodeName">appCodeName</code></dt>
<dd>
<p>Returns the string "<code title="">Mozilla</code>".</p>
</dd>

<dt><var title="">window</var> . <code title="dom-navigator">navigator</code> . <code title="dom-navigator-appName">appName</code></dt>
<dd>
<p>Returns the name of the browser.</p>
Expand All @@ -82834,6 +82838,11 @@ interface <dfn>NavigatorID</dfn> {<!--
<p>Returns the name of the platform.</p>
</dd>

<dt><var title="">window</var> . <code title="dom-navigator">navigator</code> . <code title="dom-navigator-product">product</code></dt>
<dd>
<p>Returns the string "<code title="">Gecko</code>".</p>
</dd>

<dt><var title="">window</var> . <code title="dom-navigator">navigator</code> . <code title="dom-navigator-userAgent">userAgent</code></dt>
<dd>
<p>Returns the complete User-Agent header.</p>
Expand All @@ -82845,10 +82854,8 @@ interface <dfn>NavigatorID</dfn> {<!--

<dl>

<!-- redundant
<dt><dfn title="dom-navigator-appCodeName"><code>appCodeName</code></dfn></dt>
<dd><p>Must return the string "<code title="">Mozilla</code>".</p></dd>
-->

<!-- appMinorVersion: IE only. In IE8b1, returns " Beta" (with the space) -->

Expand All @@ -82865,6 +82872,9 @@ interface <dfn>NavigatorID</dfn> {<!--
<dt><dfn title="dom-navigator-platform"><code>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 title="">MacIntel</code>", "<code title="">Win32</code>", "<code title="">FreeBSD i386</code>", "<code title="">WebTV OS</code>".</p></dd>

<dt><dfn title="dom-navigator-product"><code>product</code></dfn></dt>
<dd><p>Must return the string "<code title="">Gecko</code>".</p></dd>

<!-- productSub: Mozilla and Safari only; returns same as buildID in Mozilla, and returns the fixed string "20030107" in Safari -->

<!-- securityPolicy: Mozilla only; always returns "" -->
Expand Down

0 comments on commit c4d0c6a

Please sign in to comment.