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

75141 Коммитов

Автор SHA1 Сообщение Дата
Andreea Pavel fb9ae65849 Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2018-06-10 12:51:28 +03:00
Joel Maher 50b91c0a14 Bug 1405428 - skip-if = verify on mochitests which do not pass test-verify. r=gbrown 2018-06-10 05:01:47 -04:00
Bogdan Tara fd27dd053f Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-06-09 15:08:05 +03:00
Kartikaya Gupta ded66f718a Bug 1436409 - Remove the layout.event-regions.enabled pref and bake it in as false everywhere. r=tnikkel
This pref was used to enable the building of nsDisplayLayerEventRegions
items without APZ, so that we could test it in isolation. However, we no
longer need to do so, and these display items are going to be deleted
anyway, so we can remove this pref.

MozReview-Commit-ID: LJVcFafCKyS

--HG--
extra : rebase_source : 76d8eeca8dca4ea88b8226bbe6b829dbc40e03e4
2018-06-08 17:31:27 -04:00
Masayuki Nakano a20855c9f5 Bug 1441821 - NativeKey shouldn't mark eKeyDown and eKeyPress as "skippable in remote process" if message is not caused by physical key press r=m_kato,smaug
Currently, TabChild discards eKeyDown and eKeyPress events which are marked as
"repeated" and were dispatched after the latest eKeyDown event comes into the
process.  However, keyboard layout utils may generate native key events
as "repeated" even if each native key is important to input proper text.

So, TabChild shouldn't decide if coming keyboard event is skippable only with
mIsRepeat.  For solving this issue, this patch adds
mMaybeSkippableInRemoteProcess to WidgetKeyboardEvent and makes
TabChild::SkipRepeatedKeyEvent() check
WidgetKeyboardEvent::CanSkipInRemoteProcess() instead.

On Windows, there are two ways to generate keyboard input messages.  One is
using SendMessage() or PostMessage().  The other is SendInput() API.  In both
ways, utils can make their input as repeated key messages.

The former case must be safe for this issue since such utils need to set 31st
bit of lParam to 1 explicitly.

On the other hand, in the latter case, the utils probably need to append
KEYEVENTF_KEYUP into KEYBDINPUT::dwFlags.  Otherwise, only first call is
treated as non-repeated event.

So, when given message does not came from physical key operation, NativeKey
should set WidgetKeyboardEvent::mMaybeSkippableInRemoteProcess to false
even if WidgetKeyboardEvent::mIsRepeat is true.

MozReview-Commit-ID: 3rinrOjx8Tf

--HG--
extra : rebase_source : 26b6d869260176fc7ef535323b83001bb4b725c2
2018-06-06 23:35:16 +09:00
Kyle Machulis 3de9c518aa Bug 1457689 - Remove NS_ERROR_DOM_BAD_DOCUMENT_DOMAIN; r=bz
After fixing the document.domain exceptions to conform to the html
spec, NS_ERROR_DOM_BAD_DOCUMENT_DOMAIN is no longer used, and can be
removed.

MozReview-Commit-ID: 9CwrUSGy2K3

--HG--
extra : rebase_source : 6c624e407fd714f8c61e1e43d44089c0c1e64558
2018-06-08 15:52:53 -07:00
Kyle Machulis a50b3fa9e5 Bug 1457689 - Fix documain.domain setting exception type; r=bz
Change exception type to comply with HTML spec, which uses security
error instead of bad document domain.

MozReview-Commit-ID: Iefkeskn9bM

--HG--
extra : rebase_source : 282507d687c8fe19a326df95632694bcc6c5dd29
2018-06-07 11:45:09 -07:00
Kyle Machulis 14d4b9546c Bug 819475 - Make document.domain non-nullable; r=bz
Make document.domain non-nullable, to conform to the HTML spec.

MozReview-Commit-ID: B1YuQekBgZD

--HG--
extra : rebase_source : 00999e16549e62c783f06f61c62000ab7677cf1d
2018-06-07 12:29:23 -07:00
Chris Peterson cffa2148f0 Bug 645325 - Part 7: Always check location results in geolocation tests' success callbacks. r=garvank r=jdm
MozReview-Commit-ID: DVQAvxfzJNx

--HG--
extra : rebase_source : d8b902def44d3ae8d7cff9d06a8e1cfc2a9d52db
extra : source : e0b74d168aeb18fb6b7aa20d3d4be053fbeaf97d
2018-03-10 02:11:09 -08:00
Chris Peterson 40dc16dbe2 Bug 645325 - Part 6: Disable geolocation request cache when testing different location providers. r=garvank r=jdm
Disable NetworkGeolocationProvider.js request cache for test cases that change the geo.wifi.uri. The cache does not remember from which location service the cached request came from and we expect different results when we change the provider URL (geo.wifi.uri).

MozReview-Commit-ID: 7SbhBOkek4H

--HG--
extra : rebase_source : 2ce410953eaa76e259472397163c304621449a61
extra : source : 058acdfc4d995120d0d2ed34c60b6151ce670d63
2018-03-10 00:23:07 -08:00
Chris Peterson b147fa0825 Bug 645325 - Part 5: Add stricter type and range checks for JavaScript Coordinates properties. r=garvank r=jdm
MozReview-Commit-ID: 32XkDhYjIyu

--HG--
extra : rebase_source : 76a9fcc50e60d040aeb65eb50aec238e9f7fe87c
extra : source : 57b75116738c3d4d1c499cdb0d28172e558251b4
2018-03-10 01:50:20 -08:00
Chris Peterson 8a19494579 Bug 645325 - Part 4: Handle null listener when xhr callbacks are called after WifiGeoPositionProvider shutdown. r=garvank r=jdm
I hit this error when testing geolocation with Wi-Fi disabled. There is a race where the WifiGeoPositionProvider gets shut down (settting this.listener to null) but the xhr request is still alive (and the xhr callback later hits the null this.listener).

MozReview-Commit-ID: E3jCFM3om5A

--HG--
extra : rebase_source : 7a0409c2eca6629877aeb82b89fce55b5ff67f75
extra : source : 1e793af6b1731e59468d4222543c8dfaf951dc43
2018-03-09 22:20:50 -08:00
Chris Peterson 6fd3242f63 Bug 645325 - Part 3: Remove nsGeoPosition's unused `long long aTimestamp` constructor. r=garvank r=jdm
And change nsGeoPosition to store DOMTimeStamp instead of long long because it is a more descriptive type. DOMTimeStamp is a typedef for uint64_t, so we're not losing any precision using DOMTimeStamp instead of long long.

MozReview-Commit-ID: hjXnw959yC

--HG--
extra : rebase_source : 7061953cc62d116487ca2fa75d89f65cf725b573
extra : source : 014089341e5443fe0b42c98141c846bfa8ca6728
2018-02-25 16:32:16 -08:00
Chris Peterson 201ee6decf Bug 645325 - Part 2: Remove the two-second startup delay for the MLS fallback provider on Windows and macOS. r=garvank r=jdm
The Windows and macOS location providers used to start the MLS provider (with a two-second delay) and then call the operating system's location provider, letting them race. Currently, however, we only start the MLS fallback provider after the system provider returns an error, so the two-second startup delay is just wasted time.

I left the starup delay option in MLSFallback because the Linux gpsd provider still uses it to race MLS with the system's GPS provider.

MozReview-Commit-ID: 3ZFeF1g6PoG

--HG--
extra : rebase_source : ae7032fb86b9015686c160dd990dcb264fff742a
extra : source : 90473706de0fc0af9866b05768b7700de0fd552f
2018-02-28 23:59:03 -08:00
Chris Peterson 9294aea52b Bug 645325 - Part 1: Use NaN to indicate unset optional coordinate values returned from the location providers. r=garvank r=jdm
nsGeoPositionCoords will convert NaNs returned from the location providers to null properties of the JavaScript Coordinates object.

MozReview-Commit-ID: Cmuf2aO0ClD

--HG--
extra : rebase_source : cbccead609ff53a3e5f1bcf7698eba7382220ce5
extra : source : b4ced6e2bab2d17cf642f5850bda5998f635fccb
2018-02-25 23:35:16 -08:00
Boris Zbarsky 4a41216e51 Bug 1466255. Allow interfaces only exposed to chrome-or-XBL to be in chrome-webidl. r=kmag 2018-06-09 01:03:26 -04:00
Boris Zbarsky 8dfa5a596c Bug 1466221. Implement ToJSValue variants for non-refcounted (so owned) DOM objects. r=peterv 2018-06-09 01:03:15 -04:00
Brindusan Cristian 8a7b503816 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-06-09 01:03:12 +03:00
Olli Pettay 5dad9cd69b Bug 1467790 - Inline nsINode::IsEditable, r=masayuki 2018-06-08 15:57:13 -04:00
arthur.iakab edbf2c0099 Merge inbound to mozilla-central a=merge 2018-06-08 12:55:49 +03:00
Henrik Skupin a7ac3da64d Bug 1334981 - Backed out changeset d6ca24ba3673 for regression caused by bug 887718. r=enndeakin+6102
MozReview-Commit-ID: 9hIcRVRseO1

--HG--
extra : rebase_source : e7899b4dc74c20a6204583fbaf371eb69b2d9405
2018-06-07 15:48:48 +02:00
Kartikaya Gupta 710f53760a Bug 1438752 - Summary: Wait for an APZ flush before scrolling to avoid race condition in test. r=rhunt
Differential Revision: https://phabricator.services.mozilla.com/D1585
2018-06-07 21:01:45 +00:00
Ciure Andrei 25ae31a366 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-06-08 00:54:06 +03:00
Ciure Andrei 05605d68c4 Merge inbound to mozilla-central. a=merge 2018-06-08 00:50:18 +03:00
Mats Palmgren 633c43f009 Bug 1467503 - Make it compile with --disable-accessibility again. r=surkov 2018-06-07 18:43:06 +02:00
Xidorn Quan ff13ff5adf Bug 1423017 - Add a telemetry for out-of-reach overflowing on root. r=botond
MozReview-Commit-ID: 2CyZTVBFP59

--HG--
extra : rebase_source : 03dad8df39872eb36306df0767134e8219fcd76e
2018-06-01 15:35:32 +10:00
Andreas Pehrson d49248bb03 Bug 1266345 - Re-enable test on linux64. r=bryce
MozReview-Commit-ID: IJqncmqDeKL

--HG--
extra : rebase_source : 055e1ccaecb0dbe6845194f350f7067a66dd57ba
extra : source : 7bd5c5b0f7104cd989735f3292dfe9150d4be336
2018-06-08 12:29:28 +02:00
Andreas Pehrson 6017499cef Bug 1266345 - Let MediaRecorder ignore ended tracks. r=bryce
MozReview-Commit-ID: 8P1p0uI46BZ

--HG--
extra : rebase_source : 635ac78b2ea46041b77fd80ad5d4a387998cb413
extra : source : 1974769521fc9c1e823e56766e2ac2ba967b28a4
2018-06-08 12:28:55 +02:00
Kartikaya Gupta e98d229159 Bug 1429521 - Re-enable QR mochitests that were failing due to hit-test flakiness. r=botond
MozReview-Commit-ID: qm2bvWO7Xa

--HG--
extra : rebase_source : 16dce9db6a98e3881b15a715d85e4d6f6d4c9429
2018-06-01 07:13:35 -04:00
arthur.iakab 6415c2bbd7 Backed out changeset 83c614479dda (bug 1423017) For braking Android reftests 2018-06-08 13:44:17 +03:00
arthur.iakab 2f6ab95b97 Merge mozilla-central to autoland 2018-06-08 12:57:32 +03:00
Xidorn Quan 51044f283f Bug 1423017 - Add a telemetry for out-of-reach overflowing on root. r=botond
MozReview-Commit-ID: 2CyZTVBFP59

--HG--
extra : rebase_source : 69792750af013f33ca9efd01c1d19013b0b26456
2018-06-01 15:35:32 +10:00
Kris Maglione 7b7264f453 Bug 1464548: Part 3 - Update callers to use defineLazyGlobalGetters. r=mccr8
MozReview-Commit-ID: 9APGewiDDYB

--HG--
extra : rebase_source : 2931dd0eec0e4206414b698a9700fc20d922eb3a
2018-05-25 17:02:29 -07:00
Boris Zbarsky ddfb1afd8e Bug 1186265 - Check the current interface's members. r=bz
MozReview-Commit-ID: JJC82zi33YS

--HG--
extra : rebase_source : 06ccab0bdacd5a4ff669915a1d18c1506c0ec532
2018-05-23 13:56:20 -07:00
Blake Kaplan 1e2f0c17fa Bug 1186265 - Resurrect DOMQuad.bounds (deprecated) and count its uses. r=bz
I've made the returned object from .bounds not live. If that's not OK, I'll
resurrect DOMBounds (removed in a previous patch). This also forces
DOMQuad.toJSON() to only return the points.

MozReview-Commit-ID: 10TY5oJUmTN

--HG--
extra : rebase_source : f965bd0593b512ec57ffc5268eecf3b4fe8e820a
2018-05-23 16:56:22 -07:00
Brendan Dahl 7c6e7fdabc Bug 1450753 - Remove XUL style overlays. r=Nika
Style overlays are no longer used outside of tests.

MozReview-Commit-ID: 798Id5JITAm

--HG--
extra : rebase_source : edfbfc973f865d72bbc019a26519436157476793
2018-06-06 15:15:25 -07:00
Alex Gaynor 442c1c9d02 Bug 1451859 - Part 3: In FUZZER builds, do not crash on malformed IPC messages. r=jld, r=posidron 2018-04-05 15:47:34 -04:00
Alex Gaynor b174206e6f Bug 1451859 - Part 2: Add sanitizer coverage to a handful of places relevant to IPC. r=posidron 2018-04-05 15:48:11 -04:00
Blake Kaplan 2390d89fa5 Bug 1186265 - Partially update DOMPoint, DOMQuad, DOMRect, DOMMatrix. r=bz
Some notes: this does not fully bring us to compliance to the current spec.
Instead, these are the fixes that I needed to make in order to make
css/geometry/interfaces.html pass with the DOMPoint changes in the previous
patches. I don't fully understand why that patch caused the test to fail the
way it did, but it ended up being easier to fix our code than understand why
the harness was falling over.

The DOMQuad::QuadBounds class was the source of some confusion for me. Now
that DOMRectReadOnly is a concrete class with members, I wanted to avoid
wasting them. However, the spec is unclear as to whether a DOMQuad's bound's
should be live -- that is because DOMQuad exposes DOMPoint, we can set its
points after retrieving a QuadBounds object. Our current code is live, setting
the points changes the QuadBounds. Chromium's current behavior is to never
update the QuadBounds object. I've left our behavior untouched in this patch
(and waste 4 doubles per QuadBounds object), but I am intending to file a bug
to understand what the intent of the spec is. I wonder if the author intended
the points to be DOMPointReadOnly instead. If so, we could simplify the
DOMRectReadOnly code and get rid of the virtual getters, which would be nice.

I also wasn't thrilled to put the DOMMatrix setters on the DOMMatrixReadOnly
class, but for brevity and simplicity of implementation, I've made them
public. I briefly considered making the setters protected on the ReadOnly
version of the class, but I'm not convinced that having to explicitly make
them public on the derived class is worth the extra copies of the names.

MozReview-Commit-ID: CjdW4Nbnc6A

--HG--
extra : rebase_source : 44489693afebff571a415b487e29fa6153288421
2018-03-29 16:19:31 -07:00
Cosmin Sabou 0f45148664 Backed out changeset 531593bacc4e (bug 1448040) for Android build bustages on HangAnnotations.h. CLOSED TREE
--HG--
extra : rebase_source : ea3618023c548a8ca6ca14749633c194606af52f
2018-06-07 19:22:31 +03:00
Alex Gaynor de04abe10c Bug 1451859 - Part 1: Implement a fuzzer for IPC handlers using libFuzzer. r=jld, r=posidron 2018-03-23 16:18:42 -04:00
Jan de Mooij f7fb3be6ec Bug 1466121 part 1 - Rename JSCompartment to JS::Compartment. r=luke
--HG--
extra : rebase_source : cd7140ecda54f0caa02a96f562167b3c9a107450
2018-06-07 16:44:40 +02:00
Byron Campen [:bwc] 0afe738d22 Bug 1464079: Bring ICE connection state change callback up to spec. r=jib
--HG--
extra : rebase_source : e287ad23cbf3766731b14e93ad18e295654564ee
2018-05-31 11:30:19 -05:00
Andreas Pehrson c9fedaf3f7 Bug 1282262 - Disable test on android. r=padenot
MozReview-Commit-ID: 5tq1twcl42b

--HG--
extra : rebase_source : 04328c487a297dac1cb1baeaf6a02744b2f065e5
extra : histedit_source : c83a8bb07ebcdb8cddca97eb9e5cac9960fd1b4c
2018-05-30 15:25:06 +02:00
Christoph Kerschbaumer 2c105d2ff5 Bug 1459204: Have about:privatebrowsing rely on RemotePageManager instead of AboutCapabilities. r=mossop,baku 2018-06-07 11:32:27 +02:00
Jan de Mooij a0f210fb97 Bug 1466458 part 1 - Remove JSContext::enterRealmDepth_. r=luke 2018-06-07 12:17:08 +02:00
Coroiu Cristina 92d50008c6 Merge mozilla-central to inbound a=merge on a CLOSED TREE 2018-06-07 13:00:49 +03:00
Dan Glastonbury 367e64f0d4 Bug 1465307 - P4: Enable disabled dom/smil lighting_color tests. r=xidorn
Enable tests disabled in Bug 1457353.

MozReview-Commit-ID: Ctx9bgt9tlK

--HG--
extra : rebase_source : c319f91f4db7c4f0f5146c00760b015802be9e32
2018-06-05 14:36:20 +10:00
Tokio Kajitsuka e1e329ad54 Bug 1462465 - Cache AccessibleNode in Node. r=surkov,smaug
Cache AccessibleNode and make it able to operate the same instance by nsINode::GetAccessibleNode

--HG--
extra : rebase_source : 063eec8658af020f5408260d7d581ee76a04bd37
2018-05-26 22:47:48 +09:00
Emilio Cobos Álvarez 0fbd75e65f Bug 1466963: Provide a before-mutation closure to C++. r=xidorn,smaug
MozReview-Commit-ID: H2jwIeZoiBZ
2018-06-07 11:22:31 +02:00