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

617707 Коммитов

Автор SHA1 Сообщение Дата
Jason Orendorff adc7298478 Bug 1445854 - Part 1: Make GenericCreatePrototype use protoClass_. r=jwalden
Originally, long ago, the builtin prototype object of a class was always an
actual instance of that class. For many of the oldest classes, this is still
true. Array.isArray(Array.prototype) is true; Function.prototype is callable;
and so on.

As it turns out, this is a bad idea. Prototypes are a lot like uninitialized
objects; thus it was a common bug to have code like

    if (!obj->is<WidgetObject>()) {  // safety check
        return ThrowTypeError(cx, ...);
    }
    obj->as<WidgetObject>().getWidgetPrivateData()->doThings();  // BUG

This would crash when obj happened to be Widget.prototype, because that would
sneak past the safety check, and then `getWidgetPrivateData()` would typically
return null. Extra checks everywhere. The solution is for each builtin class to
have a class_ (for instances) and a protoClass_ (for the prototype object) that
share a single ClassSpec (for the benefit of the X-ray wrapper machinery).

(This problem was a pain for the spec, too. The standard committee has stopped
making prototype objects special in this way. The newer ones are just plain
objects with no internal slots, and where possible, old stuff like
Date.prototype was retroactively changed.)

GenericCreatePrototype never got the memo. This patch fixes it.

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

--HG--
extra : moz-landing-system : lando
2018-10-06 12:22:35 +00:00
Johann Hofmann 3b6d09a99f 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 13:47:13 +00:00
Sylvestre Ledru e7a0afe7cb Bug 1496903 - Fix the typos found by codespell 1.14 r=ahal
Depends on D7958

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

--HG--
extra : moz-landing-system : lando
2018-10-09 14:31:39 +00:00
Sylvestre Ledru bd3ca3e532 Bug 1496903 - Update codespell to 1.14 r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D7958

--HG--
extra : moz-landing-system : lando
2018-10-09 14:31:05 +00:00
Bryce Van Dyk 67c72df840 Bug 1495514 - Update GMP fallback downloader to Widevine CDM 4.10.1146.0. r=rhelmer
Differential Revision: https://phabricator.services.mozilla.com/D7332

--HG--
extra : moz-landing-system : lando
2018-10-01 21:31:31 +00:00
Andrew Halberstadt de447d2888 Bug 1496828 - [mochitest] Fix mochitest selftest regression by always instantiating self.extraPrefs, r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D8087

--HG--
extra : moz-landing-system : lando
2018-10-09 14:24:37 +00:00
Mathieu Leplatre db4631f13b Bug 1497159 - Use Megaphone payload for cache busting r=glasserc
Pass the expected timestamp along in querystring

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

--HG--
extra : moz-landing-system : lando
2018-10-09 14:05:01 +00:00
Jamie Nicol 3015b7e742 Bug 1490789 - Apply shift when calculating old area of invalidated frame r=miko
When calculating which regions of a layer to invalidate we usually
apply a shift to the area to account for changes in scroll offset. For
items within flattened transforms we do not do this, because the
transform itself includes the scroll offset. However, when calculating
the old area of an invalidated frame, we use the old transform. This
includes the previous scroll offset rather than the current, so we
must therefore still apply the shift.

Not doing so was causing the incorrect region to be invalidated, and
content to be rendered at the wrong location.

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

--HG--
extra : moz-landing-system : lando
2018-10-09 12:47:45 +00:00
Ehsan Akhgari a68ffa3c04 Bug 1495130 - Part 2: Remove the test cases that are no longer necessary after bug 1494737 r=baku
Depends on D7229

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

--HG--
extra : moz-landing-system : lando
2018-10-05 16:38:51 +00:00
Ehsan Akhgari 7ce7bddda7 Bug 1495130 - Part 1: Sort the list of subtests by cookieBehavior r=baku
Differential Revision: https://phabricator.services.mozilla.com/D7229

--HG--
extra : moz-landing-system : lando
2018-10-05 16:37:40 +00:00
Brindusan Cristian 3b4ca07db8 Backed out 5 changesets (bug 1496486) for build bustages on gfxUserFontSet.h. CLOSED TREE
Backed out changeset 6b740afea403 (bug 1496486)
Backed out changeset 5cf44e254ac3 (bug 1496486)
Backed out changeset 8e465202c355 (bug 1496486)
Backed out changeset 86382b2249f6 (bug 1496486)
Backed out changeset ab92ed3e0a23 (bug 1496486)
2018-10-09 16:58:38 +03:00
Johann Hofmann 8794f35242 Bug 1496671 - Final pref changes for Content Blocking in Firefox 63. r=Gijs,baku
Differential Revision: https://phabricator.services.mozilla.com/D8068

--HG--
extra : moz-landing-system : lando
2018-10-09 13:26:24 +00:00
Emilio Cobos Álvarez 791ac47786 Bug 1496486 - Bump cbindgen. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D7756
2018-10-09 15:33:06 +02:00
Emilio Cobos Álvarez a03dd78e3f Bug 1496486 - Remove some more leftover code. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D7755
2018-10-09 15:33:05 +02:00
Emilio Cobos Álvarez 55bef63412 Bug 1496486 - Remove GridTemplateAreas stuff from nsCSSValue. r=heycam
It's unused.

Differential Revision: https://phabricator.services.mozilla.com/D7754
2018-10-09 15:33:04 +02:00
Emilio Cobos Álvarez d6c743191f Bug 1496486 - Remove nsCSSValue usage from font code. r=heycam
Really sorry for the size of the patch.

Differential Revision: https://phabricator.services.mozilla.com/D7753
2018-10-09 15:33:03 +02:00
Emilio Cobos Álvarez 089e54f3f3 Bug 1496486 - Remove a bunch of unused nsCSSValue code. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D7752
2018-10-09 15:33:01 +02:00
Paul Adenot 4cd025e1b6 Bug 1493779 - Gracefuly handle OOM when setting a buffer on ConvolverNode. r=karlt
When OOMing when allocating the temporary buffer, we return an error from the
ctor via an output parameter, and make the ConvolverNode output silence.
Additionaly, a warning is issued each time we fail to set a buffer to the buffer
property of a ConvolverNode.

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

--HG--
extra : moz-landing-system : lando
2018-10-09 13:19:20 +00:00
Paul Adenot ea908df1b5 Bug 1493779 - Add a test for ConvolverNode with very large buffer. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D6935

--HG--
extra : moz-landing-system : lando
2018-10-09 13:19:27 +00:00
Andreas Tolfsen 10d442575f bug 1496987: geckodriver: turn off arm7hf builds; r=automatedtester
The intent to turn off ARMv7 HF builds before
the geckodriver 1.0 release was announced in
https://lists.mozilla.org/pipermail/tools-marionette/2018-September/000035.html.

In order to create as few surprises as possible before 1.0, we
should turn off ARMv7 HF builds on Travis first.

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

--HG--
extra : moz-landing-system : lando
2018-10-09 12:46:33 +00:00
Julian Descottes 3a72442ee2 Bug 1496741 - Cleanup adb-addon.js module;r=ladybenko
This introduces constants for the addon states and migrates ADBAddon to a class

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

--HG--
extra : moz-landing-system : lando
2018-10-09 07:07:56 +00:00
Edgar Chen 4026ebce41 Bug 1473108 - Part 2: Make PresShell not point to unbound NAC in event content stack; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D8042

--HG--
extra : moz-landing-system : lando
2018-10-09 12:16:15 +00:00
Edgar Chen 92ec9a1f2a Bug 1473108 - Part 1: Devirtualize nsIPresShell::GetCurrentEventFrame/GetEventTargetContent; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D8041

--HG--
extra : moz-landing-system : lando
2018-10-09 09:47:58 +00: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