Граф коммитов

628 Коммитов

Автор SHA1 Сообщение Дата
Henrik Skupin 4a22ea5bfe Bug 1599413 - [remote] Implement Page.frameAttached. r=remote-protocol-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D71292
2020-05-18 18:34:31 +00:00
Maja Frydrychowicz 4f753dd927 Bug 1599260 - [puppeteer] Check for favicon in request/response test r=remote-protocol-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D74802
2020-05-15 18:19:18 +00:00
Maja Frydrychowicz f260a91bb8 Bug 1599260 - Include loader id in Page.lifecycleEvent r=remote-protocol-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D74580
2020-05-15 20:30:27 +00:00
Maja Frydrychowicz 6604ce89a1 Bug 1552324 - Implement subset of Network.responseReceived r=remote-protocol-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D74579
2020-05-15 20:29:00 +00:00
Maja Frydrychowicz 2b2799e8f2 Bug 1636816 - Fix missing headers and url in Network.requestWillBeSent r=remote-protocol-reviewers,whimboo
Change the returned documentURL to be that of the requested document.
Ensure the return frameId is only returned if available, since it's optional.
Move some common steps into NetworkObserver for later reuse by other Network
events.

Differential Revision: https://phabricator.services.mozilla.com/D74578
2020-05-15 18:18:40 +00:00
Henrik Skupin cc30d56142 Bug 1593226 - [remote] Use frame's window for dynamic isolated world creation on new document. r=remote-protocol-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D75170
2020-05-14 15:23:10 +00:00
Henrik Skupin 0e1d2b6ea7 Bug 1593226 - [remote] Add support for frameId argument to Page.createIsolatedWorld. r=remote-protocol-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D74636
2020-05-14 15:23:47 +00:00
Henrik Skupin 4d6e8e2039 Bug 1593226 - [remote] Emit Runtime.executionContextCreated and Runtime.executionContextDestroyed events also for frames. r=remote-protocol-reviewers,maja_zf
With this patch both events will be emitted when sub frames are
loaded or destroyed.

Because more work is necessary before we can enable general frame
support in Remote Protocol all the code has been put behind the
preference "remote.frames.enabled'. Only if it's true (which is
not the default) the events are emitted.

Differential Revision: https://phabricator.services.mozilla.com/D74635
2020-05-14 14:56:57 +00:00
Henrik Skupin b31dd93847 Bug 1593226 - [remote] Only emit Runtime.executionContextsCleared events when Runtime is enabled. r=remote-protocol-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D74634
2020-05-14 14:56:08 +00:00
Henrik Skupin b515fabd59 Bug 1593226 - [remote] Return execution context instead of only the id in "enableRuntime" helper. r=remote-protocol-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D74633
2020-05-14 14:55:56 +00:00
Henrik Skupin f18df4ec89 Bug 1593226 - [remote] Create a single context observer per content session. r=remote-protocol-reviewers,maja_zf
Domains would have created their own instance of the context observer,
which results in duplicated event listeners and observer notifications
to be registered.

This is still not ideal for the observer notifications, which should be
registered only once, but still an improvement for now. Bug 1635568 will
finally fix that.

Differential Revision: https://phabricator.services.mozilla.com/D74632
2020-05-14 14:55:36 +00:00
Etienne Bruines 1f3b47a794 Bug 1637621 - [remote] Browser.getVersion returning version 1.3 r=remote-protocol-reviewers,whimboo
This behavior is in line with what Chrome does and correctly
describes the CDP version Firefox is (attempting to be)
implementing.

DONTBUILD

Differential Revision: https://phabricator.services.mozilla.com/D75112
2020-05-14 06:07:38 +00:00
Dan Glastonbury 731bb9bc75 Bug 1637493 - [remote] Set customUserAgent from Parent process. r=remote-protocol-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D75029
2020-05-14 05:51:46 +00:00
Christoph Kerschbaumer 026a7442f3 Bug 1636900: Remove TYPE_XBL from nsIContentPolicy. r=remote-protocol-reviewers,emilio,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D74835
2020-05-13 06:53:28 +00:00
Etienne Bruines eceac4afa1 Bug 1553849 - [remote] Add offline mode support to Network.emulateNetworkConditions r=whimboo,remote-protocol-reviewers,maja_zf
Implements the Chrome Devtools Protocol (CDP) command
Network.emulateNetworkConditions partially. At the moment,
only "offline" is emulated, all other arguments are ignored.

Differential Revision: https://phabricator.services.mozilla.com/D73211
2020-05-12 11:01:10 +00:00
Henrik Skupin b87caead47 Bug 1636557 - [remote] Return class name and description for DOM nodes in Runtime.callFunctionOn and Runtime.evalute. r=remote-protocol-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D74454
2020-05-09 15:06:30 +00:00
Henrik Skupin aa232e7905 Bug 1631089 - [remote] Force sRGB tag for generated screenshots. r=remote-protocol-reviewers,jgraham
With full color management enabled in bug 455077, generated
screenshots will not be saved as sRGB when the display has
a different ICC profile. As long as bug 1615395 hasn't been
fixed, force screenshots to be saved as sRGB.

Differential Revision: https://phabricator.services.mozilla.com/D74007
2020-05-08 09:31:36 +00:00
Bogdan Tara 33b760bde5 Backed out changeset 5deb673380d6 (bug 1631089) for causing bug 1635861 CLOSED TREE 2020-05-06 22:11:56 +03:00
Henrik Skupin c9cbf120ba Bug 1631089 - [remote] Force sRGB tag for generated screenshots. r=remote-protocol-reviewers,jgraham
With full color management enabled in bug 455077, generated
screenshots will not be saved as sRGB when the display has
a different ICC profile. As long as bug 1615395 hasn't been
fixed, force screenshots to be saved as sRGB.

Differential Revision: https://phabricator.services.mozilla.com/D74007
2020-05-06 13:11:45 +00:00
Etienne Bruines da5b77f74b Bug 1635496 - [remote] Fixed dispatchMouseEvent to not await undefined promises. r=remote-protocol-reviewers,whimboo
The "this" state is not persistent across spawn-calls, using "this" in
"function" also does not make a whole lot of sense.

In order to persist the Promise across spawn-calls, the value is stored
in "content" instead.

Since one cannot reliably return an Event from SpecialPowers.spawn (due
to serialization issues), we are awaiting them instead of returning.

Differential Revision: https://phabricator.services.mozilla.com/D73913
2020-05-05 20:04:16 +00:00
Maja Frydrychowicz ad74e45a42 Bug 1633433 - Wait for frame navigation and improve logging r=remote-protocol-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D73274
2020-05-04 19:06:16 +00:00
Maja Frydrychowicz 0fe99be5b1 Bug 1634691 - Return early in Page.navigate for all non-http traffic r=remote-protocol-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D73460
2020-05-04 14:46:53 +00:00
Maja Frydrychowicz e23ce2e143 Bug 1634691 - Decouple Target id from browsing context id r=remote-protocol-reviewers,whimboo
This fixes exceptions hit in destructors when the browsing context
is null. We encounter this when navigating to file: urls, for example,
in which case the target doesn't have a browsing context id.

Differential Revision: https://phabricator.services.mozilla.com/D73459
2020-05-04 14:46:46 +00:00
Henrik Skupin 5a1ca8c5b1 Bug 1634029 - [remote] Integrate WindowObserver into TabObserver. r=remote-protocol-reviewers,maja_zf
The WindowObserver class is only used by the TabObserver, and as such
can easily be integrated transparently. This also removes the extra
events as being emitted for opening and closing XUL windows.

Differential Revision: https://phabricator.services.mozilla.com/D73044
2020-04-30 02:12:26 +00:00
Henrik Skupin 9f2bbf709c Bug 1634029 - [remote] Simplify handling of created DOMWindow's. r=remote-protocol-reviewers,maja_zf
The changes align our code to other instances of nsIWindowMediatorListener
usage in-tree, which always rely on the "load" event. Also "interactive"
isn't a ready state a XULWindow can ever be in, it's only used for content
windows.

Differential Revision: https://phabricator.services.mozilla.com/D73043
2020-04-30 04:30:33 +00:00
Henrik Skupin 06d9e227d0 Bug 1634029 - [remote] Re-organize observer modules into a single directory. r=remote-protocol-reviewers,maja_zf
To better keep track of available observer classes
it's better to have them all in the same folder.

While moving files around the patch also renames
the TabObserver module to TargetObserver, which
would allow us to add target observers for workers
in the future.

Differential Revision: https://phabricator.services.mozilla.com/D73042
2020-04-30 00:33:25 +00:00
jayati 0881978969 Bug 1620438 - Remove references to extensions.webservice.discoverURL. r=robwu,remote-protocol-reviewers,marionette-reviewers,perftest-reviewers,whimboo,sparky
Differential Revision: https://phabricator.services.mozilla.com/D71203
2020-04-27 14:36:04 +00:00
Maja Frydrychowicz b0c8cf0cf7 Bug 1633042 - [remote] Compare frame id after load event r=remote-protocol-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D72559
2020-04-27 15:04:51 +00:00
Maja Frydrychowicz 14c71105a6 Bug 1599257 - [puppeteer] Update tests r=remote-protocol-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D71870
2020-04-24 16:30:29 +00:00
Maja Frydrychowicz cb6f9945e3 Bug 1599257 - [remote] Block Page.navigate until navigation request is done r=remote-protocol-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D71657
2020-04-24 16:50:44 +00:00
Maja Frydrychowicz dae2e21b0f Bug 1599257 - [remote] Remove dead code r=remote-protocol-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D71656
2020-04-24 16:30:03 +00:00
Maja Frydrychowicz 79db5e93aa Bug 1599257 - [remote] Create one NetworkObserver per Session r=remote-protocol-reviewers,whimboo
NetworkObserver will be used by both Network and Page domains.

Differential Revision: https://phabricator.services.mozilla.com/D71655
2020-04-24 16:29:56 +00:00
Maja Frydrychowicz 9c69406a63 Bug 1599257 - [remote] Move "Page.navigate" to parent process r=remote-protocol-reviewers,whimboo
This facilitates monitoring the navigation response.

The remaining work for moving navigation-related code into
the parent process should be done in Bug 1612538.

Differential Revision: https://phabricator.services.mozilla.com/D71654
2020-04-24 16:29:43 +00:00
Tooru Fujisawa 2108f90fcf Bug 1623965 - Improve error message when binary not found while testing. r=glandium,remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,Bebe,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D67726
2020-04-21 11:58:04 +00:00
Henrik Skupin e4a357c0d2 Bug 1605359 - [remote] Page.getFrameTree has to return details for all frames in the current tab. r=remote-protocol-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D71608
2020-04-21 01:37:36 +00:00
Henrik Skupin 5bffe12d30 Bug 1599413 - [remote] Add executeSoon to sync helper methods. r=remote-protocol-reviewers,jgraham
There are needs to delay the execution of code on the main thread
until the next tick of the event loop has happened.

Differential Revision: https://phabricator.services.mozilla.com/D71291
2020-04-17 09:08:30 +00:00
Henrik Skupin def4b7f1d6 Bug 1628344 - [remote] Return DOM.Node “attributes” for DOM.describeNode. r=remote-protocol-reviewers,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D70426

--HG--
extra : moz-landing-system : lando
2020-04-09 19:11:09 +00:00
Henrik Skupin 8f25961e38 Bug 1628578 - [remote] Update puppeteer test expectation status for console messages in detached iframes. r=remote-protocol-reviewers,maja_zf
DONTBUILD

Differential Revision: https://phabricator.services.mozilla.com/D70301

--HG--
extra : moz-landing-system : lando
2020-04-09 13:45:52 +00:00
Henrik Skupin ef795fd2ca Bug 1627780 - [remote] Add status mapping for Mocha's "CRASHED" status. r=remote-protocol-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D70039

--HG--
extra : moz-landing-system : lando
2020-04-07 15:25:52 +00:00
Henrik Skupin 0598c8a005 Bug 1626526 - [remote] Don't emit internal network request events for invalid top frame elements. r=remote-protocol-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D69194

--HG--
extra : moz-landing-system : lando
2020-04-01 13:29:15 +00:00
Henrik Skupin df420b9588 Bug 1607562 - [remote] Update puppeteer unit tests and expectation data. r=remote-protocol-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D68638

--HG--
extra : moz-landing-system : lando
2020-03-31 12:10:00 +00:00
Henrik Skupin 3148bbdb17 Bug 1607562 - [remote] Basic implementation for DOM.resolveNode. r=remote-protocol-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D68637

--HG--
extra : moz-landing-system : lando
2020-03-31 13:47:00 +00:00
Henrik Skupin 6d28f407dd Bug 1607560 - [remote] Basic implementation for DOM.describeNode. r=remote-protocol-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D66937

--HG--
extra : moz-landing-system : lando
2020-03-31 14:33:38 +00:00
Henrik Skupin 83ef5bf1cc Bug 1624785 - [remote] Split-up long running test file browser_callFunctionOn.js. r=remote-protocol-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D68269

--HG--
extra : moz-landing-system : lando
2020-03-27 14:12:55 +00:00
Henrik Skupin 04c52c78ff Bug 1624046 - [remote] Update puppeteer-expected.json for insertion order. r=remote-protocol-reviewers,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D68159

--HG--
extra : moz-landing-system : lando
2020-03-25 11:54:16 +00:00
Henrik Skupin edfe497591 Bug 1623581 - [puppeteer] Update expected tests for Puppeteer. r=remote-protocol-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D67844

--HG--
extra : moz-landing-system : lando
2020-03-24 21:49:08 +00:00
Henrik Skupin 67dcc52487 Bug 1623484 - [remote] Runtime.evaluate and Runtime.callFunctionOn return wrong data for Symbol and BigInt types. r=remote-protocol-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D67843

--HG--
extra : moz-landing-system : lando
2020-03-24 20:33:10 +00:00
Henrik Skupin 01bd8f19db Bug 1623581 - [remote] Add "awaitPromise" support to Runtime.evaluate. r=remote-protocol-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D67842

--HG--
extra : moz-landing-system : lando
2020-03-24 20:34:54 +00:00
Henrik Skupin 2d184d685d Bug 1623581 - [remote] Add "returnByValue" support to Runtime.evaluate. r=remote-protocol-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D67841

--HG--
extra : moz-landing-system : lando
2020-03-24 20:32:19 +00:00
Henrik Skupin bc1a51934e Bug 1623581 - [remote] Refactor Runtime.evaluate and Runtime.callFunctionOn browser chrome tests. r=remote-protocol-reviewers,maja_zf
Tests are mixing APIs between each other, which this patch removes.

Also error messages have been adjusted for both methods to
be on par with Chrome.

Differential Revision: https://phabricator.services.mozilla.com/D67840

--HG--
extra : moz-landing-system : lando
2020-03-24 20:32:15 +00:00
James Graham 8e644c82a1 Bug 1624046 - Always write results with --write-results, r=remote-protocol-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D67861

--HG--
extra : moz-landing-system : lando
2020-03-23 15:25:10 +00:00
James Graham 39d978e838 Bug 1624046 - Fix the ordering of puppeteer expected data, r=remote-protocol-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D67859

--HG--
extra : moz-landing-system : lando
2020-03-23 15:25:33 +00:00
Maja Frydrychowicz fe363faa5c Bug 1612174 - [remote] Update puppeteer test expectations r=remote-protocol-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D67972

--HG--
extra : moz-landing-system : lando
2020-03-24 12:53:12 +00:00
Maja Frydrychowicz 7ecfb52ab1 Bug 1612174 - [remote] Emit "init" lifecycleEvent when readyState is "loading" r=remote-protocol-reviewers,whimboo
Evaluating `document.open` + `write` + `close` triggers the `readyState`
to change to "loading". Puppeteer, for example, relies on a seeing an
"init" life cycle event in that case for their `Page.setContent` method.

Also move "Page.loadEventFired" to be triggered by an actual "load"
instead of "pagehide", which we don't see after a `document.write`.

Differential Revision: https://phabricator.services.mozilla.com/D67702

--HG--
extra : moz-landing-system : lando
2020-03-24 07:46:37 +00:00
Tom Schuster 5eb9932e47 Bug 1621813 - Remove nsIScriptError.exceptionFlag. r=mccr8
I made some changes in preparation for removing nsIScriptError.flags in favor
of nsIConsoleMessage.logLevel.

Differential Revision: https://phabricator.services.mozilla.com/D66878

--HG--
extra : moz-landing-system : lando
2020-03-19 21:31:44 +00:00
James Graham 01263f8b95 Bug 1622906 - Disabling tests is never unexpected, r=remote-protocol-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D67030

--HG--
extra : moz-landing-system : lando
2020-03-19 11:06:42 +00:00
James Graham 865cc5f942 Bug 1623029 - Add --subset to puppeteer-test to support running a subset of tests, r=remote-protocol-reviewers,maja_zf,whimboo
This prevents the missing tests check from happening.

Differential Revision: https://phabricator.services.mozilla.com/D67160

--HG--
extra : moz-landing-system : lando
2020-03-18 12:27:39 +00:00
James Graham cb738d610a Bug 1622446 - Make tbpl treat missing results as unexpected, r=remote-protocol-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D66946

--HG--
extra : moz-landing-system : lando
2020-03-16 14:46:25 +00:00
James Graham 97d4c625a2 Bug 1622446 - Fix default value for expected status, r=remote-protocol-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D66945

--HG--
extra : moz-landing-system : lando
2020-03-16 12:42:26 +00:00
Ed Lee acb960676c Bug 1620556 - Automatic code fixes for Prettier 1.19.1 upgrade. r=Standard8,remote-protocol-reviewers,marionette-reviewers,webcompat-reviewers,perftest-reviewers,sparky,whimboo,denschub
Differential Revision: https://phabricator.services.mozilla.com/D66128

--HG--
extra : moz-landing-system : lando
2020-03-13 23:38:52 +00:00
Maja Frydrychowicz 21d8ce86a1 Bug 1622363 - (docs) Fix communication link
Differential Revision: https://phabricator.services.mozilla.com/D66814

--HG--
extra : moz-landing-system : lando
2020-03-13 18:52:00 +00:00
Tom Schuster ff852cea9c Bug 1621817 - Remove nsIScriptError.strictFlag. r=remote-protocol-reviewers,mccr8,whimboo
I am not sure if you are okay with reviewing all those test changes.
Sadly it's not that easy to search through our huge JavaScript code
base for some generic name like 'isStrict'.

Differential Revision: https://phabricator.services.mozilla.com/D66573

--HG--
extra : moz-landing-system : lando
2020-03-13 16:12:16 +00:00
James Graham a871058cb3 Bug 1622087 - Handle TERMINATED status in puppeteer tests, r=remote-protocol-reviewers,maja_zf
It's uncelar if this should be mapped to CRASH or ERROR, but
it probably doesn't matter much; it seems to be a fatal error
that terminates the rest of the run, but we don't get a stack.

I arbitarily chose CRASH.

Differential Revision: https://phabricator.services.mozilla.com/D66753

--HG--
extra : moz-landing-system : lando
2020-03-13 12:37:54 +00:00
James Graham fd7739a307 Bug 1607474 - Add initial expected data for puppeteer tests, r=remote-protocol-reviewers,maja_zf
Depends on D65701

Differential Revision: https://phabricator.services.mozilla.com/D65702

--HG--
extra : moz-landing-system : lando
2020-03-10 14:08:49 +00:00
James Graham 609861f3ed Bug 1607474 - Add logging and expected results to puppeteer-test, r=remote-protocol-reviewers,maja_zf
Use mozlog to handle logging from the `mach puppeteer-test`
command. This makes the output compatible with treeherder and allows
generating error summaries that can be used by the push-health
feature.

Presently the integration is based on parsing the output from mocha
with regex since that's easy to implement without digging into the
many layers of js code too much. In time it might make sense to
replace this with a custom output formatter integrated into mocha
itself.

We also add the ability to store and use expected results, so that we
are able to detect regressions even when not all test are passing. The
format of expected results is Dict[String, List[String]], where the
keys are test names and the values are lists of statuses. If the list
has more than one value the remaining values are treated as possible
intermittent statuses.

The updated expected statues can be generated by passing the
--write-results flag to the mach command.

Differential Revision: https://phabricator.services.mozilla.com/D65700

--HG--
extra : moz-landing-system : lando
2020-03-10 15:19:16 +00:00
Mark Banner 2c4e35b0a6 Bug 1620218 - Automatic code fixes for Prettier 1.18.2 upgrade. r=mossop,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D65509

--HG--
extra : moz-landing-system : lando
2020-03-08 21:45:16 +00:00
Henrik Skupin c1765e69b2 Bug 1619548 - [remote] Update expectation states of Puppeteer unit tests to pass on MacOS. r=remote-protocol-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D65141

--HG--
extra : moz-landing-system : lando
2020-03-03 18:05:42 +00:00
Henrik Skupin 441d61323b Bug 1615360 - [remote] Add BigInt support to Runtime.callFunctionOn. r=remote-protocol-reviewers,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D64466

--HG--
extra : moz-landing-system : lando
2020-02-27 10:56:48 +00:00
Matt Woodrow f5dd8136c6 Bug 1615967 - Move customUserAgent to BrowsingContext. r=nika,remote-protocol-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D63040

--HG--
extra : moz-landing-system : lando
2020-02-24 02:15:03 +00:00
Maja Frydrychowicz 2536ddcb74 Bug 1614108 - Truncate Remote Agent log messages; r=remote-protocol-reviewers,whimboo
Copy format module from Marionette.

Differential Revision: https://phabricator.services.mozilla.com/D62344

--HG--
extra : moz-landing-system : lando
2020-02-15 08:22:56 +00:00
Henrik Skupin 825278c69a Bug 1610374 - [remote] Page.navigateToHistoryEntry() has to wait for requested index been set. r=remote-protocol-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D62658

--HG--
extra : moz-landing-system : lando
2020-02-15 08:14:40 +00:00
Mihai Alexandru Michis 683caf5062 Backed out changeset 2aad23c07f68 (bug 1610374) for causing lint failures in remote/test/browser/page/head.js
CLOSED TREE
2020-02-15 03:51:21 +02:00
Henrik Skupin 8e15f0c1c5 Bug 1610374 - [remote] Page.navigateToHistoryEntry() has to wait for requested index been set. r=remote-protocol-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D62658

--HG--
extra : moz-landing-system : lando
2020-02-14 22:49:45 +00:00
Henrik Skupin 85d206a203 Bug 1615368 - [remote] Response for Runtime.callFunctionOn with returnbyValue misses "type" and "description". r=remote-protocol-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D62779

--HG--
extra : moz-landing-system : lando
2020-02-14 20:33:05 +00:00
Henrik Skupin 86186350f2 Bug 1615260 - [remote] Return correct properties for unserializable values in Runtime.callFunctionOn. r=remote-protocol-reviewers,maja_zf
Values like NaN, Infinity, -Infinity are not serializable and have
to be returned via the unserializable property and not as value.

This patch also adds the type and description properties as
Puppeteer tests require, but leaves out support for
BigInt (bug 1615360).

Differential Revision: https://phabricator.services.mozilla.com/D62778

--HG--
extra : moz-landing-system : lando
2020-02-14 20:33:16 +00:00
Mark Banner e4edff6d1a Bug 1614891 - Clarify the ESLint situation around some remote/ files. Remove unnecessary remote/test/demo.js. r=remote-protocol-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D62547

--HG--
extra : moz-landing-system : lando
2020-02-13 09:23:19 +00:00
Mihai Alexandru Michis 5e61330ed7 Bug 1610377 - Fix lint error in remote/test/browser/page/head.js a=lint-fix
CLOSED TREE

--HG--
extra : amend_source : 2c8efc710f46d6701e7748a625e3841fb087af37
2020-02-13 11:24:36 +02:00
Henrik Skupin 6d33e6a9bf Bug 1610377 - [remote] Wait for history index selected when using gBrowser.gotoIndex(). r=remote-protocol-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D62589

--HG--
extra : moz-landing-system : lando
2020-02-13 08:56:04 +00:00
Henrik Skupin ed04cb5f4b Bug 1610377 - [remote] Move session history navigation code into the parent process. r=remote-protocol-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D62588

--HG--
extra : moz-landing-system : lando
2020-02-13 08:55:27 +00:00
David Burns 5942abaa97 Bug 1588114 - [remote] Implement Network.setCookie and Network.setCookies. r=remote-protocol-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D62119

--HG--
extra : moz-landing-system : lando
2020-02-10 21:14:16 +00:00
Maja Frydrychowicz 5d76a2ec16 Bug 1611274 - [puppeteer] Vendor in fixes for Launcher tests
Differential Revision: https://phabricator.services.mozilla.com/D62343

--HG--
extra : moz-landing-system : lando
2020-02-10 21:07:27 +00:00
Noemi Erli e3e00d66cb Bug 1610382 - Disable browser_setCacheDisabled.js for frequent failures r=remote-protocol-reviewers,gbrown,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D61771

--HG--
extra : moz-landing-system : lando
2020-02-06 10:23:15 +00:00
Coroiu Cristina c0261da5cd Bug 1610374 - Disable browser_navigateToHistoryEntry.js on linux1804 and win for frequent failures r=remote-protocol-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D61410

--HG--
extra : moz-landing-system : lando
2020-02-03 08:21:02 +00:00
Henrik Skupin eb1a9e56fb Bug 1587845 - [remote] ESLint fix for browser_captureScreenshot.js.
Differential Revision: https://phabricator.services.mozilla.com//D60909
2020-01-24 00:07:00 +02:00
Henrik Skupin 7fa9eac4b0 Bug 1587845 - [remote] Add "clip" argument to Page.captureScreenshot. r=remote-protocol-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D57793

--HG--
extra : moz-landing-system : lando
2020-01-23 21:31:30 +00:00
Henrik Skupin bc29970672 Bug 1587845 - [remote] Use _contentRect as name for internal helper that returns the content bounding box. r=remote-protocol-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D60749

--HG--
extra : moz-landing-system : lando
2020-01-23 01:51:53 +00:00
Henrik Skupin 4b34baa214 Bug 1607823 - [remote] Use ContentTask.spawn instead of SpecialPowers.spawn in browser_setCacheDisabled.js. r=remote-protocol-reviewers,maja_zf
Depends on D60386

Differential Revision: https://phabricator.services.mozilla.com/D60417

--HG--
extra : moz-landing-system : lando
2020-01-20 19:38:03 +00:00
Henrik Skupin de8109653e Bug 1609627 - [remote] Implement Page.navigateToHistoryEntry. r=remote-protocol-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D60122

--HG--
extra : moz-landing-system : lando
2020-01-20 18:59:08 +00:00
Henrik Skupin 4645068db6 Bug 1609163 - [remote] Implement Page.getNavigationHistory. r=remote-protocol-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D60023

--HG--
extra : moz-landing-system : lando
2020-01-20 18:59:20 +00:00
Maja Frydrychowicz 22aa29f8b3 Bug 1602686 - Check that navigation has completed; r=remote-protocol-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D59914

--HG--
extra : moz-landing-system : lando
2020-01-15 10:10:15 +00:00
Henrik Skupin 3938c43161 Bug 1544417 - [remote] Implement Emulation.setDeviceMetricsOverride. r=remote-protocol-reviewers,maja_zf,ato
Differential Revision: https://phabricator.services.mozilla.com/D58935

--HG--
extra : moz-landing-system : lando
2020-01-14 15:41:06 +00:00
Henrik Skupin 6050750472 Bug 1590102 - [remote] Implement Network.deleteCookies. r=remote-protocol-reviewers,ato
Differential Revision: https://phabricator.services.mozilla.com/D59431

--HG--
extra : moz-landing-system : lando
2020-01-13 16:02:09 +00:00
Andreas Tolfsen 4e8d36ea9b bug 1606828: remote: add -v[v] flag to "./mach puppeteer-test" r=remote-protocol-reviewers,whimboo
This introduces a -v[v] flag to the "./mach puppeteer-test" command
for increasing the logging verbosity of the remote agent in Gecko.
This can be used as a shorthand for --setpref="remote.log.level=<level>".

A single -v will enable log messages up to debug level, and two
-vv will enable all log messages up to trace level.

Differential Revision: https://phabricator.services.mozilla.com/D58619

--HG--
extra : moz-landing-system : lando
2020-01-13 11:39:33 +00:00
Khushal Sahni d7f74c0866 Bug 1604143 - Make browser-chrome task function arguments an object. r=whimboo,remote-protocol-reviewers,ato
Differential Revision: https://phabricator.services.mozilla.com/D59082

--HG--
extra : moz-landing-system : lando
2020-01-13 08:52:44 +00:00
Andreas Tolfsen b1d2305ed8 bug 1603078: remote: add --enable-fission to "./mach puppeteer-test" r=remote-protocol-reviewers,whimboo
The "./mach puppeteer-test" command now takes a new flag,
--enable-fission, which will set the fission.autostart preference to true.

Differential Revision: https://phabricator.services.mozilla.com/D58512

--HG--
extra : moz-landing-system : lando
2020-01-06 09:55:01 +00:00
Andreas Tolfsen cfb4f745d1 bug 1603078: remote: fix passing extra prefs to Puppeteer r=remote-protocol-reviewers,maja_zf
Puppeteer accepts an environmental variable EXTRA_LAUNCH_OPTIONS
that is a JSON encoded object as a string, containing additional
configuration to use when running tests.

This takes an extraPrefsFirefox key which is an object
mapping preference names to values.  This is extracted in
remote/test/puppeteer/lib/Launcher.js:390 and later written to a
fresh profile in :515.

It appears remote/mach_commands.py has left out the "Firefox" appendix.

Differential Revision: https://phabricator.services.mozilla.com/D58511

--HG--
extra : moz-landing-system : lando
2020-01-10 14:56:21 +00:00
Henrik Skupin 210002ad71 Bug 1596136 - [remote] "Emulation.setUserAgentOverride" should only affect the current target. r=remote-protocol-reviewers,ato
Differential Revision: https://phabricator.services.mozilla.com/D58164

--HG--
extra : moz-landing-system : lando
2020-01-08 14:04:55 +00:00
Henrik Skupin 2248eb2510 Bug 1596136 - [remote] Remove openTab() and openWindow() helpers from target tests head.js. r=remote-protocol-reviewers,ato
Bug 1605722 already added those helpers to the global head.js file.
As such they can be removed from the target's head.js file.

Differential Revision: https://phabricator.services.mozilla.com/D58163

--HG--
extra : moz-landing-system : lando
2020-01-08 13:26:42 +00:00
Henrik Skupin 15e30b89a5 Bug 1607461 - [remote] Implement Network.setCacheDisabled. r=remote-protocol-reviewers,ato
Differential Revision: https://phabricator.services.mozilla.com/D58996

--HG--
extra : moz-landing-system : lando
2020-01-08 12:40:49 +00:00
Henrik Skupin 986231c6dc Bug 1596601 - [remote] Skip some more crashing Puppeteer unit tests. r=remote-protocol-reviewers,ato
Depends on D59006

Differential Revision: https://phabricator.services.mozilla.com/D59088

--HG--
extra : moz-landing-system : lando
2020-01-08 12:14:57 +00:00
Henrik Skupin c01d481fbf Bug 1596601 - [remote] Add place-holder for Page.setInterceptFileChooserDialog. r=remote-protocol-reviewers,ato
This feature is experimental and not required to get implemented
on our end as of now. As such adding a place-holder will be enough.

Differential Revision: https://phabricator.services.mozilla.com/D59006

--HG--
extra : moz-landing-system : lando
2020-01-08 11:01:17 +00:00
Andreas Tolfsen e221feba47 bug 1607500: remote: preserve task name in add_agent_task() r=remote-protocol-reviewers,whimboo
Similarly to bug 1603451, the name of the function passed to the
specialised add_agent_task() is lost because of the anonymous
function wrapper inside.

Differential Revision: https://phabricator.services.mozilla.com/D58967

--HG--
extra : moz-landing-system : lando
2020-01-08 08:34:46 +00:00
Andreas Tolfsen 8b58648e51 bug 1606612: remote: pretty-print WebSocket JSON payloads when verbose logging r=remote-protocol-reviewers,whimboo
When remote.log.level is Log.Level.Info or above, verbose logging
is enabled and we pretty-print JSON payloads in requests to the
HTTPD in JSONHandler.

This patch matches the behaviour of the JSONHandler logging, where
JSON payloads are logged to stdout with special formatting before
being transmitted across WebSocket connections.

Differential Revision: https://phabricator.services.mozilla.com/D58506

--HG--
extra : moz-landing-system : lando
2020-01-06 09:37:02 +00:00
Andreas Tolfsen 4f8001ba30 bug 1606612: remote: stop sanitizing JSON payloads from the HTTPD r=remote-protocol-reviewers,whimboo
The CDP protocol expects consistent types to be returned.  By filtering
out null values and strings of zero length we break this promise.

Differential Revision: https://phabricator.services.mozilla.com/D58620

--HG--
extra : moz-landing-system : lando
2020-01-07 16:22:49 +00:00
Andreas Tolfsen cdc44450f5 bug 1598286: remote: upgrade to http 0.2 r=remote-protocol-reviewers,whimboo
Upgrading to http 0.2 will give us bytes ^0.5 which removes
a dependency on iovec.  iovec is problematic for us because it
depends on a version of winapi that does not compile on Windows AArch64.

The effect of this should be that the remote agent is now possible
to compile on Windows AArch64.

Differential Revision: https://phabricator.services.mozilla.com/D58765

--HG--
extra : moz-landing-system : lando
2020-01-06 14:24:17 +00:00
Henrik Skupin 29313adecb Bug 1600055 - [remote] Switch from using "outerWindowID" to "browsingContext.id". r=remote-protocol-reviewers,ato
Differential Revision: https://phabricator.services.mozilla.com/D58764

--HG--
extra : moz-landing-system : lando
2020-01-06 12:55:35 +00:00
Henrik Skupin 7223ef9216 Bug 1605650 - [remote] Temporarily skip test browser_getCookies.js for ccov tests on Windows 10. r=remote-protocol-reviewers,ato
Differential Revision: https://phabricator.services.mozilla.com/D58746

--HG--
extra : moz-landing-system : lando
2020-01-06 09:52:30 +00:00
Andreas Tolfsen 9444fa34c7 bug 1606818: remote: use nsIHttpServer for unregistering handler r=remote-protocol-reviewers,whimboo
nsIHttpServer.registerPathHandler() is designed to take null as
the second argument to unregister path handlers.  This saves us
from having to modify its internal state, and fixes a minor TODO
in the remote agent initialisation code.

Differential Revision: https://phabricator.services.mozilla.com/D58605

--HG--
extra : moz-landing-system : lando
2020-01-03 16:19:33 +00:00
Andreas Tolfsen 4ff0799afe bug 1565164: remote: rename Domains DomainCache r=remote-protocol-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D58610

--HG--
rename : remote/domains/Domains.jsm => remote/domains/DomainCache.jsm
rename : remote/test/unit/test_Domains.js => remote/test/unit/test_DomainCache.js
extra : moz-landing-system : lando
2020-01-06 09:32:11 +00:00
Andreas Tolfsen 112d47f40c bug 1565164: remote: rename Targets TargetList r=remote-protocol-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D58609

--HG--
rename : remote/targets/Targets.jsm => remote/targets/TargetList.jsm
extra : moz-landing-system : lando
2020-01-06 09:32:09 +00:00
Andreas Tolfsen 1b5c764457 bug 1606834: remote: document fdescribe(), fit(), and Mocha flags r=remote-protocol-reviewers,whimboo
We were lacking documentation on how to run inidividual Puppeteer
tests.  It turns out this is not possible yet to do on a per-file
basis, like other test harnesses.

Instead, suggest use of fdescribe()/fit() and recommend some useful
Mocha flags.

Differential Revision: https://phabricator.services.mozilla.com/D58618

--HG--
extra : moz-landing-system : lando
2020-01-03 16:11:19 +00:00
Andreas Tolfsen d9f8d5f71e bug 1606317: remote: revert "Disable Puppeteer tests in ignorehttpserrors.spec.js which crash the browser." r=remote-protocol-reviewers,whimboo
This reverts the commit:

	git:	d640ab64b993431099cd9205297bfff464d76927
	hg:	9f6327c0d8298ec58a6c9f8d51526872d01d765e

Differential Revision: https://phabricator.services.mozilla.com/D58503

--HG--
extra : moz-landing-system : lando
2020-01-03 13:44:39 +00:00
Coroiu Cristina 9513ceda80 Backed out 3 changesets (bug 1606317) for build bustage at build/src/security/manager/ssl/nsCertOverrideService.cpp on a CLOSED TREE
Backed out changeset 9c34a0a40e62 (bug 1606317)
Backed out changeset 467db2b310a7 (bug 1606317)
Backed out changeset b12669c3ade7 (bug 1606317)
2020-01-03 15:11:29 +02:00
Andreas Tolfsen 27106918c7 bug 1606317: remote: revert "Disable Puppeteer tests in ignorehttpserrors.spec.js which crash the browser." r=remote-protocol-reviewers,whimboo
This reverts the commit:

	git:	d640ab64b993431099cd9205297bfff464d76927
	hg:	9f6327c0d8298ec58a6c9f8d51526872d01d765e

Differential Revision: https://phabricator.services.mozilla.com/D58503

--HG--
extra : moz-landing-system : lando
2020-01-03 10:16:13 +00:00
Henrik Skupin db8cf153cd Bug 1593979 - [remote] Always include global head.js and chrome-remote-interface.js. r=remote-protocol-reviewers,ato
Differential Revision: https://phabricator.services.mozilla.com/D54568

--HG--
extra : moz-landing-system : lando
2020-01-03 09:02:15 +00:00
Henrik Skupin b35d14d120 Bug 1605722 - [remote] Enable target discovery by default for browser chrome tests. r=remote-protocol-reviewers,ato
Differential Revision: https://phabricator.services.mozilla.com/D58162

--HG--
extra : moz-landing-system : lando
2020-01-02 21:13:20 +00:00
Brindusan Cristian 87aed6f2be Backed out 2 changesets (bug 1606612) for 'remote' failures at browser_scriptToEvaluateOnNewDocument.js. CLOSED TREE
Backed out changeset d0ff02a17ad9 (bug 1606612)
Backed out changeset 4368466b495b (bug 1606612)
2020-01-02 18:19:40 +02:00
Andreas Tolfsen 986fa21674 bug 1606613: remote: stop logging handled errors r=remote-protocol-reviewers,whimboo
Errors that arise from use of the protocol, for example by the client
passing in the wrong argument or an operationg being unsupported, are
returned to the client.  Since these are not inherent implementation
problems there is no point to double-logging them in the server.

This is a left-over from when the remote agent was in a prototype
stage and we couldn't always rely on the Puppeteer client to
interact with Firefox correctly.

Differential Revision: https://phabricator.services.mozilla.com/D58508

--HG--
extra : moz-landing-system : lando
2020-01-02 12:02:17 +00:00
Andreas Tolfsen d482c88ae3 bug 1606612: remote: pretty-print WebSocket JSON payloads when verbose logging r=remote-protocol-reviewers,whimboo
When remote.log.level is Log.Level.Info or above, verbose logging
is enabled and we pretty-print JSON payloads in requests to the
HTTPD in JSONHandler.

This patch matches the behaviour with JSON payloads being transmitted
across WebSocket connections.

Differential Revision: https://phabricator.services.mozilla.com/D58506

--HG--
extra : moz-landing-system : lando
2020-01-02 13:08:54 +00:00
Andreas Tolfsen 4f915f8ab5 bug 1606612: remote: move payload sanitization to Protocol r=remote-protocol-reviewers,whimboo
Moving the JSON payload sanitisation function to Protocol.jsm
means we can share it across modules.

The patch also adds new tests.

Differential Revision: https://phabricator.services.mozilla.com/D58505

--HG--
extra : moz-landing-system : lando
2020-01-02 13:29:01 +00:00
Henrik Skupin 950468de8e Bug 1606290 - [remote] Disable more Puppeteer tests which crash the harness.
Depends on D58488

Differential Revision: https://phabricator.services.mozilla.com/D58489

--HG--
extra : moz-landing-system : lando
2020-01-01 18:50:48 +00:00
Henrik Skupin 0951041609 Bug 1606290 - [remote] Re-enable Puppeteer tests for Firefox which do not crash.
Depends on D58487

Differential Revision: https://phabricator.services.mozilla.com/D58488

--HG--
extra : moz-landing-system : lando
2020-01-01 18:28:34 +00:00
Henrik Skupin 7d9a72d23b Bug 1606317 - [remote] Disable Puppeteer tests in ignorehttpserrors.spec.js which crash the browser.
Differential Revision: https://phabricator.services.mozilla.com/D58487

--HG--
extra : moz-landing-system : lando
2020-01-01 18:51:51 +00:00
Mohit Singh 90811829d2 Bug 1601037 - options parameter set default to {} in Page.jsm:printToPDF() and IO.jsm:close() r=remote-protocol-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D58213

--HG--
extra : moz-landing-system : lando
2019-12-27 11:27:33 +00:00
Henrik Skupin 2dd64e92cd Bug 1590098 - [remote] Implement basic support for Network.getCookies. r=remote-protocol-reviewers,ato,maja_zf
This patch adds basic support for retrieving cookies,
which means that it returns the cookies for the currently
active target.

Hereby it has the following limitations:

1. It does not walk the frame tree, and as such only returns
the cookies from the top-level frame. Support for that will
be added once frames can correctly be handled, which means
once support for the JSWindowActor API has been landed.

2. The "urls" parameter is not supported because it is
unclear right now what it actually does. More investigation
is necessary before any implementation can happen.

3. There is no support for the file:// protocol yet.

4. Dot domains aren't taken care of yet.

Differential Revision: https://phabricator.services.mozilla.com/D57614

--HG--
extra : moz-landing-system : lando
2019-12-20 19:38:05 +00:00
Maja Frydrychowicz 84e1accdfe Bug 1605413 - Disable Puppeteer unit tests that crash the test harness
Differential Revision: https://phabricator.services.mozilla.com/D58008

--HG--
extra : moz-landing-system : lando
2019-12-20 17:38:57 +00:00
Maja Frydrychowicz 08af6c6582 Bug 1600959 - Implement Runtime.executionContextsCleared r=remote-protocol-reviewers,whimboo,ato
Differential Revision: https://phabricator.services.mozilla.com/D55868

--HG--
extra : moz-landing-system : lando
2019-12-19 19:58:52 +00:00
Andreas Tolfsen 5c0d22572b bug 1603451: remote: preserve test name from original task r=remote-protocol-reviewers,maja_zf,whimboo
The browser-chrome test name is derived from the function name.
The function name of the original task is lost when wrapped inside
the add_task() override in remote/test/browser/head.js.

This fixes the problem by rewriting the taskFn name on the new wrapper.

Differential Revision: https://phabricator.services.mozilla.com/D57079

--HG--
extra : moz-landing-system : lando
2019-12-18 14:58:30 +00:00
Andreas Tolfsen defc8d9410 bug 1603451: remote: document add_task() r=remote-protocol-reviewers,maja_zf,whimboo
The documentation for the overridden add_task() is quite poor.
Document it as to not confuse new developers why it is behaving
differently to the default bc add_task().

DONTBUILD

Differential Revision: https://phabricator.services.mozilla.com/D57078

--HG--
extra : moz-landing-system : lando
2019-12-18 12:53:52 +00:00
Mohit Singh d7b28ea9a2 Bug 1601037 - initialized option parameter present in 3 methods to default {} r=remote-protocol-reviewers,ato
Differential Revision: https://phabricator.services.mozilla.com/D57745

--HG--
extra : moz-landing-system : lando
2019-12-19 10:40:55 +00:00
Henrik Skupin 25fdbb9aff Bug 1599994 - [remote] Implement Page.printToPDF. r=remote-protocol-reviewers,ato,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D55961

--HG--
extra : moz-landing-system : lando
2019-12-16 16:19:04 +00:00
Henrik Skupin ce07f3fba4 Bug 1600058 - [remote] Implement IO.close. r=remote-protocol-reviewers,ato,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D55969

--HG--
extra : moz-landing-system : lando
2019-12-16 16:19:02 +00:00
Henrik Skupin 5a966347fc Bug 1600053 - [remote] Implement IO.read. r=remote-protocol-reviewers,baku,ato,maja_zf
This patch implements the IO.read() method to allow
reading streams for files and blobs.

Therefor all the methods in the IO domain need a registry
for streams. Those have to be stored globally because
they need to be kept existent across different client
connections.

Differential Revision: https://phabricator.services.mozilla.com/D55968

--HG--
extra : moz-landing-system : lando
2019-12-16 16:17:59 +00:00
Henrik Skupin 162084495c Bug 1600053 - [remote] Add registry for managing references to streams. r=remote-protocol-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D57304

--HG--
extra : moz-landing-system : lando
2019-12-16 16:17:47 +00:00
Kris Maglione 9853440599 Bug 1596918: Part 3b - Run code formatters on files changed by previous patch. r=mccr8,remote-protocol-reviewers,ato
Differential Revision: https://phabricator.services.mozilla.com/D53741

--HG--
extra : moz-landing-system : lando
2019-12-13 20:36:24 +00:00
Kris Maglione 94e3b0bd8d Bug 1596918: Part 3a - Scripted rewrite of most ContentTask.spawn calls to SpecialPowers.spawn calls. r=mccr8,remote-protocol-reviewers,ato
This is generally pretty straightforward, and rewrites nearly all calls. It
skips the ones that it can detect using frame script globals like
`sendAsyncMessage`, though.

Differential Revision: https://phabricator.services.mozilla.com/D53740

--HG--
extra : moz-landing-system : lando
2019-12-13 20:36:16 +00:00
Maja Frydrychowicz 260c75a1d1 Bug 1603266 - Flush irrelevant events when testing context creation; r=remote-protocol-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D57047

--HG--
extra : moz-landing-system : lando
2019-12-13 15:51:46 +00:00
Andreas Tolfsen b7a5c8548a bug 1600330: remote: test nsIRemoteAgent r=remote-protocol-reviewers,maja_zf,whimboo
Adds browser-chrome tests for the main entry point of the remote
agent, nsIRemoteAgent.

add_agent_task() wraps add_plain_task() (which again wraps the
original add_task()) so we can ensure that the agent isn't listening
before a test runs, and that any modified state such as preferences
is reset afterwards.

The tests rely heavily on the assumption that nsIRemoteAgent.close()
behaves as a no-op when the server is not listening.

This patch is a follow-up to bug 1590828.

Differential Revision: https://phabricator.services.mozilla.com/D55456

--HG--
extra : moz-landing-system : lando
2019-12-13 07:31:54 +00:00
Andreas Tolfsen ff89580849 bug 1600330: remote: add fail() browser-chrome test helper r=remote-protocol-reviewers,maja_zf
fail() will cause a test assertion failure equivalent to ok(false).

Differential Revision: https://phabricator.services.mozilla.com/D55455

--HG--
extra : moz-landing-system : lando
2019-12-13 07:30:23 +00:00
Henrik Skupin 947e858c46 Bug 1588622 - [remote] Implement "layoutViewport" and "contentSize" for Page.getLayoutMetrics. r=remote-protocol-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D56911

--HG--
extra : moz-landing-system : lando
2019-12-12 18:27:17 +00:00
Maja Frydrychowicz ab6bc896fd Bug 1597879 - Implement Page.addScriptToEvaluateOnNewDocument; r=remote-protocol-reviewers,whimboo,ato
Differential Revision: https://phabricator.services.mozilla.com/D55334

--HG--
extra : moz-landing-system : lando
2019-12-11 20:49:46 +00:00
shindli 91924fedc7 Backed out 9 changesets (bug 1596918) for causing mochitest permafailures in toolkit/content/tests/chrome/test_findbar_events.xhtml CLOSED TREE
Backed out changeset 45a1c42118f2 (bug 1596918)
Backed out changeset db09910ffa56 (bug 1596918)
Backed out changeset 5c9d9f141c10 (bug 1596918)
Backed out changeset 6a135670d603 (bug 1596918)
Backed out changeset 3a0184e0df72 (bug 1596918)
Backed out changeset 2f0036486823 (bug 1596918)
Backed out changeset a770c6d08d52 (bug 1596918)
Backed out changeset ef062eb7a6ee (bug 1596918)
Backed out changeset a6ea596e98db (bug 1596918)
2019-12-11 03:09:26 +02:00
Kris Maglione 3ca78ce8e3 Bug 1596918: Part 3b - Run code formatters on files changed by previous patch. r=mccr8,remote-protocol-reviewers,ato
Differential Revision: https://phabricator.services.mozilla.com/D53741

--HG--
extra : moz-landing-system : lando
2019-12-10 23:07:21 +00:00
Kris Maglione 16a9b29848 Bug 1596918: Part 3a - Scripted rewrite of most ContentTask.spawn calls to SpecialPowers.spawn calls. r=mccr8,remote-protocol-reviewers,ato
This is generally pretty straightforward, and rewrites nearly all calls. It
skips the ones that it can detect using frame script globals like
`sendAsyncMessage`, though.

Differential Revision: https://phabricator.services.mozilla.com/D53740

--HG--
extra : moz-landing-system : lando
2019-12-10 23:07:13 +00:00
Maja Frydrychowicz 9a359ea0c6 Bug 1597877 - Implement Page.createIsolatedWorld; r=remote-protocol-reviewers,whimboo,ato
This does not support the grantUniversalAccess parameter.
It just creates a new execution context.

Differential Revision: https://phabricator.services.mozilla.com/D55169

--HG--
extra : moz-landing-system : lando
2019-12-09 21:52:56 +00:00
Maja Frydrychowicz 8d42f7b01d Bug 1597877 - Make Runtime.enable/disable control notifications only; r=remote-protocol-reviewers,whimboo,ato
As noted in Bug 1602083, the CDP viewer implies that execution context management
is independent of the Runtime domain, which makes sense with the behaviour of methods
like Page.createIsolatedWorld.

This is a first step in that direction.

Depends on D55168

Differential Revision: https://phabricator.services.mozilla.com/D56279

--HG--
extra : moz-landing-system : lando
2019-12-09 21:52:10 +00:00
Maja Frydrychowicz af77524cfd Bug 1597877 - Allow many ExecutionContexts per inner window; r=remote-protocol-reviewers,ato,whimboo
Dismantle the assumption that there is one ExecutionContext per
inner window and generate a fresh id for each ExecutionContext
rather than reusing the inner window id.

Differential Revision: https://phabricator.services.mozilla.com/D55168

--HG--
extra : moz-landing-system : lando
2019-12-09 21:51:25 +00:00
Maja Frydrychowicz 838ecc262c Bug 1597877 - Identify internal methods in Runtime domain; r=remote-protocol-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D55167

--HG--
extra : moz-landing-system : lando
2019-12-09 21:50:39 +00:00
Maja Frydrychowicz bb71375e46 Bug 1597877 - Report name, origin, type in Runtime.executionContextCreated; r=remote-protocol-reviewers,ato,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D55166

--HG--
extra : moz-landing-system : lando
2019-12-09 21:49:56 +00:00
Maja Frydrychowicz aa3a55d740 Bug 1597877 - Make frameId a string; r=remote-protocol-reviewers,ato,whimboo
According to the CDP viewer, the type of FrameId is string.

Differential Revision: https://phabricator.services.mozilla.com/D55165

--HG--
extra : moz-landing-system : lando
2019-12-09 21:49:06 +00:00