Skip to content

Commit 2d7a23d

Browse files
committed
Move origin
1 parent d7f6dfc commit 2d7a23d

File tree

7 files changed

+29
-30
lines changed

7 files changed

+29
-30
lines changed

files/en-us/_redirects.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8937,6 +8937,7 @@
89378937
/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch /en-US/docs/Web/API/fetch
89388938
/en-US/docs/Web/API/WindowOrWorkerGlobalScope/indexedDB /en-US/docs/Web/API/indexedDB
89398939
/en-US/docs/Web/API/WindowOrWorkerGlobalScope/isSecureContext /en-US/docs/Web/API/isSecureContext
8940+
/en-US/docs/Web/API/WindowOrWorkerGlobalScope/origin /en-US/docs/Web/API/origin
89408941
/en-US/docs/Web/API/WindowOrWorkerGlobalScope/rejectionhandled_event /en-US/docs/Web/API/Window/rejectionhandled_event
89418942
/en-US/docs/Web/API/WindowOrWorkerGlobalScope/unhandledrejection_event /en-US/docs/Web/API/Window/unhandledrejection_event
89428943
/en-US/docs/Web/API/WindowSessionStorage /en-US/docs/Web/API/Window/sessionStorage

files/en-us/_wikihistory.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -91808,17 +91808,6 @@
9180891808
"Bzbarsky"
9180991809
]
9181091810
},
91811-
"Web/API/WindowOrWorkerGlobalScope/origin": {
91812-
"modified": "2020-10-15T21:51:30.388Z",
91813-
"contributors": [
91814-
"mfuji09",
91815-
"fscholz",
91816-
"Sheppy",
91817-
"Bzbarsky",
91818-
"chrisdavidmills",
91819-
"ziyunfei"
91820-
]
91821-
},
9182291811
"Web/API/WindowOrWorkerGlobalScope/queueMicrotask": {
9182391812
"modified": "2020-10-15T22:21:06.789Z",
9182491813
"contributors": [
@@ -95322,6 +95311,17 @@
9532295311
"mattwojo"
9532395312
]
9532495313
},
95314+
"Web/API/origin": {
95315+
"modified": "2020-10-15T21:51:30.388Z",
95316+
"contributors": [
95317+
"mfuji09",
95318+
"fscholz",
95319+
"Sheppy",
95320+
"Bzbarsky",
95321+
"chrisdavidmills",
95322+
"ziyunfei"
95323+
]
95324+
},
9532595325
"Web/API/window/getDefaultComputedStyle": {
9532695326
"modified": "2020-10-15T21:20:40.098Z",
9532795327
"contributors": [

files/en-us/mozilla/firefox/releases/54/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ <h3 id="Web_Workers_and_Service_Workers">Web Workers and Service Workers</h3>
5959

6060
<ul>
6161
<li>{{domxref("WorkerGlobalScope.close")}} is now available on {{domxref("DedicatedWorkerGlobalScope.close", "DedicatedWorkerGlobalScope")}} and {{domxref("SharedWorkerGlobalScope.close", "SharedWorkerGlobalScope")}} instead. This change was made to stop <code>close()</code> being available on service workers, as it isn't supposed to be used there and always throws an exception when called (see {{bug(1336043)}}).</li>
62-
<li>The {{domxref("WindowOrWorkerGlobalScope.origin")}} property has been implemented (see {{bug(1306170)}}).</li>
62+
<li>The {{domxref("origin")}} property has been implemented (see {{bug(1306170)}}).</li>
6363
<li>The {{domxref("Client.type")}} property has been implemented (see {{bug(1339844)}}).</li>
6464
<li>{{domxref("Clients.matchAll()")}} now returns {{domxref("Client")}} objects in most recently focused order (see {{bug(1266747)}}).</li>
6565
<li>Some changes have been made to the observed behavior when the {{domxref("Request.Request","Request()")}} constructor is passed an existing {{domxref("Request")}} object instance to make a new instance. The following new behaviors are designed to retain security while making the constructor less likely to throw exceptions:

files/en-us/web/api/document/domain/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ <h3 id="Getting_the_domain">Getting the domain</h3>
147147
<code>currentHostname</code> is also the string "<code>developer.mozilla.org</code>".
148148
Other alternatives that provide slightly different information are
149149
{{domxref("Location.host")}}, which includes the port, and
150-
{{domxref("WindowOrWorkerGlobalScope.origin")}}, which provides the full origin.</p>
150+
{{domxref("origin")}}, which provides the full origin.</p>
151151

152152
<h2 id="Specifications">Specifications</h2>
153153

@@ -163,5 +163,5 @@ <h2 id="See_also">See also</h2>
163163
<li><a href="/en-US/docs/Web/Security/Same-origin_policy">Same-origin policy</a></li>
164164
<li>{{domxref("Location.hostname")}}</li>
165165
<li>{{domxref("Location.host")}}</li>
166-
<li>{{domxref("WindowOrWorkerGlobalScope.origin")}}</li>
166+
<li>{{domxref("origin")}}</li>
167167
</ul>

files/en-us/web/api/windoworworkerglobalscope/origin/index.html renamed to files/en-us/web/api/origin/index.html

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
11
---
2-
title: WindowOrWorkerGlobalScope.origin
3-
slug: Web/API/WindowOrWorkerGlobalScope/origin
2+
title: origin
3+
slug: Web/API/origin
44
tags:
5-
- API
6-
- HTML DOM
7-
- Property
8-
- Reference
9-
- Web
10-
- Window
11-
- WindowOrWorkerGlobalScope
12-
- Worker
13-
- origin
14-
browser-compat: api.WindowOrWorkerGlobalScope.origin
5+
- API
6+
- HTML DOM
7+
- Property
8+
- Reference
9+
- Web
10+
- Window
11+
- Worker
12+
- origin
13+
browser-compat: api.origin
1514
---
1615
<p>{{APIRef()}}{{SeeCompatTable}}</p>
1716

18-
<p>The <code><strong>origin</strong></code> read-only property of the
19-
{{domxref("WindowOrWorkerGlobalScope")}} interface returns the origin of the global
17+
<p>The global <code><strong>origin</strong></code> read-only property returns the origin of the global
2018
scope, serialized as a string.</p>
2119

2220
<h2 id="Syntax">Syntax</h2>

files/en-us/web/api/windoworworkerglobalscope/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ <h2 id="Properties">Properties</h2>
3434
<dd>Provides a mechanism for applications to asynchronously access capabilities of indexed databases; returns an {{domxref("IDBFactory")}} object.</dd>
3535
<dt>{{domxref("isSecureContext")}} {{readOnlyinline}}</dt>
3636
<dd>Returns a boolean indicating whether the current context is secure (<code>true</code>) or not (<code>false</code>).</dd>
37-
<dt>{{domxref("WindowOrWorkerGlobalScope.origin")}} {{readOnlyinline}}</dt>
37+
<dt>{{domxref("origin")}} {{readOnlyinline}}</dt>
3838
<dd>Returns the origin of the global scope, serialized as a string.</dd>
3939
</dl>
4040

files/en-us/web/api/workerglobalscope/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ <h3 id="Properties_implemented_from_elsewhere">Properties implemented from elsew
4848
<dd>Provides a mechanism for applications to asynchronously access capabilities of indexed databases; returns an {{domxref("IDBFactory")}} object.</dd>
4949
<dt>{{domxref("isSecureContext")}} {{readOnlyinline}}</dt>
5050
<dd>Returns a boolean indicating whether the current context is secure (<code>true</code>) or not (<code>false</code>).</dd>
51-
<dt>{{domxref("WindowOrWorkerGlobalScope.origin")}} {{readOnlyinline}}</dt>
51+
<dt>{{domxref("origin")}} {{readOnlyinline}}</dt>
5252
<dd>Returns the global object's origin, serialized as a string. (This does not yet appear to be implemented in any browser.)</dd>
5353
</dl>
5454

0 commit comments

Comments
 (0)