Skip to content

Commit c5232f1

Browse files
jgrahamMs2ger
andcommitted
Do whatever Ms2ger says
Co-authored-by: Ms2ger <[email protected]>
1 parent c92c15c commit c5232f1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

rfcs/remote_channel.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ browser-specific techniques.
3737

3838
* Gecko tests able to provide cross-context communication using the
3939
parent (i.e. browser UI) process as an intermediary. The
40-
[SpecialPowers.spwan](https://searchfox.org/mozilla-central/source/testing/specialpowers/content/SpecialPowersChild.jsm#1547-1584)
40+
[SpecialPowers.spawn](https://searchfox.org/mozilla-central/source/testing/specialpowers/content/SpecialPowersChild.jsm#1547-1584)
4141
API available to gecko tests allows running a function in another
4242
context, using structured clone to pass the arguments
4343
([example](https://searchfox.org/mozilla-central/source/dom/tests/browser/browser_data_document_crossOriginIsolated.js#17)).
@@ -101,7 +101,7 @@ an error to use the same UUID for multiple contexts.
101101
The message passing backend is based on a Python
102102
[Queue](https://docs.python.org/3/library/queue.html) object per
103103
channel, stored in the server stash. The advantage of using queues
104-
here is that they are designed allow blocking reads. This means we
104+
here is that they are designed to allow blocking reads. This means we
105105
don't have to use a polling API but can, on the server side, wait for
106106
a message to be added to a channel, and immediately forward the
107107
message to the client. Because the stash itself runs in a single
@@ -488,7 +488,7 @@ function closeAllChannelSockets() {}
488488

489489
With the stash-based approach, it's important to clean up the stash
490490
once no channels remain. Otherwise we end up leaking queues. The
491-
general approach is to explicitly store a refcounf as part of the
491+
general approach is to explicitly store a refcount as part of the
492492
stash value. Each socket that connects increments the refcount, and
493493
decrements it once the socket is closed. Access to the stash is
494494
protected by a lock, so only one socket may touch the refcount at a
@@ -520,7 +520,7 @@ test.html
520520
521521
<script>
522522
promise_test(async t => {
523-
let remote = new RemoteContext();
523+
let remote = new RemoteWindow();
524524
window.open(`child.html?uuid=${remote.uuid}`, "_blank", "noopener");
525525
let result = await remote.executeScript(id => {
526526
return document.getElementById(id).textContent;
@@ -612,5 +612,5 @@ contains a prototype implementation of this.
612612

613613
<!-- LocalWords: UUID WebDriver wptrunner testharness APIs UI
614614
-->
615-
<!-- LocalWords: testdriver websockets bfcache refcounf
615+
<!-- LocalWords: testdriver websockets bfcache
616616
-->

0 commit comments

Comments
 (0)