Commit Graph

161 Commits

Author SHA1 Message Date
Henrik Skupin
d854295e0d Bug 1599773 - [remote] Implement Page.frameDetached. r=remote-protocol-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D71293
2020-05-18 18:34:49 +00:00
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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