Commit Graph

659288 Commits

Author SHA1 Message Date
Andrei Lazar
5f0926e20d Bug 1561844 Remove OpenH264 plugin from about:addons r=VladBaicu
Removed OpenH264 plugin from addons list for users that doesn't have it installed.

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

--HG--
extra : moz-landing-system : lando
2019-07-08 12:15:44 +00:00
Nicolas Chevobbe
875a819a93 Bug 1563684 - Fix blank console on GMail. r=yulia.
The console fails to connect to the server because
the getCachedMessages function throws on GMail.
This is because we try to access a property on a
cross-origin object, window.windowUtils, in
getInnerWindowId.
Wrapping the access to the property fixes the issue.
A test is added to make sure we don't regress.

// TODO: The test isn't failing without the fix,
so it should be re-written.

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

--HG--
extra : moz-landing-system : lando
2019-07-08 12:34:20 +00:00
Mihai Alexandru Michis
6484e16fce Bug 1532186 - Disable SessionLifecycleTest.readFromParcel_throwOnAlreadyOpen for frequent failures r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D37236

--HG--
extra : moz-landing-system : lando
2019-07-08 12:14:41 +00:00
Andrei Oprea
28fdbd6d6d Bug 1548784 - Bookmark Panel message requires variable height r=k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D36892

--HG--
extra : moz-landing-system : lando
2019-07-08 10:35:17 +00:00
Makoto Kato
ecd47d34f4 Bug 1562389 - Better detect non-clang-cl native windows clang. r=glandium
When building Gecko/Android/aarch64 on Windows, `--target` parameter may not be incorrect value. Although `check_compiler`'s `info` is target compiler, clang on Windows is always detected as `clang-cl`, not `clang`.

```
c:/Users/mkato/.mozbuild/clang/bin/clang.exe -E  -dM - < /dev/null
...
#define _MSC_VER 1916
```

So even if using clang on Windows, not clang-cl, we should detect as 'clang' correctly

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

--HG--
extra : moz-landing-system : lando
2019-07-08 10:35:40 +00:00
Makoto Kato
b26c7976c7 Bug 1562389 - Set correct triple for rustc when host and target are different compiler type. r=froydnj
When host and target are different compiler type, triple for rustc may be incorrect. If target is clang, host is always clang, not using host compiler type.

Example, when host is clang-cl for windows, and target is clang for Android, host's triple for ructc sets `windows-gnu`, not `windows-msvc`.

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

--HG--
extra : moz-landing-system : lando
2019-07-08 10:35:31 +00:00
Jan de Mooij
ff4b377df4 Bug 1562129 part 3 - Add BaselineInterpreter flags to fuzz-flags.txt. r=tcampbell
Depends on D36307

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

--HG--
extra : moz-landing-system : lando
2019-07-05 16:45:05 +00:00
Jan de Mooij
ae0157f590 Bug 1562129 part 2 - Add --blinterp-eager to jit-test 'all' configuration. r=sfink
To not make jstests even slower, this adds --jitflags=jstests and uses it for
jstests in automation. For jstests we can use fewer jit configurations than
for jit-tests.

This also removes the bigint and bigintdebug autospider variants. BigInt is now
enabled by default so we no longer need the configure flag etc.

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

--HG--
extra : moz-landing-system : lando
2019-07-08 11:22:04 +00:00
Andreea Pavel
658492f45c Bug 1558966 - disabled test on win for frequent failures r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D37173

--HG--
extra : moz-landing-system : lando
2019-07-08 08:49:10 +00:00
atouchet
9d6f235f64 Bug 1564085 - Update Travis CI URLs. r=emilio
This is cherry-picked from https://github.com/servo/servo/pull/23611.
2019-07-08 13:10:01 +02:00
Emilio Cobos Álvarez
3f3d4a99c4 Bug 1564085 - Appease tidy. 2019-07-08 13:09:50 +02:00
Emilio Cobos Álvarez
9218bd63e4 Bug 1564085 - Rustfmt recent changes. 2019-07-08 13:09:06 +02:00
Emilio Cobos Álvarez
cda54a6274 Bug 1564085 - simplify some recently-added code. 2019-07-08 13:08:59 +02:00
Kagami Sascha Rosylight
b33621ce08 Bug 1564085 - Add a f64 version of to_transform_3d_matrix. r=emilio
This is cherry-picked from https://github.com/servo/servo/pull/23665.
2019-07-08 13:08:38 +02:00
Emilio Cobos Álvarez
d1a9b44ea6 Bug 1560188 - Fix and improve display list memory reporting. r=mattwoodrow,njn
I missed in bug 1487216 that the pres arena memory reporting assumes that the
entry indices are frame class ids, which means that we're reporting some display
list arena entries as frames, which is obviously wrong.

Cleanup a bit nsPresArena to remove the custom id concept, and report also
individual display item type memory usage.

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

--HG--
extra : moz-landing-system : lando
2019-07-02 02:46:09 +00:00
Bastien Orivel
b5e0d251ee Bug 1562043 - Fix a debug statement when processing webdriver requests. r=ato
Since we moved to warp, this debug statement was printing the
unprocessed path (i.e `/session/{sessionId}`) because the closure didn't
know about the real path that was called (it only knew about the route
that was triggered and the parameters that were passed).

I added a warp filter to get the unprocessed full path to be able to
make logging useful again. This also fixes the body which had an extra
Result around it when it was debugged.

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

--HG--
extra : moz-landing-system : lando
2019-07-08 09:54:25 +00:00
Nicolas Chevobbe
519e918209 Bug 1557305 - Modify autocomplete DAMP test. r=ochameau.
We now prepend a very large string before the value we
want to autocomplete so we can check it doesn't have too
much impact on the overall autocomplete function.

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

--HG--
extra : moz-landing-system : lando
2019-07-08 09:25:10 +00:00
Nicolas Chevobbe
c0c38fd4a3 Bug 1557305 - Speed up JsPropertyProvider analyzeInput function. r=ochameau.
We were using Array.from to get an array of all the characters, and
be able to slice parts of the strings to run some checks.
This had the disadvantage of being quite slow on very large strings,
at a point where we introduced a bail out mechanism into the function
to not block the content page.
This patch switches to `String.prototype[Symbol.iterator]` to loop
over all the character, and removes lots of array and string manipulations.
On the same, super-large, string, the function cost went from 6700ms to
less than 200ms.

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

--HG--
extra : moz-landing-system : lando
2019-07-08 06:24:38 +00:00
Emilio Cobos Álvarez
d28fef937a Bug 1563892 - Update cssparser to fix correctness issue with serialization. r=heycam
This issue was also exposed via CSS variables, and I've added a test for that
since it's how it was originally found in bug 1498188.

See https://github.com/w3c/csswg-drafts/issues/4088 and https://github.com/servo/rust-cssparser/pull/251

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

--HG--
extra : moz-landing-system : lando
2019-07-08 04:51:08 +00:00
Jan de Mooij
70b2a0cabd Bug 1562602 part 5 - Add IsBaselineInterpreterEnabled() and use it instead of checking the JitOption directly. r=tcampbell
This is consistent with IsBaselineEnabled/IsIonEnabled and lets us handle the
JS_CODEGEN_NONE and no-floating-point-support cases the same way.

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

--HG--
extra : moz-landing-system : lando
2019-07-08 08:20:04 +00:00
Jan de Mooij
1522eff8b9 Bug 1562602 part 4 - Move jitSupportsFloatingPoint and jitSupportsUnalignedAccesses flags from JSRuntime to JitOptions. r=tcampbell
This is process-wide state and storing it in JSContext/JSRuntime requires
callers to pass a context/runtime for no good reason. This simplifies the
next patch.

Storing this in JitOptions seemed nicer than adding new globals for this and
maybe in the future we will have a testing function/flag to toggle these
flags.

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

--HG--
extra : moz-landing-system : lando
2019-07-08 08:19:45 +00:00
Jan de Mooij
fbd123672c Bug 1562602 part 3 - Remove unused JSRuntime::jitSupportsSimd field and JSContext accessor for it. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D36470

--HG--
extra : moz-landing-system : lando
2019-07-08 08:19:31 +00:00
Jan de Mooij
7922e5cf35 Bug 1562602 part 2 - Don't Baseline interpret scripts with a huge number of slots. r=tcampbell
This avoids overrecursion exceptions on testManyVars.js on Windows/Linux
(the C++ interpreter has heap-allocated stack frames so it can handle this
better).

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

--HG--
extra : moz-landing-system : lando
2019-07-08 08:19:17 +00:00
Jan de Mooij
c6d0430074 Bug 1562602 part 1 - Fix JSJitProfilingFrameIterator::fixBaselineReturnAddress for interpreter frames. r=djvj
It needs to set resumePCinCurrentFrame_ to an address in the interpreter JitCode
instead of nullptr (or else the profiler's JitCodeMap lookup will assert).

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

--HG--
extra : moz-landing-system : lando
2019-07-08 08:18:58 +00:00
Jan de Mooij
808f2e0384 Bug 1562129 part 1 - Fix GeneratorThrowOrReturn to initialize interpreter fields if necessary. r=tcampbell
The last part of my local interpreter patch stack that's necessary to pass jit-tests.

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

--HG--
extra : moz-landing-system : lando
2019-07-08 08:18:44 +00:00
Jan de Mooij
8d5c5fc6da Bug 1541404 part 32 - Add shell flags for the baseline interpreter. r=tcampbell
This also has some minor changes to allow enabling the Baseline Interpreter without
the Baseline JIT.

After this is enabled by default we want to make the Interpreter a hard dependency
for Baseline (similar to how Ion requires Baseline to be enabled) and then we can
simplify some code, but of course we can't do that yet.

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

--HG--
extra : moz-landing-system : lando
2019-07-08 08:18:30 +00:00
Sebastian Hengst
11acdc3897 Bug 1554707 - Refactor test folder structure: adjust code for js Prettier. a=eslint-fix CLOSED TREE
--HG--
extra : amend_source : 534bfbe20df1ba8875778afc8bd4aa99f9f51fa5
2019-07-08 12:06:32 +02:00
Sebastian Hengst
1179ccba33 Bug 1562642 - Part 2 - Add missing MPL2 headers: Remove undesired ~. a=bustage-fix 2019-07-08 12:02:35 +02:00
Andreas Pehrson
90ffbb1560 Bug 1561319 - Check facingMode constraint in MediaEngineDefaultVideo and don't match empty string by default. r=jib
This does two things:
It makes MediaEngineDefaultVideo::GetBestFitnessDistance include a facingMode
check.
It also makes FitnessDistance() for StringRanges take a Maybe<nsString>, since
the device might not have a value for all StringRange constraints, as is the
case for facingMode. This fixes this issue for a MediaEngineRemoteVideoSource
with no facingMode, since such a device would match a facingMode of the empty
string prior to this patch.

To be fully spec compliant, the Maybe should be a set instead, since a device
may support multiple values for the facingMode capability. We don't support
more than one value however, so this change can be made later as needed.

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

--HG--
extra : moz-landing-system : lando
2019-07-05 18:46:32 +00:00
Sylvestre Ledru
fc2eb5393c Bug 1562642 - Part 2 - Add missing MPL2 headers r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D37146

--HG--
extra : moz-landing-system : lando
2019-07-08 09:27:47 +00:00
Ola Gasidlo
247d4a898e Bug 1554707 - Refactor test folder structure, r=jdescottes,ladybenko
Refactor test folder structure to align with remote debugging

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

--HG--
rename : devtools/client/application/test/browser.ini => devtools/client/application/test/browser/browser.ini
rename : devtools/client/application/test/browser_application_panel_debug-service-worker.js => devtools/client/application/test/browser/browser_application_panel_debug-service-worker.js
rename : devtools/client/application/test/browser_application_panel_list-domain-workers.js => devtools/client/application/test/browser/browser_application_panel_list-domain-workers.js
rename : devtools/client/application/test/browser_application_panel_list-several-workers.js => devtools/client/application/test/browser/browser_application_panel_list-several-workers.js
rename : devtools/client/application/test/browser_application_panel_list-single-worker.js => devtools/client/application/test/browser/browser_application_panel_list-single-worker.js
rename : devtools/client/application/test/browser_application_panel_list-unicode.js => devtools/client/application/test/browser/browser_application_panel_list-unicode.js
rename : devtools/client/application/test/browser_application_panel_list-workers-empty.js => devtools/client/application/test/browser/browser_application_panel_list-workers-empty.js
rename : devtools/client/application/test/browser_application_panel_open-links.js => devtools/client/application/test/browser/browser_application_panel_open-links.js
rename : devtools/client/application/test/browser_application_panel_start-service-worker.js => devtools/client/application/test/browser/browser_application_panel_start-service-worker.js
rename : devtools/client/application/test/browser_application_panel_unregister-worker.js => devtools/client/application/test/browser/browser_application_panel_unregister-worker.js
rename : devtools/client/application/test/head.js => devtools/client/application/test/browser/head.js
rename : devtools/client/application/test/service-workers/debug-sw.js => devtools/client/application/test/browser/resources/service-workers/debug-sw.js
rename : devtools/client/application/test/service-workers/debug.html => devtools/client/application/test/browser/resources/service-workers/debug.html
rename : devtools/client/application/test/service-workers/dynamic-registration.html => devtools/client/application/test/browser/resources/service-workers/dynamic-registration.html
rename : devtools/client/application/test/service-workers/empty-sw.js => devtools/client/application/test/browser/resources/service-workers/empty-sw.js
rename : devtools/client/application/test/service-workers/empty.html => devtools/client/application/test/browser/resources/service-workers/empty.html
rename : devtools/client/application/test/service-workers/scope-page.html => devtools/client/application/test/browser/resources/service-workers/scope-page.html
rename : devtools/client/application/test/service-workers/simple-unicode.html => devtools/client/application/test/browser/resources/service-workers/simple-unicode.html
rename : devtools/client/application/test/service-workers/simple.html => devtools/client/application/test/browser/resources/service-workers/simple.html
rename : devtools/client/application/test/.eslintrc.js => devtools/client/application/test/components/.eslintrc.js
rename : devtools/client/application/test/babel.config.js => devtools/client/application/test/components/babel.config.js
rename : devtools/client/application/test/fixtures/Chrome.js => devtools/client/application/test/components/fixtures/Chrome.js
rename : devtools/client/application/test/fixtures/PluralForm.js => devtools/client/application/test/components/fixtures/PluralForm.js
rename : devtools/client/application/test/fixtures/Services.js => devtools/client/application/test/components/fixtures/Services.js
rename : devtools/client/application/test/fixtures/l10n.js => devtools/client/application/test/components/fixtures/l10n.js
rename : devtools/client/application/test/fixtures/stub.js => devtools/client/application/test/components/fixtures/stub.js
rename : devtools/client/application/test/jest.config.js => devtools/client/application/test/components/jest.config.js
rename : devtools/client/application/test/package.json => devtools/client/application/test/components/package.json
rename : devtools/client/application/test/setup.js => devtools/client/application/test/components/setup.js
rename : devtools/client/application/test/yarn.lock => devtools/client/application/test/components/yarn.lock
extra : moz-landing-system : lando
2019-07-08 09:20:28 +00:00
Andreas Pehrson
dc0eb05ef0 Bug 1560207 - Reset all settings on every settings update, to avoid double-constructing. r=jib
Depends on D36192

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

--HG--
extra : moz-landing-system : lando
2019-07-05 22:13:11 +00:00
Andreas Pehrson
995ee35634 Bug 1560207 - Give Refcountable assignment operators. r=jib
Depends on D36191

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

--HG--
extra : moz-landing-system : lando
2019-07-05 22:11:22 +00:00
Andreas Pehrson
b5260f58d6 Bug 1560207 - Add crashtest. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D36191

--HG--
extra : moz-landing-system : lando
2019-07-05 22:07:17 +00:00
Andrea Marchesini
1dd6a5d98c Bug 1514296 - FeaturePolicy - WPT fixed, r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D35803

--HG--
extra : moz-landing-system : lando
2019-07-08 08:47:30 +00:00
Andrea Marchesini
f9e570ba21 Bug 1514474 - Implement FeaturePolicy.features(), r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D35802

--HG--
extra : moz-landing-system : lando
2019-07-08 02:03:18 +00:00
Andrea Marchesini
e87202df68 Bug 1514296 - Rename Document.policy to Document.featurePolicy, r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D35801

--HG--
extra : moz-landing-system : lando
2019-07-08 00:10:56 +00:00
Christoph Kerschbaumer
69901eb74f Bug 1497190: Apply Meta CSP to about:cache-entry.
Differential Revision: https://phabricator.services.mozilla.com/D37212

--HG--
extra : moz-landing-system : lando
2019-07-08 07:58:35 +00:00
Jon Coppeard
ccc5d43ad4 Bug 1564072 - Track memory used by some ctypes data structures r=sfink
The patch switches some ctypes data structures to ZoneAllocPolicy so that their memory use is tracked against the zone. The creation of heapHash in StructType::DefineInternal relies on the ZoneAllocPolicy being movable after having memory accounted to it.

Differential Revision: https://phabricator.services.mozilla.com/D36178
2019-06-27 11:56:37 +01:00
Jon Coppeard
743c7bbddf Bug 1564072 - Allow ZoneAllocPolicy to be moved r=sfink
Patch to allow ZoneAllocPolicy insstance to be moved after having memory accounted to it. This is useful in the situation where a data structure is populated before being attached to a GC thing by moving it. The code will currently assert (in unregisterPolicy()) if a ZoneAllocPolicy is copied after having memory accounted to it. This could be allowed but it seems better to force users to move in this situation.

Differential Revision: https://phabricator.services.mozilla.com/D36177
2019-06-27 11:56:37 +01:00
Jon Coppeard
fd403b01fc Bug 1564072 - Track malloc memory used by debugger objects r=jimb
Add memory tracking for various debugger objects.  Since the Handler class forms an interface I added a virtual allocSize() method to allow subclasses to supply their size.  This is possibly overkill.

Differential Revision: https://phabricator.services.mozilla.com/D35797
2019-06-25 13:11:04 +01:00
Noemi Erli
ad06a86a88 Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-07-08 12:53:36 +03:00
Ciure Andrei
295df214d0 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2019-07-08 00:19:14 +03:00
Dorel Luca
e85de6701b Merge mozilla-central to mozilla-inbound 2019-07-07 13:37:44 +03:00
Gurzau Raul
93233f439a Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-07-07 01:44:47 +03:00
Gurzau Raul
5f41be0510 Backed out changeset 9ad9e16d94d9 (bug 1409773) for crashtest failures at 640272.html 2019-07-06 23:36:12 +03:00
Andrew Osmond
d20b5cb84b Bug 1409773 - Use WebRender instead of fallback for border raster images. r=jrmuizel
Before this patch, we would use fallback for all border images. Now for
all but vector images we will use the WebRender border images
primitives. Vector images are an exception because the fallback is
clever in that it upscales the vector image and clips to only draw the
region it requires. This avoids artifacting but to do something similar
for WebRender as it is currently defined, we would increase our CPU and
memory footprint as we would need to produce the entire vector image
upscaled, not just the parts we need. In the future we should change
WebRender to accept different image resources for each of the segments.

Differential Revision: https://phabricator.services.mozilla.com/D37093
2019-07-06 14:20:48 -04:00
Daniel Varga
1ea89eaac8 Merge mozilla-central to mozilla-inbound 2019-07-06 12:36:56 +03:00
longsonr
dcdb97d5bd Bug 1561721 - remove color-rendering tests since the property has been dropped from SVG 2 r=heycam 2019-07-06 09:14:02 +01:00
Mihai Alexandru Michis
c2dd1916fb Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2019-07-06 06:45:07 +03:00