Commit Graph

653069 Commits

Author SHA1 Message Date
Jean-Yves Avenard
7160d797f9 Bug 1552643 - P3. rename medium_high_event_queue.enabled pref. r=froydnj
To make it more inline other preferences naming.

Differential Revision: https://phabricator.services.mozilla.com/D32251

--HG--
extra : moz-landing-system : lando
2019-05-25 02:03:21 +00:00
Jean-Yves Avenard
4c7ec3652a Bug 1552643 - P2. Clarify the requirements section. r=njn
Differential Revision: https://phabricator.services.mozilla.com/D32252

--HG--
extra : moz-landing-system : lando
2019-05-25 02:03:06 +00:00
Jean-Yves Avenard
11ec8ec9d9 Bug 1552643 - P1. Re-organise prefs in sections. r=njn
This re-organise the various sections, re-sorting preferences by alphabetical order as originally intended (except for media).

Differential Revision: https://phabricator.services.mozilla.com/D31995

--HG--
extra : moz-landing-system : lando
2019-05-25 02:07:21 +00:00
Ed Lee
e3ec6b73eb Bug 1554322 - Add accessible content, static clamping and bug fixes to Activity Stream r=k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D32540

--HG--
extra : moz-landing-system : lando
2019-05-25 00:38:53 +00:00
Jean-Yves Avenard
9180d72bfa Bug 1550422 - P27. Do not set WebRender preferences as code don't expect them to exists. r=cpearce
Listing the preferences in either all.js or StaticPrefList.h would also make them appear in about:config which is something we don't want.

Additionally, rename some pref constants to improve code clarity as we can no longer rely on using the StaticPrefs accessor.

Differential Revision: https://phabricator.services.mozilla.com/D32416

--HG--
extra : moz-landing-system : lando
2019-05-24 11:40:04 +00:00
Jean-Yves Avenard
abc6837058 Bug 1550422 - P26. Make setter only usable on main process. r=njn
And set the underlying preference. StaticPrefs::Set becomes a convenience access to the original preference which is what gfxPrefs was actually doing.

Differential Revision: https://phabricator.services.mozilla.com/D31749

--HG--
extra : moz-landing-system : lando
2019-05-24 11:39:31 +00:00
Jean-Yves Avenard
03b0ba3a01 Bug 1550422 - P25. Don't make prefs unnecessarily atomic. r=njn
Skip and Once prefs are only ever written on the main thread once. There's no need to make those prefs atomic.

Differential Revision: https://phabricator.services.mozilla.com/D31732

--HG--
extra : moz-landing-system : lando
2019-05-24 11:39:04 +00:00
Jean-Yves Avenard
19a12894ee Bug 1550422 - P24. Fix style of StaticPrefs. r=njn
Prefs aren't yet sorted as they should be, this will be done in bug 1552643

Differential Revision: https://phabricator.services.mozilla.com/D31731

--HG--
extra : moz-landing-system : lando
2019-05-24 11:38:20 +00:00
Jean-Yves Avenard
074aea57fe Bug 1550422 - P23. Remove now unused gfxPrefs. r=jrmuizel
And with some tidying some comments and removing stray #include "gfxPrefs.h"

Differential Revision: https://phabricator.services.mozilla.com/D31468

--HG--
extra : moz-landing-system : lando
2019-05-24 11:37:50 +00:00
Jean-Yves Avenard
50f48b12ca Bug 1550422 - P22. Remove gfxPref sync with GPU process. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D31467

--HG--
extra : moz-landing-system : lando
2019-05-24 11:37:34 +00:00
Jean-Yves Avenard
3e3e986f19 Bug 1550422 - P21. Remove gfxPref sync with VR process. r=daoshengmu
Differential Revision: https://phabricator.services.mozilla.com/D31466

--HG--
extra : moz-landing-system : lando
2019-05-24 11:37:32 +00:00
Jean-Yves Avenard
47e29fdb9d Bug 1550422 - P20. Add missing namespace. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D31463

--HG--
extra : moz-landing-system : lando
2019-05-24 11:35:27 +00:00
Jean-Yves Avenard
dba19b18cf Bug 1550422 - P19. Convert gfxPrefs::LayersWindowRecordingPath to gfxVars. r=jrmuizel
StaticPrefs doesn't support nsCString type and the changes required to support this would be rather big. Seeing that there was only a single gfxPrefs using this, and this is a "Once" pref ; we move it to gfxVars instead.

Differential Revision: https://phabricator.services.mozilla.com/D31462

--HG--
extra : moz-landing-system : lando
2019-05-24 11:34:23 +00:00
Jean-Yves Avenard
d14a557fd3 Bug 1550422 - P18. Convert gfxPrefs::LayoutFrameRate to StaticPrefs. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D31461

--HG--
extra : moz-landing-system : lando
2019-05-24 11:33:53 +00:00
Jean-Yves Avenard
14806f7e2e Bug 1550422 - P17. Convert gfxPrefs::GfxLoggingLevel to StaticPrefs. r=jrmuizel
Fly-by fix, we make LoggingPrefs::sGfxLogLevel as it is written on the main thread but read on different threads.

Differential Revision: https://phabricator.services.mozilla.com/D31460

--HG--
extra : moz-landing-system : lando
2019-05-24 11:33:24 +00:00
Jean-Yves Avenard
8d5f292ab5 Bug 1550422 - P15. Move Skip and Once gfxPrefs to StaticPrefs. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D31259

--HG--
extra : moz-landing-system : lando
2019-05-24 11:32:54 +00:00
Jean-Yves Avenard
5f04262667 Bug 1550422 - P14. Add GetXXName and GetXXDefault methods to StaticPrefs. r=njn
This is required to emulate some gfxPrefs functionalities.

Differential Revision: https://phabricator.services.mozilla.com/D31258

--HG--
extra : moz-landing-system : lando
2019-05-24 11:32:20 +00:00
Jean-Yves Avenard
72db7328f0 Bug 1550422 - P13. Add Skip, Once and Live cached preference policy. r=njn,kmag
This works identically to what gfxPrefs UpdatePolicy offers.

Differential Revision: https://phabricator.services.mozilla.com/D31257

--HG--
extra : moz-landing-system : lando
2019-05-25 00:03:53 +00:00
Jean-Yves Avenard
af5790cf9b Bug 1550422 - P12. Convert Live gfxPrefs into StaticPrefs. r=jrmuizel
gfxPrefs Live preferences are almost identical to StaticPrefs.

We leave aside for now those that set a custom change callback as this feature isn't yet supported in StaticPrefs.

Differential Revision: https://phabricator.services.mozilla.com/D31256

--HG--
extra : moz-landing-system : lando
2019-05-25 00:03:32 +00:00
Jean-Yves Avenard
e47d662928 Bug 1550422 - P11. Add atomic float preferences support. r=njn
Differential Revision: https://phabricator.services.mozilla.com/D31255

--HG--
extra : moz-landing-system : lando
2019-05-23 04:13:08 +00:00
Jean-Yves Avenard
98f310048b Bug 1550422 - P10. Define StaticPrefs setter. r=njn
This is used by some gfx code and is required to convert gfxPrefs into StaticPrefs.

The setter only modifies the value of the StaticPref in the current process and doesn't propagate to others.

Differential Revision: https://phabricator.services.mozilla.com/D31254

--HG--
extra : moz-landing-system : lando
2019-05-23 04:13:08 +00:00
Jean-Yves Avenard
1ba7652612 Bug 1550422 - P9. Sync preferences in VR process when they change. r=daoshengmu
Differential Revision: https://phabricator.services.mozilla.com/D31017

--HG--
extra : moz-landing-system : lando
2019-05-23 04:13:07 +00:00
Jean-Yves Avenard
92e6d6a079 Bug 1550422 - P8. Add shared pref serializer/deserializer to VR process. r=kmag,daoshengmu
Differential Revision: https://phabricator.services.mozilla.com/D31016

--HG--
extra : moz-landing-system : lando
2019-05-23 04:13:07 +00:00
Jean-Yves Avenard
6b2b4eb23d Bug 1550422 - P7. Add VR process selector to prefs module. r=spohl
Will be needed to remove gfxPrefs in favor of StaticPrefs

Differential Revision: https://phabricator.services.mozilla.com/D31015

--HG--
extra : moz-landing-system : lando
2019-05-23 04:13:07 +00:00
Jean-Yves Avenard
0176b72a88 Bug 1550422 - P6. Release object early when error. r=mattwoodrow
No need to keep the object alive.

Differential Revision: https://phabricator.services.mozilla.com/D31014

--HG--
extra : moz-landing-system : lando
2019-05-23 04:13:06 +00:00
Jean-Yves Avenard
ae9b00180b Bug 1550422 - P5. Sync preferences with RDD process when then changed. r=mattwoodrow,mjf
Differential Revision: https://phabricator.services.mozilla.com/D30590

--HG--
extra : moz-landing-system : lando
2019-05-23 04:13:06 +00:00
Jean-Yves Avenard
74921b190e Bug 1550422 - P4. Sync preferences when they changed. r=mattwoodrow
This will allow to remove gfxPrefs later. On Windows in particular, the need to decide gfxPrefs vs StaticPrefs for the WMF decoders has caused several bugs in the past.
We will remove the confusion as a consequence.

Differential Revision: https://phabricator.services.mozilla.com/D30589

--HG--
extra : moz-landing-system : lando
2019-05-23 04:13:06 +00:00
Jean-Yves Avenard
6cdba9b76b Bug 1550422 - P3. Fix typo when filtering preferences to sync. r=njn
Differential Revision: https://phabricator.services.mozilla.com/D30588

--HG--
extra : moz-landing-system : lando
2019-05-23 04:13:05 +00:00
Jean-Yves Avenard
8f7ae177ac Bug 1550422 - P2. add shared pref serializer/deserializer to GPU process. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D30587

--HG--
extra : moz-landing-system : lando
2019-05-23 04:13:05 +00:00
Jean-Yves Avenard
63a416f158 Bug 1550422 - P1. Add GPU process selector to prefs module. r=spohl,mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D30586

--HG--
extra : moz-landing-system : lando
2019-05-23 04:13:05 +00:00
Jean-Yves Avenard
a7d76c8887 Bug 1550422 - P00. Fix Windows compilation. r=dmajor
Following the shift in unified build setup following the removal of gfxPrefs.{cpp,c} we hit this error.

Unified builds made this header get included with other files that use multiple inheritance, and clang-cl about the conflicting inheritance models. Local testing suggests clang-cl doesn't need the pragma anyway, so just take it out.

Differential Revision: https://phabricator.services.mozilla.com/D31465

--HG--
extra : moz-landing-system : lando
2019-05-23 04:13:13 +00:00
Jean-Yves Avenard
6fb0889b9a Bug 1550422 - P0. Use X11UndefineNone.h to avoid conflicts with the macro None from X11/X.h. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D31971

--HG--
extra : moz-landing-system : lando
2019-05-23 04:13:16 +00:00
Jorg K
d68e18d631 Bug 1553957 - Follow-up: Revert changeset 9a89e2b0fa9d and include WindowProxyHolder.h in JSWindowActorChild.cpp. r=bzbarsky
Reviewers: bzbarsky

Reviewed By: bzbarsky

Bug #: 1553957

Differential Revision: https://phabricator.services.mozilla.com/D32514

--HG--
extra : rebase_source : 32f18c40dbbfeb19da8fa5f25bd69ff4286d0a31
2019-05-25 02:53:49 +03:00
Barret Rennie
a71ef09a3f Bug 1547472 - Ref count the ProfilerScreenshots structure r=gerald,jesup
Differential Revision: https://phabricator.services.mozilla.com/D32524

--HG--
extra : moz-landing-system : lando
2019-05-24 23:53:28 +00:00
Narcis Beleuzu
b9bb66c9e0 Backed out changeset 204c7f42d427 (bug 1554178) for xpcshell failures on test_remote_settings.js . CLOSED TREE 2019-05-25 02:41:41 +03:00
Nika Layzell
1976124273 Bug 1535835 - Remove global weak ref to BrowsingContext within Unlink(), r=farre
Differential Revision: https://phabricator.services.mozilla.com/D30683

--HG--
extra : moz-landing-system : lando
2019-05-24 20:15:53 +00:00
Nika Layzell
77532c1fa6 Bug 1553270 - Part 2: Allow getting a protocol's name from its ProtocolID, r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D32043

--HG--
extra : moz-landing-system : lando
2019-05-24 22:36:49 +00:00
Nika Layzell
406f5cc2d8 Bug 1553270 - Part 1: Store the protocol ID on IProtocol directly, r=froydnj
This allows for the getter to be used in IProtocol's destructor, and generally
brings IProtocol more in line with IToplevelProtocol.

Differential Revision: https://phabricator.services.mozilla.com/D32042

--HG--
extra : moz-landing-system : lando
2019-05-24 20:21:35 +00:00
Brad Werth
0513d4f213 Bug 1496609 Part 1: Add a test of getViewportInfo clamping initial-scale to min-scale. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D32366

--HG--
extra : moz-landing-system : lando
2019-05-24 22:58:45 +00:00
Dale Harvey
481bc67f05 Bug 1552193 - Restore engine shortName to pre webextensions value. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D31876

--HG--
extra : moz-landing-system : lando
2019-05-24 21:02:51 +00:00
Mathieu Leplatre
daebd4816c Bug 1554178 - Disable events sampling for uptake telemetry tests r=glasserc
Differential Revision: https://phabricator.services.mozilla.com/D32484

--HG--
extra : moz-landing-system : lando
2019-05-24 16:23:31 +00:00
Nika Layzell
899ad56a3d Bug 1550613 - Part 2: Add test for early-lifecycle in-process messages, r=jdai
Differential Revision: https://phabricator.services.mozilla.com/D30665

--HG--
extra : moz-landing-system : lando
2019-05-24 20:16:18 +00:00
Nika Layzell
dd50c7634c Bug 1550613 - Part 1: Get other side actor after posting to the event loop, r=jdai
This patch changes the timing of when the other side actor is created to
be after posting the message to the event loop, to avoid situations
early during actor creation when the parent side hasn't been created yet
triggering null pointer crashes.

Differential Revision: https://phabricator.services.mozilla.com/D30664

--HG--
extra : moz-landing-system : lando
2019-05-24 20:16:16 +00:00
Nika Layzell
e24cefae3f Bug 1553952 - Fire oop-browser-crashed when mBrowserParent construction fails, r=mconley
This is an attempt to reduce the negative impact of bug 1553644 by replacing a
remote browser which fails to create an `mBrowserParent` actor with a tab
crashed display rather than a failed `nsFrameLoader`. This is done by firing the
`oop-browser-crashed` event on the owner `<browser>` element when the attempt
fails, even if no `BrowserParent` was ever created.

This does not fix the root cause of bug 1553644, but may make the browser better
at recovering.

Differential Revision: https://phabricator.services.mozilla.com/D32381

--HG--
extra : moz-landing-system : lando
2019-05-24 22:14:44 +00:00
Sylvestre Ledru
d4a0ba5010 Bug 1554115 - mozlint rustfmt should fail if using the old rustfmt version r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D32439

--HG--
extra : moz-landing-system : lando
2019-05-24 21:53:58 +00:00
Alastor Wu
fb742c262d Bug 1550633 - part17 : enable loading for track elements in 'browser_cache.js ' and 'trackerFrame.html '. r=timhuang
As now we won't load disabled text track, we have to mark track as default in order to trigger loading which would be done by automatically text track selection, or to set its track mode explicitly.

Differential Revision: https://phabricator.services.mozilla.com/D32359

--HG--
extra : moz-landing-system : lando
2019-05-24 19:07:18 +00:00
alwu
2425d24591 Bug 1550633 - part16 : turn off the pref 'media.block-autoplay-until-in-foreground' in wpt. r=jgraham
Sometime wpt runs test even before the document becomes visible, which would delay `video.play()` and cause `play()` running in wrong order.

Differential Revision: https://phabricator.services.mozilla.com/D32079

--HG--
extra : moz-landing-system : lando
2019-05-24 00:40:55 +00:00
alwu
53b352f32f Bug 1550633 - part15 : return error when we failed to create channel. r=jya
The channel might not be created correctly if we pass invaild url (eg. "invalid://url"), we should handle this error.

Differential Revision: https://phabricator.services.mozilla.com/D32038

--HG--
extra : moz-landing-system : lando
2019-05-24 00:40:58 +00:00
alwu
abe2ed56ba Bug 1550633 - part14 : add a test for 'honor user preferences for automatic text track selection'. r=bzbarsky
This test is used to ensure that we queue 'honor user preferences for automatic text track selection' as a marco task, not a mirco task.

In this test, we would trigger a media event before queuing a text track selection task, and check the text track's mode to know whether the text track selection runs after the task for media event.

Differential Revision: https://phabricator.services.mozilla.com/D31921

--HG--
extra : moz-landing-system : lando
2019-05-24 00:41:00 +00:00
alwu
71e65af283 Bug 1550633 - part13.6 - refactor tests. r=jya
Refactor those tests' structure in order to make them more readable, and add the comment to show what the test purpose is for each test.

Differential Revision: https://phabricator.services.mozilla.com/D31914

--HG--
extra : moz-landing-system : lando
2019-05-24 00:41:02 +00:00