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

93694 Коммитов

Автор SHA1 Сообщение Дата
Denis Palmeiro 522b733636 Bug 1606652 - Speculatively off thread parse external scripts as soon as they are fetched. r=smaug
The changes proposed here will speculatively parse all external scripts off thread as soon as they are fetched, except for async, link preload, and non parser inserted scripts.  This should save us some time since currently all scripts are parsed right before execution or while they are blocking the dom parser.

Differential Revision: https://phabricator.services.mozilla.com/D76644
2020-06-10 00:45:26 +00:00
Molly Howell c6f9251ce8 Bug 1642400 - Improve DLL loading. r=jcj
Differential Revision: https://phabricator.services.mozilla.com/D77902
2020-06-09 22:43:59 +00:00
Edgar Chen 8556592e77 Bug 1639368 - Restore `mCurrentTarget` after handling drag gesture; r=smaug
otherwise, generated mouseenter event might be dispatched to a wrong target.

Differential Revision: https://phabricator.services.mozilla.com/D75983
2020-06-09 15:39:54 +00:00
Junior Hsu c967db3c67 Bug 1638513 - P2 let nsIHttpChannel implement shouldStripRequestBodyHeader, r=valentin,necko-reviewers
We need to extract the common method into the idl since the connection between necko
and XHR is idl. Need to import the whole necko if we do something like
`#include "HttpBaseChannel.h"

Differential Revision: https://phabricator.services.mozilla.com/D78830
2020-06-09 18:20:15 +00:00
Simon Giesecke ca2d0aaa68 Bug 1644403 - Fix inconsistent uses of CopyableAutoTArray and Clone. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D78893
2020-06-09 14:27:20 +00:00
Csoregi Natalia c644ee9a06 Backed out changeset 99cce83b7e41 (bug 1636050) for assertion failures on ReadStream.cpp. CLOSED TREE 2020-06-09 21:21:34 +03:00
Csoregi Natalia ea9bf8c0f4 Backed out changeset 1884e1c2ccf4 (bug 1644366) for scrolling failures. CLOSED TREE 2020-06-09 21:18:42 +03:00
Noemi Erli 72ff51478c Backed out changeset 49f533a95f64 (bug 1644458) for causing failures in registration-updateviacache.https.html 2020-06-09 20:55:58 +03:00
Csoregi Natalia ab2cd5732d Backed out 5 changesets (bug 1641231) for assertion failures on FlippedOnce.h. CLOSED TREE
Backed out changeset f91248e16c71 (bug 1641231)
Backed out changeset 3c4db99ba498 (bug 1641231)
Backed out changeset 125533344189 (bug 1641231)
Backed out changeset 203e3ec45022 (bug 1641231)
Backed out changeset 84668b82ebee (bug 1641231)
2020-06-09 20:39:47 +03:00
ssengupta 0789e4dfa7 Bug 1636050 - dom::cache::ReadStream::Controllable now inherits from SafeRefCounted r=dom-workers-and-storage-reviewers,sg
Differential Revision: https://phabricator.services.mozilla.com/D77223
2020-06-09 14:32:17 +00:00
Emilio Cobos Álvarez bbf8acf349 Bug 1644366 - Restore behavior of selection into view to keep scrolling ancestors on focus. r=smaug
... yet keep respecting the preventScroll flag.

Differential Revision: https://phabricator.services.mozilla.com/D78900
2020-06-09 16:15:04 +00:00
Alexis Beingessner 8a9982b45a Bug 1642344 - remove unused dom.testing.ignore_ipc_principal pref. r=KrisWright
Differential Revision: https://phabricator.services.mozilla.com/D77852
2020-06-09 14:45:58 +00:00
Alexis Beingessner 68cabeb994 Bug 1642344 - convert dom.noopener.newprocess.enabled to a StaticPref. r=KrisWright
Differential Revision: https://phabricator.services.mozilla.com/D77851
2020-06-09 14:45:54 +00:00
Alexis Beingessner fc174e020d Bug 1642344 - convert HTMLInputElement VarCache prefs to StaticPrefs. r=geckoview-reviewers,agi.
converts:
* dom.experimental_forms
* dom.forms.datetime.others
* dom.forms.color

Differential Revision: https://phabricator.services.mozilla.com/D77850
2020-06-09 14:45:50 +00:00
Alexis Beingessner cc942b6af6 Bug 1642344 - convert EventStateManager VarCache prefs to StaticPrefs. r=KrisWright,masayuki
converts:
* plugin.mousewheel.enabled
* mousewheel.autodir.enabled
* mousewheel.autodir.honourroot
* accessibility.accesskeycausesactivation
* ui.click_hold_context_menus

Differential Revision: https://phabricator.services.mozilla.com/D77849
2020-06-09 14:45:42 +00:00
Alexis Beingessner 06069b14e3 Bug 1642344 - convert converter.html2txt.always_include_ruby into a StaticPref. r=KrisWright
NOTE: this also removes a mysterious old comment that implied this code could run without libpref initializing
the value, in which case they picked a different default. I assume this is no longer a real configuration?

Differential Revision: https://phabricator.services.mozilla.com/D77848
2020-06-09 14:45:38 +00:00
Alexis Beingessner cb65f6a9a6 Bug 1642344 - Remove unused field from JSSettings and flatten away a struct. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D77847
2020-06-09 15:05:46 +00:00
Andreas Farre 65df5c84ed Bug 1644452 - Release DocGroup::mArena on the DocGroup's event target. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D78907
2020-06-09 14:45:11 +00:00
Andrea Marchesini 185f065233 Bug 1644458 - Propagate CookieJarSettings with the partition key to SharedWorkers and ServiceWorkers, r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D78653
2020-06-09 14:45:23 +00:00
Tom Tung 3402c1562f Bug 1641231 - Reduce raw pointers as functions arguments for DirectoryLock related functions in QuotaManager; r=dom-workers-and-storage-reviewers,sg
Differential Revision: https://phabricator.services.mozilla.com/D78068
2020-06-08 08:22:43 +00:00
Tom Tung 893617b0d8 Bug 1641231 - Use FlippedOnce for DirectoryLockImpl::mInvalidate; r=dom-workers-and-storage-reviewers,sg
Differential Revision: https://phabricator.services.mozilla.com/D78067
2020-06-04 08:30:33 +00:00
Tom Tung deebd6c64d Bug 1641231 - Use InitializedOnce for DirectoryLockImpl::mOpenListener; r=dom-workers-and-storage-reviewers,janv,sg
Differential Revision: https://phabricator.services.mozilla.com/D78066
2020-06-09 06:59:40 +00:00
Tom Tung 453b1fffec Bug 1641231 - Use NotNull for DirectoryLockImpl's member variables; r=dom-workers-and-storage-reviewers,sg
Differential Revision: https://phabricator.services.mozilla.com/D78065
2020-06-04 08:23:10 +00:00
Tom Tung 49df6834b9 Bug 1641231 - Replace raw pointers as functions arguments in DirectoryLockImpl; r=dom-workers-and-storage-reviewers,sg
Differential Revision: https://phabricator.services.mozilla.com/D78062
2020-06-04 07:53:45 +00:00
Johann Hofmann 2133bb8e2c Bug 1515073 - Part 2 - Allow nsIWebNavigation::{goBack,goForward} to skip entries without user interaction. r=Gijs,peterv
Depends on D27585

Differential Revision: https://phabricator.services.mozilla.com/D27586
2020-06-09 14:50:14 +00:00
Johann Hofmann 2121e27531 Bug 1515073 - Part 1 - Add nsISHEntry::hasUserInteraction. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D27585
2020-06-09 14:48:38 +00:00
Razvan Maries f761608e79 Backed out changeset bca9f7459a16 (bug 1643656) for reftests perma failures. CLOSED TREE 2020-06-09 18:24:48 +03:00
Andrea Marchesini b058e12e25 Bug 1502403 - FileReader should dispatch loadstart asynchronously, r=smaug,ssengupta
Differential Revision: https://phabricator.services.mozilla.com/D78852
2020-06-09 14:41:14 +00:00
Dan Minor f8f95a8f04 Bug 1643155 - Rename obfuscate_host_addresses pref; r=ng,mkaply
Renaming this to blocklist, as this is a list of sites for which hostname
obfuscation is disabled.

Differential Revision: https://phabricator.services.mozilla.com/D78681
2020-06-09 09:30:04 +00:00
Jan Varga 954ae9ed68 Bug 1526949 - Keep private browsing datastores alive until the private browsing session is closed; r=dom-workers-and-storage-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D78640
2020-06-09 13:42:09 +00:00
Butkovits Atila 29d7b0825b Backed out changeset d10fb80f7aa0 (bug 1502403) for build bustages at rules.mk. CLOSED TREE 2020-06-09 17:06:04 +03:00
Emilio Cobos Álvarez 6b86e22f72 Bug 1643656 - Remove prefers-color-scheme: no-preference. r=gl,remote-protocol-reviewers,hiro,whimboo
It was removed from the spec. Bug 1643934 updates the WPT tests.

Differential Revision: https://phabricator.services.mozilla.com/D78834
2020-06-09 13:21:54 +00:00
Andrea Marchesini ce0bdd5ce6 Bug 1502403 - FileReader should dispatch loadstart asynchronously, r=smaug,ssengupta
Differential Revision: https://phabricator.services.mozilla.com/D78852
2020-06-09 12:52:31 +00:00
Jon Coppeard ebd33b0e2f Bug 1639246 - Ship weak refs r=sfink,smaug
This renames the pref to remove 'experimental' and turns it on by default.

For integration with the CC, any DOM objects that are the target of a WeakRef or registered with a FinalizationRegistry have their wrappers preserved. WeakRef.deref() checks whether any wrapper is still preserved and returns undefined if not, to avoid giving out references to wrappers whose DOM object has been cycle collected.

Tests exercising browser integration are under js/xpconnect/tests/mochitest/.

Differential Revision: https://phabricator.services.mozilla.com/D77656
2020-06-09 11:20:45 +00:00
ssengupta 1673ecbe85 Bug 1636050 - PCacheStreamControl protocol is now refcounted r=dom-workers-and-storage-reviewers,sg
Differential Revision: https://phabricator.services.mozilla.com/D78857
2020-06-09 12:58:44 +00:00
Emilio Cobos Álvarez 690f9999cd Bug 1644389 - Simplify nsGenericHTMLElement::GetFormControlFrame. r=smaug
This is just cleanup and should have no behavior changes. In the future,
I may optimize GetPrimaryFrame to not flush frames in the whole document
if the style of the node and ancestors haven't changed.

I think one bit of this function shouldn't be needed, but I have left it
as is for now.

Differential Revision: https://phabricator.services.mozilla.com/D78886
2020-06-09 12:03:57 +00:00
Masayuki Nakano 8954e9663b Bug 1636855 - Enable `editor.truncate_user_pastes` even in Nightly channel r=emilio
Mozilla consider that we should protect even Nightly testers from the behavior
change of bug 1320229.

And I forgot to modify the new mochitest for bug 1635224 which is a regression
of bug1320229.

Differential Revision: https://phabricator.services.mozilla.com/D78841
2020-06-09 08:47:31 +00:00
Tom Tung ee41bb5026 Bug 1641874 - Update test expectations; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D78283
2020-06-09 09:25:06 +00:00
Tom Tung 492794a250 Bug 1641874 - Make the pref unchangeable at runtime; r=nika
Differential Revision: https://phabricator.services.mozilla.com/D78282
2020-06-09 08:10:42 +00:00
Razvan Maries d6cd2e480b Backed out 2 changesets (bug 1641874) for perma failures on test_audioWorklet_WASM.html. CLOSED TREE
Backed out changeset df279d4082d8 (bug 1641874)
Backed out changeset 45045a6a1b24 (bug 1641874)
2020-06-09 11:05:26 +03:00
Tom Tung b0dbaf41b2 Bug 1641874 - Update test expectations; r=baku
Depends on D78282

Differential Revision: https://phabricator.services.mozilla.com/D78283
2020-06-08 11:26:19 +00:00
Tom Tung 322e512941 Bug 1641874 - Make the pref unchangeable at runtime; r=nika
Differential Revision: https://phabricator.services.mozilla.com/D78282
2020-06-08 15:25:52 +00:00
alwu 934302cd0d Bug 1640998 - part9 : use `MediaControlKey` to replace `MediaControlKeysEvent` r=chunmin,agi,geckoview-reviewers
This patch will
- remove `MediaControlKeysEvent` and use `MediaControlKey` to replace it
- rename names for all `MediaControlKey` related methods, functions, classes and descriptions

The advantage of doing so are
- remove the duplicated type so that we only need to maintain `MediaControlKey`

Differential Revision: https://phabricator.services.mozilla.com/D78140
2020-06-09 02:59:57 +00:00
alwu 1b2d8c78ce Bug 1640998 - part8 : add test. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D77758
2020-06-08 23:27:19 +00:00
alwu 0d200dff8a Bug 1640998 - part7 : create `MediaController` webidl. r=chunmin,smaug
This patch will
- create a chrome-only webdil interface `MediaController`
- expose supported keys via `MediaController` webidl interface

The advantage of doing so are
- to have a dedicated interface that is only used for MediaController that can be used for testing and our future plan (media hub)

More Details :
Currently, we access media controller's from `ChromeUtils` [1], but it causes a problem of creating a duplicated enum of the enum which we want to expose into Chrome JS.

Instead, we should create a media controller interface to access all its attibutes, which is more easier and clean.

In addition, we're planning to have a something like Chrome's media hub [2]. In order to do that, we have to expose some JS methods to allow us to control playback directly from Chrome JS.

[1] https://searchfox.org/mozilla-central/rev/559b25eb41c1cbffcb90a34e008b8288312fcd25/dom/chrome-webidl/ChromeUtils.webidl#485-493
[2] https://blog.google/products/chrome/manage-audio-and-video-in-chrome/

Differential Revision: https://phabricator.services.mozilla.com/D77757
2020-06-08 18:51:12 +00:00
alwu 5aa603709c Bug 1640998 - part6 : only notify the active media session's metadata change. r=chunmin
This patch will
- prevent dispatching metadata change event for non-active media session (we only care about the event from the active media session)

The advantage of doing so are
-  reduce some unnecessary code running

Differential Revision: https://phabricator.services.mozilla.com/D77756
2020-06-08 18:51:10 +00:00
alwu 15d6f8b8ae Bug 1640998 - part5 : set supported keys to the event source r=chunmin
This patch will
- add a method `SetSupportedMediaKeys()` on `MediaControlKeysEventSource`
- set main controller's supported key to the event source

The advantage of doing so are
- to allow the event source knowing which key is supported in order to determine the displayed UI button

Differential Revision: https://phabricator.services.mozilla.com/D77200
2020-06-09 02:23:35 +00:00
alwu d05ba91da0 Bug 1640998 - part4 : update supported action changes from the content process. r=chunmin
This patch will
- tell the media controll supported action changes when media session updates its action handler

The advantage of doing so are
- to sync the status between media session in content process and the `MediaSessionInfo` in chrome process

Differential Revision: https://phabricator.services.mozilla.com/D77199
2020-06-08 22:16:46 +00:00
alwu 258a1fae24 Bug 1640998 - part3 : add methods to update supported action from media sessions. r=chunmin
This patch will
- add methods to allow media controller to enable/disable action for specific media session

The advantage of doing so are
- to know the supported actions for each media session

Differential Revision: https://phabricator.services.mozilla.com/D77198
2020-06-08 18:50:53 +00:00
alwu 337718365e Bug 1640998 - part2 : use `ContentMediaAgent` to update media session's related information. r=chunmin
This patch will
- `ContentMediaAgent` as the only class to propagate the information to chrome process

The advantage of doing so are
- to group all methods involving IPC in one place, that would be easier to see what information would be propagated to chrome process

Differential Revision: https://phabricator.services.mozilla.com/D77197
2020-06-08 18:50:45 +00:00