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

572 Коммитов

Автор SHA1 Сообщение Дата
Csoregi Natalia b93d5d6e33 Backed out 3 changesets (bug 1647695) for failures on browser_aboutprocesses.js. CLOSED TREE
Backed out changeset 01b6951d0aae (bug 1647695)
Backed out changeset 1b1fa5dbd9bd (bug 1647695)
Backed out changeset 0f097362abf8 (bug 1647695)
2020-08-03 20:31:35 +03:00
David Teller c52c6030dc Bug 1647695 - Uniformizing naming conventions within fields of ChildProcInfoDictionary;r=tarek
Differential Revision: https://phabricator.services.mozilla.com/D83667
2020-08-03 15:03:26 +00:00
Coroiu Cristina 24283f9454 Backed out 3 changesets (bug 1647695) for bc failures at widget/tests/browser/browser_test_procinfo.js and ESlint on a CLOSED TREE
Backed out changeset c1af633ab74e (bug 1647695)
Backed out changeset 3417fe7200bd (bug 1647695)
Backed out changeset 2a0969c26d95 (bug 1647695)
2020-08-03 16:55:44 +03:00
David Teller 8c639fef0c Bug 1647695 - Uniformizing naming conventions within fields of ChildProcInfoDictionary;r=tarek
Differential Revision: https://phabricator.services.mozilla.com/D83667
2020-08-03 12:49:59 +00:00
alwu 408ccb2310 Bug 1654045 - part3 : porting other attributes to media controller's webidl interface. r=chunmin
We have already had these functions on `MediaController` so we just need to expose them on the media controller's webidl interface, and they can be used in testing and the future plan of supporting media hub.

Differential Revision: https://phabricator.services.mozilla.com/D85230
2020-07-31 02:56:20 +00:00
alwu 4f35b1bd20 Bug 1654045 - part2 : add 'onactivated/ondeactivated' event handlers and 'isActive' on the media control webidl interface. r=chunmin
Add an event handler `onactivated/ondeactivated` and a readonly attribute `isActive` on the media control webidl interface, and they can be used in testing and the future plan of supporting media hub.

Differential Revision: https://phabricator.services.mozilla.com/D85229
2020-07-31 17:26:38 +00:00
Andreas Farre b13577d8e4 Bug 1613431 - Part 3: Handle synced setters return value. r=nika
Depends on D83646

Differential Revision: https://phabricator.services.mozilla.com/D83647
2020-07-31 13:37:13 +00:00
Andreas Farre 336fe46681 Bug 1613431 - Part 1: Have synced setters return nsresult. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D83645
2020-07-31 13:36:45 +00:00
Kashav Madan 75b193e637 Bug 1655549 - Implement BrowsingContext::GetAllBrowsingContextsInSubtree, r=nika
Differential Revision: https://phabricator.services.mozilla.com/D85311
2020-07-29 21:10:36 +00:00
Keefer Rourke b5254a1e31 Bug 1653985: Implement IOUtils::stat method r=barret,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D84408
2020-07-23 18:15:30 +00:00
Jonathan Watt b7e932192e Bug 1652270. Convert nsFrameLoader::Print to return a Promise. r=farre,remote-protocol-reviewers,marionette-reviewers,jgraham,whimboo,mixedpuppy
(Instead of requiring callers to pass an nsIWebProgressListener.)

Differential Revision: https://phabricator.services.mozilla.com/D83249
2020-07-22 23:17:45 +00:00
Narcis Beleuzu 687f235fbc Backed out changeset f95c19e45ab2 (bug 1652270) for reftest failures on test-text.html . CLOSED TREE 2020-07-22 20:36:53 +03:00
Jonathan Watt 8c0fb25348 Bug 1652270. Convert nsFrameLoader::Print to return a Promise. r=farre,remote-protocol-reviewers,marionette-reviewers,jgraham,whimboo,mixedpuppy
(Instead of requiring callers to pass an nsIWebProgressListener.)

Differential Revision: https://phabricator.services.mozilla.com/D83249
2020-07-22 15:54:01 +00:00
Rob Wu f75d9d861b Bug 1651844 - Ensure that readyPromise is resolved when startup() exits early r=rpl
This is necessary because otherwise callers of policy.readyPromise can
get stuck when an extension fails to start up.

Differential Revision: https://phabricator.services.mozilla.com/D83143
2020-07-21 17:01:36 +00:00
Keefer Rourke 3017836fc5 Bug 1653001: Implement IOUtils::makeDirectory method r=barret,Gijs
This patch introduces a makeDirectory method to the IOUtils interface, which
allows for creating directories on disk.

Differential Revision: https://phabricator.services.mozilla.com/D83996
2020-07-21 15:13:35 +00:00
Keefer Rourke 7498430cf9 Bug 1653003: Implement IOUtils::remove method r=barret,Gijs
This patch introduces a remove method to the IOUtils interface, which allows
for removing files and directories on disk. It is a simple wrapper around
the nsIFile::Remove method.

Differential Revision: https://phabricator.services.mozilla.com/D83663
2020-07-18 00:31:57 +00:00
Sebastian Streich f38f6f0fb1 Bug 1645204 - Fix WebRequest.jsm r=robwu,necko-reviewers,mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D80953
2020-07-16 14:58:03 +00:00
Tomislav Jovanovic 9e3001ac7e Bug 1587541 - Change ContentScript::MatchesWindow to operate on WindowGlobals directly r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D83652
2020-07-16 01:23:42 +00:00
alwu e398ca4d46 Bug 1621403 - part3 : add test. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D82817
2020-07-15 21:02:08 +00:00
alwu 1493d7798d Bug 1621403 - part2 : implement `seekto` action. r=chunmin,emilio
Implement `Seekto` action [1]. In addtion, as `seekto` can go with additional properties, we create a new structure `MediaControlAction` to wrap `MediaControlKey` and `SeekDetails`, which can be sent with `seekto`.

[1] https://w3c.github.io/mediasession/#dom-mediasessionaction-seekto

Differential Revision: https://phabricator.services.mozilla.com/D82816
2020-07-16 00:16:33 +00:00
Bogdan Tara ae2858d542 Backed out changeset 8dee8cb525a2 (bug 1653003) for test_ioutils.html failures CLOSED TREE 2020-07-16 00:35:21 +03:00
Keefer Rourke 84e3e308b9 Bug 1653003: Implement IOUtils::remove method r=barret,Gijs
This patch introduces a remove method to the IOUtils interface, which allows
for removing files and directories on disk. It is a simple wrapper around
the nsIFile::Remove method.

Differential Revision: https://phabricator.services.mozilla.com/D83663
2020-07-15 19:45:37 +00:00
Keefer Rourke 80670a1607 Bug 1651742: Remove support for relative paths in IOUtils r=barret,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D82982
2020-07-15 16:04:51 +00:00
Keefer Rourke b732cf15e1 Bug 1650898: Implement tmpPath and backupFile options for IOUtils::writeAtomic r=barret,Gijs
This patch refactors the existing IOUtils::writeAtomic method to add support for the `tmpPath` and `backupFile` options.

Differential Revision: https://phabricator.services.mozilla.com/D82601
2020-07-15 16:04:17 +00:00
Keefer Rourke 0dcdd65989 Bug 1650227: Implement IOUtils move method r=barret,Gijs
This patch introduces a move method to the IOUtils interface, which allows
for renaming/moving files or directories on disk. Source and destination
files may be specified either by an absolute path, or a relative path from
the current working directory.

This method has well-defined behaviour similar to the POSIX mv command
(except that this may create missing directories as necessary).
The behaviour is briefly summarized below:

1. If the source is a file that exists:

 a. If the destination is a file that does not exist, the source is
    renamed (and re-parented as a child of the destination parent
    directory). The destination parent directory will be created if
    necessary.

 b. If the destination is a file that does exist, the destination is
    replaced with the source (unless the noOverwrite option is true).


2. If the source is a directory that exists:

 a. If the destination is a directory, then the source directory is
    re-parented such that it becomes a child of the destination.

 b. If the destination does not exist, then the source is renamed,
    creating additional directories if needed.

 c. If the destination is a file, then an error occurs.


3. If the source does not exist, an error occurs.

Differential Revision: https://phabricator.services.mozilla.com/D82202
2020-07-15 16:03:52 +00:00
Csoregi Natalia cf4cf69408 Backed out 3 changesets (bug 1650898, bug 1651742, bug 1650227) for bustage on IOUtils.cpp. CLOSED TREE
Backed out changeset 4a1958574a2f (bug 1651742)
Backed out changeset 2809655ba642 (bug 1650898)
Backed out changeset d8930122993c (bug 1650227)
2020-07-14 23:03:48 +03:00
Keefer Rourke 235442cb08 Bug 1651742: Remove support for relative paths in IOUtils r=barret,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D82982
2020-07-14 14:07:27 +00:00
Keefer Rourke f9cbdd7632 Bug 1650898: Implement tmpPath and backupFile options for IOUtils::writeAtomic r=barret,Gijs
This patch refactors the existing IOUtils::writeAtomic method to add support for the `tmpPath` and `backupFile` options.

Differential Revision: https://phabricator.services.mozilla.com/D82601
2020-07-14 18:45:29 +00:00
Keefer Rourke d71c1326c1 Bug 1650227: Implement IOUtils move method r=barret,Gijs
This patch introduces a move method to the IOUtils interface, which allows
for renaming/moving files or directories on disk. Source and destination
files may be specified either by an absolute path, or a relative path from
the current working directory.

This method has well-defined behaviour similar to the POSIX mv command
(except that this may create missing directories as necessary).
The behaviour is briefly summarized below:

1. If the source is a file that exists:

 a. If the destination is a file that does not exist, the source is
    renamed (and re-parented as a child of the destination parent
    directory). The destination parent directory will be created if
    necessary.

 b. If the destination is a file that does exist, the destination is
    replaced with the source (unless the noOverwrite option is true).


2. If the source is a directory that exists:

 a. If the destination is a directory, then the source directory is
    re-parented such that it becomes a child of the destination.

 b. If the destination does not exist, then the source is renamed,
    creating additional directories if needed.

 c. If the destination is a file, then an error occurs.


3. If the source does not exist, an error occurs.

Differential Revision: https://phabricator.services.mozilla.com/D82202
2020-07-13 23:06:19 +00:00
alwu 8db4dcbd7c Bug 1582569 - part1 : implement 'skipad'. r=chunmin,webidl,peterv
Implement `skipad` action.

https://w3c.github.io/mediasession/#dom-mediasessionaction-skipad

Differential Revision: https://phabricator.services.mozilla.com/D82579
2020-07-10 18:59:31 +00:00
Nika Layzell 1f5959ef44 Bug 1650837 - Part 2: Add an includeParent JSProcessActor config option, r=kmag
This is similar to JSWindowActor's includeChrome option, and defaults to
'false'. If users want to also instantiate the actor in-process, they can set
this option to 'true'.

Differential Revision: https://phabricator.services.mozilla.com/D82449
2020-07-07 22:02:48 +00:00
Nika Layzell 22a65a237e Bug 1650163 - Part 1: Switch native remoteType values to nsCString, r=farre,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D82104
2020-07-08 20:15:59 +00:00
Mihai Alexandru Michis 1ba2a3f6f6 Backed out 3 changesets (bug 1650163) for causing bustages in nsContentSecurityManager.cpp
CLOSED TREE

Backed out changeset 51d7c644a1e6 (bug 1650163)
Backed out changeset 3d2b6908447a (bug 1650163)
Backed out changeset 79141707d47b (bug 1650163)
2020-07-08 21:18:44 +03:00
Nika Layzell c850a94434 Bug 1650163 - Part 1: Switch native remoteType values to nsCString, r=farre,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D82104
2020-07-08 14:54:48 +00:00
Kris Maglione bd94db4e9a Bug 1580764: Part 2 - Use BrowsingContext IDs rather than window IDs to compute frame IDs. r=zombie
Differential Revision: https://phabricator.services.mozilla.com/D82464
2020-07-07 21:37:53 +00:00
Narcis Beleuzu 8359f16846 Backed out 7 changesets (bug 1650163, bug 1649477) for bustages on JSActor.cpp . CLOSED TREE
Backed out changeset 4a21afb65254 (bug 1650163)
Backed out changeset c41753a56f5a (bug 1650163)
Backed out changeset 5fb444c35764 (bug 1650163)
Backed out changeset 830aa93d2b0c (bug 1649477)
Backed out changeset eca6e9dce450 (bug 1649477)
Backed out changeset 5b217aa88289 (bug 1649477)
Backed out changeset 8959d02b840f (bug 1649477)
2020-07-08 04:09:27 +03:00
Nika Layzell df351180c3 Bug 1650163 - Part 1: Switch native remoteType values to nsCString, r=farre
Differential Revision: https://phabricator.services.mozilla.com/D82104
2020-07-06 20:30:58 +00:00
Nika Layzell 410b57b163 Bug 1599579 - Part 4: Expose BrowsingContextGroup.id to JS, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D80257
2020-07-06 19:45:41 +00:00
Luca Greco 82aa5fed3a Bug 1609920 - part 1: Allow the WebExtension Framework to register a moz-extension service worker. r=dom-workers-and-storage-reviewers,asuth,mixedpuppy
- Adds the new about:config pref "extensions.backgroundServiceWorker.enabled" (currently defaults to false).
- Adds the background.service_worker property to the manifest JSON schema definition
- Locks background.service_worker manifest property behind the new preference
- Adds a new BackgroundWorker class to ext-backgroundPage.js (responsible for managing the background
  service worker for the extension, e.g. make sure that the expected worker script is registered
  as expected when the extension is starting up)
- Adds to the ServiceWorkerManager a new method to allow the WebExtension Framework to register the
  background service worker without an existing extension page
- Allows the "moz-extension" schema in the dom/serviceworkers and dom/cache internals

Depends on D63697

Differential Revision: https://phabricator.services.mozilla.com/D60244
2020-07-03 10:14:24 +00:00
Keefer Rourke 16fbac6f70 Bug 1642454: Implement IOUtils read and writeAtomic methods r=barret,smaug,Gijs
This patch introduces a minimal, asynchronous Web IDL interface for
reading/writing whole files in privileged chrome code (main-thread and web
workers). All I/O is performed on a background thread. Pending I/O blocks
Firefox shutdown.

Differential Revision: https://phabricator.services.mozilla.com/D78134
2020-07-02 22:32:03 +00:00
Narcis Beleuzu 2f11bc8165 Backed out 4 changesets (bug 1642454) for failures on dom/system/tests/test_ioutils_worker.xhtml . CLOSED TREE
Backed out changeset 13553531fc62 (bug 1642454)
Backed out changeset 7896b4315920 (bug 1642454)
Backed out changeset 1e68090eed0b (bug 1642454)
Backed out changeset dfb201663480 (bug 1642454)
2020-07-03 01:16:36 +03:00
alwu 0c227d097b Bug 1643513 - part3 : add `onpositionstatechange` event handler on MediaController. r=chunmin,smaug
What this patch do are
- add `onpositionstatechange` event handler on MediaController
- `PositionStateEvent` would be sent to `positionstatechange` event handler

The advantage of doing so is
- to allow us to listen to the position change on the media controller interface (that can be used for testing and the future plan, the media hub)

Differential Revision: https://phabricator.services.mozilla.com/D80791
2020-07-02 19:41:22 +00:00
Keefer Rourke d6e77b7023 Bug 1642454: Implement IOUtils read and writeAtomic methods r=barret,smaug,Gijs
This patch introduces a minimal, asynchronous Web IDL interface for
reading/writing whole files in privileged chrome code (main-thread and web
workers). All I/O is performed on a background thread. Pending I/O blocks
Firefox shutdown.

Differential Revision: https://phabricator.services.mozilla.com/D78134
2020-07-02 20:21:16 +00:00
Sebastian Hengst 255c22186f Backed out 4 changesets (bug 1609920) for leaks in browser-chrome. CLOSED TREE
Backed out changeset 1c8faab05606 (bug 1609920)
Backed out changeset eaa0bb2cf36b (bug 1609920)
Backed out changeset fd1e4db7cf78 (bug 1609920)
Backed out changeset 0e68db4ad6af (bug 1609920)
2020-07-01 17:10:13 +02:00
Alexandre Poirot b020241bb9 Bug 1644795 - Expose all nsIDOMProcessParent via ChromeUtils.getAllDOMProcesses(). r=nika
Differential Revision: https://phabricator.services.mozilla.com/D81121
2020-07-01 09:09:44 +00:00
Luca Greco 665d0662d8 Bug 1609920 - part 1: Allow the WebExtension Framework to register a moz-extension service worker. r=dom-workers-and-storage-reviewers,asuth,mixedpuppy
- Adds the new about:config pref "extensions.backgroundServiceWorker.enabled" (currently defaults to false).
- Adds the background.service_worker property to the manifest JSON schema definition
- Locks background.service_worker manifest property behind the new preference
- Adds a new BackgroundWorker class to ext-backgroundPage.js (responsible for managing the background
  service worker for the extension, e.g. make sure that the expected worker script is registered
  as expected when the extension is starting up)
- Adds to the ServiceWorkerManager a new method to allow the WebExtension Framework to register the
  background service worker without an existing extension page
- Allows the "moz-extension" schema in the dom/serviceworkers and dom/cache internals

Depends on D63697

Differential Revision: https://phabricator.services.mozilla.com/D60244
2020-06-10 12:13:29 +00:00
Butkovits Atila 146ad267af Backed out 6 changesets (bug 1599579) for bc failures at test_chrome_ext_contentscript_data_uri.html.
Backed out changeset b767f26b10ed (bug 1599579)
Backed out changeset c5bc0ea42193 (bug 1599579)
Backed out changeset cfdd8d5973d4 (bug 1599579)
Backed out changeset 73f6c956fc30 (bug 1599579)
Backed out changeset 14698ab42ee4 (bug 1599579)
Backed out changeset b4bdd8759433 (bug 1599579)
2020-06-30 21:41:27 +03:00
Nika Layzell 6179f0edcf Bug 1599579 - Part 4: Expose BrowsingContextGroup.id to JS, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D80257
2020-06-30 15:55:45 +00:00
Matt Woodrow 751fe6358b Bug 1647557 - Implement RemoteWebProgress using CanonicalBrowsingContext instead of MessageManager. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D70626
2020-06-30 01:18:47 +00:00
Matt Woodrow 269822540c Bug 1646892 - Disable DocumentChannel process switching into the parent process when the old-RDM is running, since we don't support switching out of a nested <iframe mozbrowser>. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D81262
2020-06-27 04:10:48 +00:00