Commit Graph

617789 Commits

Author SHA1 Message Date
Manuel Rego Casasnovas
d9ecddc9fa Bug 1491235: [css-contain] Make 'contain:layout' (not 'contain:size') suppress baseline measurements r=dholbert
The CSSWG has recently resolved that layout containment
suppress baseline alignment, while size containment does not:
https://github.com/w3c/csswg-drafts/issues/2995

Spec text (https://drafts.csswg.org/css-contain/#containment-layout):
  "7. For the purpose of the vertical-align property,
   or any other property whose effects need to relate
   the position of the containing element's baseline
   to something other than its descendants,
   the containing element is treated as having no baseline."

And a note in (https://drafts.csswg.org/css-contain/#containment-size):
  "Note: size containment does not suppress baseline alignment.
   See layout containment for that."

This patch does this change just switching IsContainSize()
by IsLayoutSize() in several places related to baseline alignment
in the source code.

With the patch several WPT tests start to pass. Apart from that,
some of the tests under vendor-imports are updated to follow
the new behavior.

--HG--
extra : amend_source : 05dc9a320afeb1d58981e2bd8bc47b435999f2f9
2018-10-09 14:13:13 -07:00
Eric Rahm
1d4ad9b0fb Bug 1470280 - Part 4: Increase process count to 8 on Nightly. r=felipe
This increases the default amount of content processes on nightly to 8. It
is nightly only and will not ride the trains.

--HG--
extra : rebase_source : a39b9aa36e10e18b8c8e050d69d639178b6f1a5a
extra : source : d5375325488f449c45dd032bc8167ebebca07497
2018-10-04 14:44:22 -07:00
Eric Rahm
756fa95899 Bug 1470280 - Part 3: Use the default process count in browser_ext_slow_script.js. r=kmag
This updates the test to use a multiple of the default process count rather
than hardcoding 8.

--HG--
extra : rebase_source : 2aa15de90a58e38e480aca5e10f0b680820ecb2c
2018-10-06 12:53:41 -07:00
Eric Rahm
05f38084da Bug 1470280 - Part 2: Just use osPid to check for new process. r=mconley
The 'ipc:content-created' topic doesn't always seem to be propagated to the
browser_force_process_selector.js test. It appears it's not necessary to
actually wait for it, so lets just remove that.

--HG--
extra : rebase_source : 3bd948166ab94007b9e1752fb9a7e934e4341777
2018-10-05 18:24:17 -07:00
Eric Rahm
2ec31614da Bug 1470280 - Part 1: Make browser_preferences_usage.js less brittle. r=kmag
browser_preferences_usage.js hardcodes a max value of 15 accesses which doesn't scale well as we increase the number of processes. Instead we'll base the max on a multiplier of the default process count which should avoid bustage in the future but still catch egregious accesses.

--HG--
extra : rebase_source : 9c047b27b6d7a2666f8889ffcee3754762e40987
2018-10-05 14:28:58 -07:00
Jeff Gilbert
a1458ae61a Bug 1497677 - Revendor ANGLE with parallel link and provoking_vertex_dont_care for WR. 2018-10-09 14:11:46 -07:00
Boris Zbarsky
aacae7bf6b Bug 1497658 part 2. Stop using GetCurrentJSContext in CallerInnerWindow. r=mccr8
We're always called from script, so just pass through the JSContext.
2018-10-09 17:02:13 -04:00
Boris Zbarsky
71af18de28 Bug 1497658 part 1. Remove a useless GetCurrentJSContext check in MakeScriptDialogTitle. r=mccr8
We want to just use the subject principal URI.  In practice, all our callers
are script anyway, it turns out...
2018-10-09 17:02:13 -04:00
Eric Rahm
2d424cc2b2 Bug 1383315 - Disable browser/base/content/test/tabcrashed/browser_noPermanentKey.js. r=mconley
--HG--
extra : rebase_source : 694bd2599ccfa9125f0402ee1eec7af20d6fe416
extra : amend_source : 1a6b435ad2e1b2f78b7061d2ad49c6fa683817b9
2018-10-06 17:42:21 -07:00
Gabriel Luong
46551de89c Bug 1248619 - Part 3: Restore the previous viewport size, user agent, display pixel ratio and touch simultation properties. r=rcaliman
We also provided reasonable defaults to all our SErvices.prefs getter in case an user's profile
is somehow missing those prefs.
2018-10-09 14:53:29 -04:00
Gabriel Luong
3d646a307f Bug 1248619 - Part 2: Restore the previous device state in RDM. r=rcaliman 2018-10-09 14:53:29 -04:00
Bogdan Tara
747771a75a Backed out 2 changesets (bug 1248619) for devtools/client/responsive.html/test/unit/test_change_device.js failures
Backed out changeset fb2a9e0b7538 (bug 1248619)
Backed out changeset ae15dbcedd8a (bug 1248619)
2018-10-09 22:43:50 +03:00
Sebastian Hengst
b5b8b2d8c3 Bug 1494928 [wpt PR 13258] - Simplify UUID RegExp because OS variants: Set macOS back to passing. a=wpt-fix 2018-10-09 22:18:20 +03:00
Gabriel Luong
f1a275aac1 Bug 1248619 - Part 3: Restore the previous viewport size, user agent, display pixel ratio and touch simultation properties. r=rcaliman
We also provided reasonable defaults to all our SErvices.prefs getter in case an user's profile
is somehow missing those prefs.
2018-10-09 14:53:29 -04:00
Gabriel Luong
8ab4b43309 Bug 1248619 - Part 2: Restore the previous device state in RDM. r=rcaliman 2018-10-09 14:53:29 -04:00
Julian Descottes
65e9cbd0e2 Bug 1496741 - Cleanup adb-addon.js module;r=ladybenko
--HG--
extra : rebase_source : c7d5a65aa5fc305295a6ae49020bf2b49c090c13
2018-10-02 11:25:03 +02:00
Andrew Osmond
75ee4d6a42 Bug 1496726 - Fix how some display item containers were missing from the clip optimization exclusion list. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D7966
2018-10-09 13:09:08 -04:00
shindli
00033b4ac3 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-10-09 19:30:34 +03:00
shindli
089182bee5 Merge inbound to mozilla-central. a=merge 2018-10-09 19:24:28 +03:00
Narcis Beleuzu
6f7c4e28a5 Backed out changeset 3bc82182725e (bug 1493081) for android bustages. CLOSED TREE 2018-10-09 15:18:51 +03:00
Dão Gottwald
a1df8acd6c Bug 1497464 - UrlbarInput value setter needs to call formatValue. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D8069

--HG--
extra : moz-landing-system : lando
2018-10-09 11:40:25 +00:00
Jan Horak
697b7b3f5d Bug 1493081 - Added nsIWidget::GetDesktopToDeviceScaleByScreen for scale factor lookup by window position; r=mattwoodrow
We've added nsIWidget::GetDesktopToDeviceScaleByScreen which will return scale factor of the newly placed window
according to its position on the display. This change is to move implementation to the nsIWidget derived classes.
We need that for GTK Wayland, because on the Wayland we cannot determine absolute position of the window, we
need to use parent's window scale factor. For other platforms the GetDesktopToDeviceScaleByScreen is implemented
in nsBaseWidget.

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

--HG--
extra : moz-landing-system : lando
2018-10-09 11:00:47 +00:00
Michael Ratcliffe
2150b8be21 Bug 1493937 - Highlighting the various margin/border/padding/content regions from the box-model does not work anymore r=pbro
Differential Revision: https://phabricator.services.mozilla.com/D8020

--HG--
extra : moz-landing-system : lando
2018-10-09 07:41:35 +00:00
Michael Ratcliffe
1341efabb4 Bug 1496793 - Event telemetry should trim values if length > 80 chars r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D7989

--HG--
extra : moz-landing-system : lando
2018-10-08 17:12:25 +00:00
Michael Ratcliffe
5000a5eeab Bug 1488406 - Allow finish() to measure in seconds n addition to ms r=janerik
gfritzsche asked me to use this method to add compatibility to measure the time in seconds.

At the moment we are forced to clone `devtools/client/shared/TelemetryStopwatch.jsm` so that we can get it working the way we need.

The problem is that it measure time in ms when using start() finish() etc. and that creates too many entries in our charts and makes them next to impossible to read.

It would be much better if we could measure the time in seconds instead.

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

--HG--
extra : moz-landing-system : lando
2018-10-09 08:59:42 +00:00
yulia
d2ae0d6505 Bug 1488376 - Use target.getFront to instantiate ReflowFront; r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D7888

--HG--
extra : moz-landing-system : lando
2018-10-09 10:01:19 +00:00
yulia
498cbdfbe4 Bug 1488380 - update RDM emulation front instantiation with comments, move to getFront elsewhere; r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D8006

--HG--
extra : moz-landing-system : lando
2018-10-09 10:16:38 +00:00
Narcis Beleuzu
e824cdada7 Backed out changeset 015250ccee42 (bug 1476220) for causing en-US failures on identity-popup-host 2018-10-09 13:07:09 +03:00
Alexandre Poirot
c6d9d13e6e Bug 1492265 - Remove xpcshell specifics from BrowsingContextTargetActor and ParentProcessTargetActor. r=jdescottes
Now that xpcshell no longer uses ParentProcessTargetActor, we can remove comments about it using it.
We can also remove a couple of null checks against docShell that were specific to this usecase.

MozReview-Commit-ID: 67sugv4bZC3

Depends on D7416

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

--HG--
extra : moz-landing-system : lando
2018-10-09 09:31:10 +00:00
Alexandre Poirot
687cff632b Bug 1492265 - Use a content process target actor for xpcshell debugging. r=jdescottes
MozReview-Commit-ID: J9XTgC0EBPG

Depends on D7415

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

--HG--
extra : moz-landing-system : lando
2018-10-09 09:31:08 +00:00
shindli
3f86c4c860 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-10-09 12:30:40 +03:00
shindli
80ac71c1c5 Merge inbound to mozilla-central. a=merge 2018-10-09 12:27:34 +03:00
Johann Hofmann
79c5839764 Bug 1476220 - Show a "site information" header in the identity popup. r=paolo
Differential Revision: https://phabricator.services.mozilla.com/D7090

--HG--
extra : moz-landing-system : lando
2018-10-09 09:11:01 +00:00
Daisuke Akatsuka
dbf968f31f Bug 1494547: Store actual connection information. r=jdescottes
Depends on D7842

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

--HG--
extra : moz-landing-system : lando
2018-10-09 08:45:47 +00:00
Daisuke Akatsuka
cfcc43a224 Bug 1494547: Store connection settings to runtime object. r=jdescottes
Depends on D7039

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

--HG--
extra : moz-landing-system : lando
2018-10-09 05:47:52 +00:00
yulia
3b9941d99e Bug 1488377 - Use target.getFront to instantiate CssPropertiesFront; r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D7886

--HG--
extra : moz-landing-system : lando
2018-10-08 15:01:45 +00:00
Alessio Placitelli
53d248ebfe Bug 1497139 - Version bump for new HCT library release. r=janerik
Differential Revision: https://phabricator.services.mozilla.com/D8059

--HG--
extra : moz-landing-system : lando
2018-10-09 07:54:00 +00:00
Nazım Can Altınova
ca2124b63c Bug 1414383 - Return an error if nm requires xcode license to be accepted during symbolication r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D8037

--HG--
extra : moz-landing-system : lando
2018-10-09 03:08:43 +00:00
vinoth
0b7d472391 Bug 1491759 - Replaced eval with loadSubScript from loadPrivilegedScript() in specialpowersAPI.js r=JuniorHsu
Differential Revision: https://phabricator.services.mozilla.com/D7975

--HG--
extra : moz-landing-system : lando
2018-10-08 15:54:48 +00:00
Jean-Yves Avenard
16852a7fe4 Bug 1495025 - P7. Silence compilation warning r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D7977

--HG--
extra : moz-landing-system : lando
2018-10-08 18:57:58 +00:00
Haik Aftandilian
ef8195ebcb Bug 1497408 - Make NS_MACPREFERENCESREADER_CID unique r=spohl
Differential Revision: https://phabricator.services.mozilla.com/D8057

--HG--
extra : moz-landing-system : lando
2018-10-09 05:47:40 +00:00
Bumsik Kim
90d3be0a4c Bug 1496383 - Fix state error cases of MediaRecorder to match the W3C spec r=jya
Fix a bug that the current MediaRecorder's state error cases does not match the W3C spec.
pause() and resume() should throw an INVAILD_STATE_ERR only when it is inactive state, making them
independant.
Simply changing if statements is enough because the underlying encoder object (TrackEncoder) will
ignore Suspend/Resume calls when it is already suspended/recording so there won't be side-effects by
multiple pause()/resume() calls.

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

--HG--
extra : moz-landing-system : lando
2018-10-08 09:06:07 +00:00
Masayuki Nakano
06267cb849 Bug 1479964 - Set KeyboardEvent.keyCode and KeyboardEvent.charCode to same value if the event is "keypress" event r=smaug
Chrome sets both KeyboardEvent.keyCode and KeyboardEvent.charCode of "keypress"
event to same value.  On the other hand, our traditional behavior is, sets
one of them to 0.

Therefore, we need to set keyCode value to charCode value if the keypress
event is caused by a non-function key, i.e., it may be a printable key with
specific modifier state and/or different keyboard layout for compatibility
with Chrome.  Similarly, we need to set charCode value to keyCode value if
the keypress event is caused by a function key which is not mapped to producing
a character.

Note that this hack is for compatibility with Chrome.  So, for now, it's enough
to change the behavior only for "keypress" event handlers in web content.  If
we completely change the behavior, we need to fix a lot of default handlers
and mochitests too.  However, it's really difficult because default handlers
check whether keypress events are printable or not with following code:

> if (event.charCode &&
>     !event.altKey && !event.ctrlKey && !event.metaKey) {

or

> if (!event.keyCode &&
>     !event.altKey && !event.ctrlKey && !event.metaKey) {

So, until we stop dispatching "keypress" events for non-printable keys,
we need complicated check in each of them.

And also note that this patch changes the behavior of KeyboardEvent::KeyCode()
when spoofing is enabled and the instance is initialized by initKeyEvent() or
initKeyboardEvent().  That was changed by bug 1222285 unexpectedly and keeping
the behavior makes patched code really ugly.  Therefore, this takes back the
old behavior even if spoofing is enabled.

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

--HG--
extra : moz-landing-system : lando
2018-10-09 04:43:37 +00:00
Noemi Erli
912f6233fd Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-10-09 07:05:46 +03:00
Noemi Erli
a9748223c6 Merge inbound to mozilla-central. a=merge 2018-10-09 07:03:30 +03:00
Noemi Erli
d07327c2b2 Merge autoland to mozilla-central. a=merge 2018-10-09 07:01:46 +03:00
Noemi Erli
8e3fe95bfb Backed out 3 changesets (bug 1414287) for causing bug 1497029 a=backout
Backed out changeset b8da3d4e6da0 (bug 1414287)
Backed out changeset 273e84414434 (bug 1414287)
Backed out changeset 76fafdaa9216 (bug 1414287)
2018-10-09 05:07:54 +03:00
Masayuki Nakano
d5f33c6b5a Bug 1495978 - Make PuppetWidget::StartPluginIME() restore cross process dispatching state of given keyboard event instance after sending it to the main process synchronously r=m_kato
PuppetWidget::StartPluginIME() calls TabChild::SendStartPluginIME()
with given WidgetKeyboardEvent instance.  Then, the keyboard event
will be marked as "posted to remote process" by
ParamTraits<mozilla::WidgetEvent>::Write().  However, the method
sends back the keyboard event to the main process synchronously.
So, we don't want the event is treated as "posted" since the
flag is used to check whether current process handles posted event
*before* the remote process or not.

So, PuppetWidget::StartPluginIME() should restore the cross process
dispatching state with calling
WidgetEvent::ResetCrossProcessDispatchingState().  Unfortunately,
this also clears propagation state of the event too if the event
has already been posted to a remote process and is waiting reply
from the remote process.  This shouldn't occur in content
process, however, we should check it with MOZ_ASSERT() for
detecting regressions.

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

--HG--
extra : moz-landing-system : lando
2018-10-09 01:29:42 +00:00
Bryce Van Dyk
f88683aacf Bug 1496501 - Do not mark CDM input as unencrypted even if it has no encrypted bytes. r=cpearce
Bug 1494178 added code to mark samples with 0 encrypted ranges as unencrypted
before they were fed to the CDM. This was to catch issues where we could mark
such unencrypted samples as encrypted. However, the CDM expects certain samples
that are clear to still be marked as encrypted.

Specifically, WebM samples should be marked as encrypted if they are from an
encrypted track and have the signal byte's encryption bit set (a marker for if
the packet is encrypted), even if they have no encrypted ranges.

The WebM demuxer is already doing this. Further inspection and testing of the
mp4 demuxer shows it is behaving in line with Chromium's current mp4 parser,
which we can expect prepares its data sensibly for Widevine.

As the code removed here was added as a safety fallback, but is causing issues,
and as the demuxers already appear to be doing the right thing, the fallback
code can be removed.

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

--HG--
extra : moz-landing-system : lando
2018-10-08 22:34:32 +00:00
Thomas Wisniewski
ba1f0dc311 Bug 1496621 - reject Fetch promises with (informative) TypeErrors when decoding fails, per spec; r=baku
reject Fetch promises with (informative) TypeErrors when decoding fails, per spec

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

--HG--
extra : moz-landing-system : lando
2018-10-08 23:57:23 +00:00