@@ -37,7 +37,7 @@ browser-specific techniques.
37
37
38
38
* Gecko tests able to provide cross-context communication using the
39
39
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 )
41
41
API available to gecko tests allows running a function in another
42
42
context, using structured clone to pass the arguments
43
43
([ 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.
101
101
The message passing backend is based on a Python
102
102
[ Queue] ( https://docs.python.org/3/library/queue.html ) object per
103
103
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
105
105
don't have to use a polling API but can, on the server side, wait for
106
106
a message to be added to a channel, and immediately forward the
107
107
message to the client. Because the stash itself runs in a single
@@ -488,7 +488,7 @@ function closeAllChannelSockets() {}
488
488
489
489
With the stash-based approach, it's important to clean up the stash
490
490
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
492
492
stash value. Each socket that connects increments the refcount, and
493
493
decrements it once the socket is closed. Access to the stash is
494
494
protected by a lock, so only one socket may touch the refcount at a
@@ -520,7 +520,7 @@ test.html
520
520
521
521
< script>
522
522
promise_test (async t => {
523
- let remote = new RemoteContext ();
523
+ let remote = new RemoteWindow ();
524
524
window .open (` child.html?uuid=${ remote .uuid } ` , " _blank" , " noopener" );
525
525
let result = await remote .executeScript (id => {
526
526
return document .getElementById (id).textContent ;
@@ -612,5 +612,5 @@ contains a prototype implementation of this.
612
612
613
613
<!-- LocalWords: UUID WebDriver wptrunner testharness APIs UI
614
614
-->
615
- <!-- LocalWords: testdriver websockets bfcache refcounf
615
+ <!-- LocalWords: testdriver websockets bfcache
616
616
-->
0 commit comments