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

704110 Коммитов

Автор SHA1 Сообщение Дата
alwu b368e58a84 Bug 1632301 - part4 : rename 'ControlledMediaState' to 'MediaPlaybackState'. r=bryce
This patch will do :
- rename `ControlledMediaState` to `MediaPlaybackState`
- rename the related functions

The advantage of doing so :
- more consistent with `MediaAudibleState`

Differential Revision: https://phabricator.services.mozilla.com/D72060
2020-04-28 07:14:05 +00:00
alwu d1cbaeb672 Bug 1632301 - part3 : use MediaAudibleState to replace boolean value. r=bryce
This patch will do :
- replace `boolean` with enum class `MediaAudibleState`

The advantage of doing so :
- It's easier to understand what actually meaning of the parameter we set

Differential Revision: https://phabricator.services.mozilla.com/D72058
2020-04-28 07:14:05 +00:00
alwu db7bb9c21e Bug 1632301 - part2 : use `ContentControlKeyEventReceiver`'s browsing context to notify any changes. r=bryce
This patch will do :
- use current broswing context as a parameter when propagate state change to the chrome process.

The advantage of doing so :
- the chrome process can know which browsing context the state change actually comes from.

---

More details about this change :

Currently, when we propagate any controlled media related states, we would find the top level browsing context first, then pass it through IPC in order to get the correct media controller in the chrome process. However, we have implemented [1] which can find the correct media controller even if we are not passing the top level browsing context.

In addition, in bug1627999, we would like to know which browsing context those states come from. Therefore, we should replace the top browsing context with the current browsing context where controlled media exists.

[1] https://searchfox.org/mozilla-central/rev/41c3ea3ee8eab9ce7b82932257cb80b703cbba67/docshell/base/CanonicalBrowsingContext.cpp#511-515

Differential Revision: https://phabricator.services.mozilla.com/D72056
2020-04-28 05:10:21 +00:00
alwu 25b47e1707 Bug 1632301 - part1 : decouple ContentMediaController from MediaControlKeysEventListener/MediaControlKeysEventSource. r=bryce
This patch will do :
- remove the inheritance relationship for `ContentControlKeyEventReceiver` and `ContentMediaAgent` and manually implement the methods we need
- `MediaControlEventListener` will inherit from `ContentControlKeyEventReceiver` directly

The advantage of doing so :
- increase the flexibilty of modification of `ContentMediaAgent` and those modification won't affect other classes inherited from `MediaControlKeysEventListener`

---

More details about this change :

As we would like to extend the class `ContentMediaAgent` and allow the `ContentMediaController` to call its extended method, but if we want to do so in current implementation, the extended method would also affect other classes inherited from `MediaControlKeysEventListener` and that is something we don't want to see.

Considering that, I decided to decouple the inheritance relationship and manually create the function I need (which will be implemented in the next patch)

Differential Revision: https://phabricator.services.mozilla.com/D72054
2020-04-28 05:10:03 +00:00
Florin Strugariu 6d34b7e399 Bug 1633391 - Remove tp6-facebook-old test and replace the recording in tp6-facebook desktop tests r=perftest-reviewers,davehunt
Differential Revision: https://phabricator.services.mozilla.com/D72648
2020-04-27 13:27:48 +00:00
Csoregi Natalia 0185f41854 Backed out changeset 14568f3c84b6 (bug 1575356) for failures on test_iframe_referrer.html. CLOSED TREE 2020-04-28 10:01:30 +03:00
Christoph Kerschbaumer 73c3fa2f74 Bug 1575356: Update Mixed Content Blocker to rely on BrowsingContext instead of nsIDocShellTreeItem. r=baku,smaug
Differential Revision: https://phabricator.services.mozilla.com/D71547
2020-04-28 05:18:28 +00:00
Tim Huang 95475507c9 Bug 1632500 - Part 2: Add a test case for ensuring the sub-iframes won't get storage access if the cookie behavior is REJECT_TRACKER. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D72310
2020-04-27 14:22:23 +00:00
Tim Huang a9dc501224 Bug 1632500 - Part 1: Add a first-level iframe check in ContentBlocking::ShouldAllowAccessFor() for cookie behavior REJECT_TRACKER. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D72309
2020-04-27 14:22:16 +00:00
Lina Cambridge c13f9f9d49 Bug 1626128 - Change Golden Gate to depend on `sync15_traits`. r=markh
Now that `BridgedEngine` has been moved to `sync15_traits`, we can
remove `golden_gate_traits` from the tree, and change Golden Gate to
depend on `sync15_traits` directly.

This commit also adds a Cargo feature, `services_sync`, which reflects
the `MOZ_SERVICES_SYNC` config option. In the future, we'll use this
feature to gate implementations of `mozIBridgedSyncEngine`.

Differential Revision: https://phabricator.services.mozilla.com/D72784
2020-04-28 04:13:04 +00:00
Mike Hommey f319da1846 Bug 1633639 - Fix new warnings about unused doc comments with rustc 1.43. r=lina
Differential Revision: https://phabricator.services.mozilla.com/D72793
2020-04-28 04:11:09 +00:00
Chris Peterson bb98712768 Bug 1594529 - Replace MOZ_MUST_USE with [[nodiscard]] in dom/media. r=bryce
Depends on D72565

Differential Revision: https://phabricator.services.mozilla.com/D72566
2020-04-27 15:18:07 +00:00
Chris Peterson d8873bd7de Bug 1594529 - Replace MOZ_MUST_USE with [[nodiscard]] in dom/media/webaudio. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D72565
2020-04-27 11:46:32 +00:00
Lee Salzman 418deed8c5 Bug 1633617 - round quantized coordinates in SWGL bilinear filtering. r=jimb
Differential Revision: https://phabricator.services.mozilla.com/D72782
2020-04-28 03:32:10 +00:00
Jeff Muizelaar 951ea8e9b4 Bug 1628809. Allow WebRender on Nvidia+battery all screen sizes. r=aosmond
We want this to ride into 77. It's a very small population.

Differential Revision: https://phabricator.services.mozilla.com/D72761
2020-04-27 22:24:37 +00:00
Razvan Maries 2bfe3415fb Backed out changeset 7fedd8fbdd5e (bug 1620776) for SM bustages. CLOSED TREE 2020-04-28 04:34:50 +03:00
Mats Palmgren 32769d9cf6 Bug 1607954 part 3 - [css-grid][css-align] Add tentative tests and update devtools support files for Masonry layout. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D67063
2020-04-28 01:24:37 +00:00
Mats Palmgren 3622105887 Bug 1607954 part 2 - [css-grid][css-align] Implement Masonry layout. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D67062
2020-04-28 01:18:47 +00:00
Mats Palmgren 12bca02735 Bug 1607954 part 1 - [css-grid][css-align] Implement style system support for Masonry layout. r=emilio
This implements support for this CSS Masonry layout proposal:
https://github.com/w3c/csswg-drafts/issues/4650

I've intentionally left out a shorthand (place-tracks?) for now until
we have a draft CSS spec for this.

Differential Revision: https://phabricator.services.mozilla.com/D67061
2020-04-28 01:18:44 +00:00
caroline c698e71df5 Bug 1620776 - Make ImmutableFlags::HasNonSyntacticScope an input flag. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D72491
2020-04-28 00:35:19 +00:00
Dão Gottwald 885b51f04c Bug 1632319 - Remove soundplaying icon from tab when discarding browser. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D72656
2020-04-27 23:49:35 +00:00
Dão Gottwald 0b5c0afcd0 Bug 1632804 - Dedupe visits with empty URL hashes (trailing #). r=mak
Differential Revision: https://phabricator.services.mozilla.com/D72373
2020-04-27 19:33:09 +00:00
David Walsh 44457e4de6 Bug 1632678 - Avoid promise shutdown failures in test r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D72707
2020-04-27 18:04:42 +00:00
Kris Maglione 4605b92d4f Bug 1617709: Fix hang monitor init/shutdown race in short-lived processes. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D72237
2020-04-23 23:18:24 +00:00
Timothy Nikkel 4c5b09e477 Bug 1626622. Remove nsDisplaySubDocument::ComputeScrollMetadata. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D72756
2020-04-27 23:58:08 +00:00
Razvan Maries bcfca19f2f Backed out changeset 0483abbea83d (bug 1627848) for build bustages. CLOSED TREE 2020-04-28 02:53:35 +03:00
Nick Thomas 945ba650bb Bug 1630154 - Add dummy certificate to Windows full installers, r=catlee
Differential Revision: https://phabricator.services.mozilla.com/D71245
2020-04-17 15:48:49 +00:00
Haik Aftandilian 7713c5c5ab Bug 1627848 - Don't call SendVisitURI() if the URI won't be added to history r=mak
Avoid unnecessary IPC traffic by checking if URI's meet the history criteria before sending them to the parent with SendVisitURI.

Differential Revision: https://phabricator.services.mozilla.com/D70217
2020-04-27 17:25:36 +00:00
Razvan Maries 4e6f971e6b Backed out changeset 456b217c3030 (bug 1629506) for perma failures on browser_copying.js. CLOSED TREE 2020-04-28 02:14:43 +03:00
Jean-Yves Avenard 071771cdc7 Bug 1633319 - Wait for load before resolving promise. r=Gijs,zombie
Differential Revision: https://phabricator.services.mozilla.com/D72593
2020-04-27 22:42:25 +00:00
Andreea Pavel 5d6ba63743 Backed out changeset 7b5f7ee72a6c (bug 1631384) for failing bc at browser_upgrade_exceptions.js on a CLOSED TREE 2020-04-28 01:43:57 +03:00
Eric Rahm 2928a42550 Bug 1632613 - Part 4e: Handle assignment to `UniquePtr` properly and silence warnings from `release` calls. r=peterv
`UniquePtr` doesn't allow assignment from raw pointers so we update callsites appropriately:
  - Assignment from `new` is mapped to `MakeUnique`
  - Assignment from pointer params or factory functions ware wrapped with `WrapUnique`
  - Assignment from `release` calls are switched to `std::move`

Additionally standalone release calls are piped into `mozilla::Unused` to stifle warnings and document that dropping the pointer is intentional.

Differential Revision: https://phabricator.services.mozilla.com/D72438
2020-04-27 10:24:56 +00:00
Eric Rahm b34d7cbdb5 Bug 1632613 - Part 4d: Replace `StartAssignment` usage. r=peterv
`UniquePtr` doesn't provide access to the address of the raw pointer. This swaps out usage of `StartAssignment` to just point to the containers themselves.

Differential Revision: https://phabricator.services.mozilla.com/D72437
2020-04-27 09:19:51 +00:00
Eric Rahm 122aa10adb Bug 1632613 - Part 4c: Swap out `forget` calls with `release`. r=peterv
`UniquePtr` uses a `release` method instead of `forget`.

Differential Revision: https://phabricator.services.mozilla.com/D72436
2020-04-27 09:57:27 +00:00
Eric Rahm c284b3bba6 Bug 1632613 - Part 4b: Swap out nsAutoPtr type for UniquePtr. r=peterv
This is essentially:
```
find dom/xslt -type f -n '*.h' | xargs sed -i -e 's/nsAutoPtr</mozilla::UniquePtr</g'
find dom/xslt -type f -n '*.cpp' | xargs sed -i -e 's/nsAutoPtr</UniquePtr</g'
```

Differential Revision: https://phabricator.services.mozilla.com/D72435
2020-04-27 09:18:33 +00:00
Eric Rahm e9c8e1d720 Bug 1632613 - Part 4a: Swap out nsAutoPtr includes. r=peterv
The first part of a larger conceptual change to switch XSLT over to `UniquePtr`. This part just replaces the `nsAutoPtr` includes.

Differential Revision: https://phabricator.services.mozilla.com/D72434
2020-04-27 09:15:34 +00:00
Eric Rahm ae7e670d7d Bug 1632613 - Part 3: Convert implicit conversion to explicit. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D72433
2020-04-27 09:15:14 +00:00
Eric Rahm 3323b91b1f Bug 1632613 - Part 2: Remove unused nsAutoPtr includes. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D72432
2020-04-27 10:25:29 +00:00
Eric Rahm 01f450a03a Bug 1632613 - Part 1: Add a void** version of UniquePtr getter_Transfers. r=KrisWright
This adds a `void**` version fo `getter_Transfers` that is needed by the last remaining nsAutoPtr user in XSLT.

Differential Revision: https://phabricator.services.mozilla.com/D72431
2020-04-27 22:13:52 +00:00
Eric Rahm a5891e1348 Bug 1632939 - Part 2: Get rid of result from infallible txStylesheetCompilerState::addInstruction. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D72430
2020-04-27 08:52:20 +00:00
Eric Rahm bb11a705ef Bug 1632939 - Part 1: Get rid of result from infallible txList::add. r=peterv
`txList::add` always returns true, we can remove various result checks and simplify things for further refactoring.

Differential Revision: https://phabricator.services.mozilla.com/D72429
2020-04-27 08:51:46 +00:00
Josh Matthews 522ffb1f8e Bug 1633557 - Add Serialize/Deserialize for structs needed by Servo. r=jdm
[import_pr] From https://github.com/servo/webrender/pull/3936

Differential Revision: https://phabricator.services.mozilla.com/D72749
2020-04-27 21:06:36 +00:00
Dzmitry Malyshau 8f221fe39d Bug 1633553 - Update dwrote to 0.11 r=jdm
Differential Revision: https://phabricator.services.mozilla.com/D72748
2020-04-27 21:47:21 +00:00
Marco Bonardo 915af000a6 Bug 1629506. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D72608
2020-04-27 11:51:24 +00:00
Scott eac3f67c3e Bug 1629931 - Ensure v2 personalization is re usable if available. r=gvn
Differential Revision: https://phabricator.services.mozilla.com/D71077
2020-04-24 23:06:55 +00:00
Valentin Gosu 59a3f0f172 Bug 1626057 - Add test for TRRService URI change notifications r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D71662
2020-04-27 20:51:20 +00:00
Valentin Gosu 0d16e3ba65 Bug 1626057 - Send an observer notification when the TRR URI changes r=dragana,necko-reviewers
This patch also exposes `nsIDNSService.currentTrrURI` to be used by the UI
to display the URI currently in use by the TRR service.

Differential Revision: https://phabricator.services.mozilla.com/D71660
2020-04-27 17:19:17 +00:00
Valentin Gosu ce21a6564e Bug 1626057 - Check for the existence of doh-rollout.uri r=dragana,necko-reviewers
Considering that we want to have multiple default TRR providers that are
chosen by the doh-rollout addon, it becomes too complex for the addon
to keep track of all of the prefs it changes, while at the same time
figuring out if the user has ever touched the same prefs.

As such, we will make the distinction that `doh-rollout.uri` is only
set by the rollout addon, and `network.trr.uri` is only set by user action.
So, when the any of the uri prefs change, we choose them like this:
1. The user provider URI
2. The addon chosen URI
3. The default pref URI

Differential Revision: https://phabricator.services.mozilla.com/D71659
2020-04-27 17:16:07 +00:00
Valentin Gosu 8ae7c102c5 Bug 1626057 - Reset TRRService::mPrivateURI on network changes r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D69373
2020-04-24 19:43:51 +00:00
Valentin Gosu dc05f86b49 Bug 1626057 - Ignore setDetectedTrrURI when the user has set the TRR URI r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D69372
2020-04-27 17:19:46 +00:00