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

550 Коммитов

Автор SHA1 Сообщение Дата
Andrea Marchesini 5ccae203ff Bug 1638358 - Cookie Schemeful Same-Site - part 3 - update add/addNative methods, r=mayhemer,remote-protocol-reviewers,marionette-reviewers,maja_zf,MattN,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D75627
2020-06-02 13:49:27 +00:00
Csoregi Natalia e960b9f449 Backed out 7 changesets (bug 1640405, bug 1638358) for failures on browser_webconsole_network_messages_status_code.js. CLOSED TREE
Backed out changeset ef5f7479ddf8 (bug 1640405)
Backed out changeset 286e0c83eb30 (bug 1638358)
Backed out changeset 89e396b2896e (bug 1638358)
Backed out changeset 33ad5fa05209 (bug 1638358)
Backed out changeset d213264c1379 (bug 1638358)
Backed out changeset 6bc05236afb4 (bug 1638358)
Backed out changeset 87e9d0ed3982 (bug 1638358)
2020-06-02 15:16:42 +03:00
Andrea Marchesini b4173bc59e Bug 1638358 - Cookie Schemeful Same-Site - part 3 - update add/addNative methods, r=mayhemer,remote-protocol-reviewers,marionette-reviewers,maja_zf,MattN,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D75627
2020-06-02 09:13:51 +00:00
Razvan Maries 79fe28f0d6 Backed out 6 changesets (bug 1638358) for perma failures on browser_webconsole_navigate_to_parse_error.js. CLOSED TREE
Backed out changeset beb85cf281d5 (bug 1638358)
Backed out changeset 39f2e21623aa (bug 1638358)
Backed out changeset 2c873c72bf1f (bug 1638358)
Backed out changeset e91292c7c719 (bug 1638358)
Backed out changeset 0219ef931cd9 (bug 1638358)
Backed out changeset 4ac06f3992f4 (bug 1638358)
2020-06-02 00:24:46 +03:00
Andrea Marchesini 848f1f0043 Bug 1638358 - Cookie Schemeful Same-Site - part 3 - update add/addNative methods, r=mayhemer,remote-protocol-reviewers,marionette-reviewers,maja_zf,MattN,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D75627
2020-06-01 17:59:13 +00:00
Noemi Erli e40be0aa72 Backed out 6 changesets (bug 1638358) for causing failures in test_Chrome_cookies.js CLOSED TREE
Backed out changeset 4e8fbe01aa38 (bug 1638358)
Backed out changeset 532731e94bb2 (bug 1638358)
Backed out changeset fad2ba760157 (bug 1638358)
Backed out changeset 932a3fdbd07c (bug 1638358)
Backed out changeset 05a62901a3f5 (bug 1638358)
Backed out changeset cddeada5c4a6 (bug 1638358)
2020-06-01 19:45:46 +03:00
Andrea Marchesini 165022b2c4 Bug 1638358 - Cookie Schemeful Same-Site - part 3 - update add/addNative methods, r=mayhemer,remote-protocol-reviewers,marionette-reviewers,maja_zf,MattN,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D75627
2020-06-01 11:43:19 +00:00
Dorel Luca 9574e25c80 Backed out 6 changesets (bug 1638358) for XPCShell failures in netwerk/cookie/test/unit/test_schemeMap.js. CLOSED TREE
Backed out changeset 745eab35e851 (bug 1638358)
Backed out changeset a45df1876e37 (bug 1638358)
Backed out changeset 1a85cc92d2fb (bug 1638358)
Backed out changeset 2156294cb158 (bug 1638358)
Backed out changeset 31101054c52c (bug 1638358)
Backed out changeset d284b50551ab (bug 1638358)
2020-06-01 14:38:22 +03:00
Andrea Marchesini d1c11476f6 Bug 1638358 - Cookie Schemeful Same-Site - part 3 - update add/addNative methods, r=mayhemer,remote-protocol-reviewers,marionette-reviewers,maja_zf,MattN,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D75627
2020-06-01 10:28:51 +00:00
Ricky Stewart 7a15c311ac Bug 1639313 - Print usage if you call a bare `mach vendor`, `mach cargo`, or `mach remote` r=remote-protocol-reviewers,froydnj,whimboo
The architecture of `mach` does not make this easy to do from within one process, not least of all due to persistent global, mutable state. :( There may be another way to do this, I'm not saying it's completely impossible (and obviously with a significant enough refactor there's a way to make this happen), but subprocessing is a foolproof way to accomplish the same.

Differential Revision: https://phabricator.services.mozilla.com/D77374
2020-05-29 16:16:31 +00:00
James Graham 9c097cff23 Bug 1638978 - Convert mach puppeteer-test to Python 3, r=remote-protocol-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D77443
2020-05-29 12:37:45 +00:00
Henrik Skupin a557087998 Bug 1637363 - [remote] Use frameId of the related browsing context for Network events. r=remote-protocol-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D76835
2020-05-29 12:36:26 +00:00
Etienne Bruines dcaf3bd40f Bug 1637619 - [remote] Implement Network.getAllCookies r=remote-protocol-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D75115
2020-05-27 21:25:26 +00:00
Henrik Skupin 85d151cdef Bug 1638196 - [remote] Use timeout multipler for RecordEvents.record(). r=remote-protocol-reviewers,maja_zf
On Ubuntu 18.04 tests are failing more often for debug builds
due to not received events. By using a timeout multiplier of
4 will give the events enough time to be recorded.

Differential Revision: https://phabricator.services.mozilla.com/D76992
2020-05-27 13:28:37 +00:00
Henrik Skupin e6142c7d10 Bug 1599773 - [remote] Implement Page.frameDetached. r=remote-protocol-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D71293
2020-05-19 19:45:27 +00:00
Henrik Skupin 9b6a2efca4 Bug 1599413 - [remote] Implement Page.frameAttached. r=remote-protocol-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D71292
2020-05-19 19:37:45 +00:00
Henrik Skupin 02c8f20ea9 Bug 1638982 - [remote] Remove custom usage output for the remote command. r=remote-protocol-reviewers,maja_zf
This aligns our code with other mach commands that don't
show the command usage if no subcommand has been specified.

Differential Revision: https://phabricator.services.mozilla.com/D75900
2020-05-20 04:35:21 +00:00
Bogdan Tara 3b974da483 Backed out 2 changesets (bug 1599773, bug 1599413) for browser_frameAttached.js failures CLOSED TREE
Backed out changeset 779bc06348ad (bug 1599773)
Backed out changeset 6f223ae549d8 (bug 1599413)
2020-05-19 12:29:17 +03:00
Henrik Skupin 7457a0c05c Bug 1599773 - [remote] Implement Page.frameDetached. r=remote-protocol-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D71293
2020-05-19 07:34:24 +00:00
Henrik Skupin 7afbbdd314 Bug 1599413 - [remote] Implement Page.frameAttached. r=remote-protocol-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D71292
2020-05-19 07:32:27 +00:00
Narcis Beleuzu 92804bc12e Backed out 2 changesets (bug 1599773, bug 1599413) for mochitest failure on browser_frameAttached.js.
Backed out changeset 2c3f77cdc4e0 (bug 1599773)
Backed out changeset 746f1f57bd84 (bug 1599413)
2020-05-19 01:16:47 +03:00
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 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