Commit Graph

615138 Commits

Author SHA1 Message Date
Alexandre Poirot
196d295b46 Bug 1485676 - Connect to local server from TargetFactory.forTab and make TabTarget always remote-like. r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D4078

--HG--
extra : moz-landing-system : lando
2018-09-21 08:07:48 +00:00
Alexandre Poirot
71f3e5e9f8 Bug 1485676 - Adapt gDevTools API to new async forTab and also adapt its callsites. r=yulia
When switching to async, it is important to catch exception or register a rejection handler
so that errors keep being logged.
So in this patch I'm catching exception in a couple of important codepath.

Depends On D4541

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

--HG--
extra : moz-landing-system : lando
2018-09-21 08:07:25 +00:00
Alexandre Poirot
71aa1002dd Bug 1485676 - Prevent exceptions in the emulation actor when trying to use it while it is already destroyed. r=yulia
Depends On D4540

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

--HG--
extra : moz-landing-system : lando
2018-09-21 08:07:12 +00:00
Alexandre Poirot
acb1662577 Bug 1485676 - Tweak RDM manage to support new async forTab. r=yulia
Fetching any target is now asynchronous. But RDM setup/destroy codepath is very fragile
and introduce many low level exception when trying to restore the original browser element
if any timing changes.
So this patch prevents trying to fetch the target object if a toolbox isn't already opened.
The target object is being used only for Telemetry purpose for now.

Depends On D4538

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

--HG--
extra : moz-landing-system : lando
2018-09-21 08:11:48 +00:00
Alexandre Poirot
2ec27d0a50 Bug 1485676 - Adapt gDevTools.createTargetForTab to new TabTarget class. r=yulia
Depends On D4536

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

--HG--
extra : moz-landing-system : lando
2018-09-21 08:11:53 +00:00
Alexandre Poirot
55c356daea Bug 1485676 - Convert TargetFactory.forTab call to forRemoteTab in debugger mochitest. r=yulia
We are not passing a tab here. It only works by chance!

Depends On D4535

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

--HG--
extra : moz-landing-system : lando
2018-09-21 08:06:34 +00:00
Alexandre Poirot
3d286eae18 Bug 1485676 - Refactor gDevTools.getTargetForTab callsites to assume getTargetForTab is async. r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D4535

--HG--
extra : moz-landing-system : lando
2018-09-21 08:06:16 +00:00
Andi-Bogdan Postelnicu
8218d8a740 Bug 1492770 - Activate google-* checkers that make sense to our code. r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D6391

--HG--
extra : moz-landing-system : lando
2018-09-20 15:29:32 +00:00
arthur.iakab
f47edab318 Backed out changeset 45f7b6097f9b (bug 1491609)for browser chrome failures on static/browser_parsable_css.js
--HG--
rename : toolkit/themes/shared/icons/check.svg => browser/themes/shared/icons/check.svg
rename : toolkit/themes/shared/icons/check-partial.svg => toolkit/themes/shared/in-content/check-partial.svg
extra : rebase_source : 2eed09bef57a3b2a28dd4d6a738e2e9c14781125
2018-09-21 10:15:46 +03:00
Jan de Mooij
4a02cf562c Bug 1491342 - Ignore document.domain in ShouldWaiveXray. r=bholley
We want to get rid of JS_GetCompartmentPrincipals. The origin stored in CompartmentPrivate does not account for document.domain changes because that's a per-realm thing.

Fortunately we should not have waivers in any cases that involve document.domain.

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

--HG--
extra : moz-landing-system : lando
2018-09-21 07:13:15 +00:00
Tim Nguyen
53a8a142a5 Bug 1491609 - Update common.inc.css checkbox and radio styling. r=jaws,k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D5983

--HG--
rename : toolkit/themes/shared/in-content/check-partial.svg => toolkit/themes/shared/icons/check-partial.svg
rename : browser/themes/shared/icons/check.svg => toolkit/themes/shared/icons/check.svg
extra : moz-landing-system : lando
2018-09-20 21:34:14 +00:00
Gurzau Raul
5777753954 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-09-21 07:15:29 +03:00
Gurzau Raul
b1522a7bf0 Merge inbound to mozilla-central. a=merge 2018-09-21 07:13:51 +03:00
Jeff Muizelaar
b7ef76c888 Bug 1480160. Add crash test for masked 3d transforms r=mstange
In the grouper code we don't currently support active masks so
this makes sure that we handle 3d transforms that are inactive.

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

--HG--
extra : moz-landing-system : lando
2018-09-21 03:41:43 +00:00
Nick Thomas
296ae7df09 Bug 1493056 - check for mar existence before chmoding it, and remove deprecated action, r=aki
Differential Revision: https://phabricator.services.mozilla.com/D6460

--HG--
extra : moz-landing-system : lando
2018-09-21 03:59:45 +00:00
Nick Thomas
64b1b8b4a0 Bug 1493056 - fetch-content tries to use https for private urls with the proxy, should use http, r=tomprince
Differential Revision: https://phabricator.services.mozilla.com/D6454

--HG--
extra : moz-landing-system : lando
2018-09-21 03:14:27 +00:00
Mike Hommey
42c96ee774 Bug 1492037 - Build clang with LLVM as a shared library. r=froydnj
Doing so changes the size of the compressed toolchain archive from ~280M
to ~120M, and the decompressed size from ~1500M to ~675M. This will
reduce the overhead of decompression during builds.

As we ship llvm-symbolizer as part of ASan builds, we do need it to
still statically link against LLVM, which we do with a small patch.

With LLVM as a shared library, libLTO, which is used by cctools-port for
the linker, is dynamically linked to LLVM, and the cctools-port
configure script fails to link against libLTO. So we add a -rpath-link
to make it find the LLVM library. This happens to force a rebuild of
cctools-port, but for future cases where we might need a rebuild because
of some clang changes, we add a comment to ease the process, and avoid
a newer cctools-port taking the cache spot of an older one.

Ideally, mac cctools-port would need something similar, but it needs a
mac libLTO.dylib, which is not there anyways (and the mac cctools-port
thus already didn't support LTO).

Also, with LLVM built as a shared library, all its symbols are exported
with a LLVM_x.y version. Combined with -static-libstdc++ that is used
during the clang build, this causes problems (see
https://bugzilla.mozilla.org/show_bug.cgi?id=1492037#c7). But it turns
out things have evolved since -static-libstdc++ has been added to the
clang build script, and things work without now, so remove it (as well
as -static-libgcc).

Differential Revision: https://phabricator.services.mozilla.com/D6117
2018-09-21 10:41:36 +09:00
Gurzau Raul
07d30b811f Backed out changeset dc225279994a (bug 1473736) for web platform leaks 2018-09-21 04:30:10 +03:00
Andrew Osmond
c5be5d2b08 Bug 1492925 - Ensure we release the shared surfaces when a WebRender pipeline is removed. r=sotaro 2018-09-20 21:27:50 -04:00
Matt Woodrow
a03f5b443d Bug 1492250 - Create a WebRender stacking context for nsDisplayStickyPosition to ensure that all descendants get the same positioning. r=mstange
MozReview-Commit-ID: 5JZo0z3LC7t

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

--HG--
extra : moz-landing-system : lando
2018-09-21 00:53:19 +00:00
Olli Pettay
697d41350d Bug 1490406, radio groups should work in shadow DOM, r=ehsan
--HG--
extra : rebase_source : 952ffd47acea3d99d2209e7f05039767b73faa0d
2018-09-21 03:39:47 +03:00
Gurzau Raul
2a3847037c Backed out changeset 471ccb1a377e (bug 1492250) for failing at /reftests/async-scrolling/reftest.list line 36 on a CLOSED TREE 2018-09-21 03:31:24 +03:00
Nicolas Ouellet-Payeur
b5b19652b2 Bug 462674 - URLBar: Autocomplete "about:" URLs r=mak
Pages that are whitelisted for displaying on about:about can be
autocompleted in the URL bar.

MozReview-Commit-ID: BYhWUImyiJH

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

--HG--
extra : moz-landing-system : lando
2018-09-21 00:31:02 +00:00
Iain Ireland
617554ae49 Bug 1491350: Clear pending OOM exceptions before returning from hasNativeProperty / getNativePropertyByValue r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D6394

--HG--
extra : moz-landing-system : lando
2018-09-21 01:51:11 +00:00
Nick Thomas
63042fd7e5 Bug 1493028 - update branch priorities for esr60, r=aki
Differential Revision: https://phabricator.services.mozilla.com/D6450

--HG--
extra : moz-landing-system : lando
2018-09-21 01:04:49 +00:00
Andrew Osmond
cee95ec8de Bug 1456558 - Part 3. Implement factor of 2 scaling support for SVGs in VectorImage. r=tnikkel
If FLAG_HIGH_QUALITY_SCALING is used, we should use
SurfaceCache::LookupBestMatch just like how it is done in RasterImage.
This may provide an alternative size at which we should rasterize the
SVG instead of the requested size. Since SurfaceCache imposes a maximum
size for which it will permit rasterized SVGs, we should also bypass the
cache entirely if we are well above that and simply draw directly to the
draw target in such cases.

With WebRender, it is somewhat more complicated. We will now return
NOT_SUPPORTED if the size is too big, and this should trigger fallback
to blob images. This should only produce drawing commands for the
relevant region and save us the high cost of rasterized a very large
surface on the main thread, which at the same time, looking as crisp as
a user would expect.
2018-09-20 20:22:06 -04:00
Andrew Osmond
5f4c3fc4b2 Bug 1456558 - Part 2. Implement factor of 2 scaling support for SVGs in the surface cache. r=tnikkel
There is one main difference between raster images and vector images
with respect to factor of 2 scaling. Vector images may be scaled
infinitely and so we need to extend factor of 2 scaling to permit
growing instead of just shrinking. Also, we don't want to scale
infinitely, so we should configure a maximum size limit. This size limit
will apply even outside of factor of 2 scaling, and so the caller
(VectorImage) will need to be careful to take this into account.
2018-09-20 20:22:03 -04:00
Andrew Osmond
70ad830c48 Bug 1456558 - Part 1. Move the allowed raster size calculation from imgFrame to SurfaceCache. r=tnikkel 2018-09-20 20:22:00 -04:00
Dana Keeler
984d5aecee bug 1492424 - check if the TLS handshake failed in nsSecureBrowserUIImpl r=Gijs
The site identity security indicator machinery treats connections where the TLS
handshake failed as insecure (also referred to as "unknown identity"). Before
bug 1468222, such cases were easily detectable as the SSLStatus field of the
relevant nsITransportSecurityInfo would be null. When we merged nsISSLStatus
into nsITransportSecurityInfo, we didn't take this differentiation into account.
This patch brings back the prior behavior by checking if the securityInfo's
securityState indicates that the handshake failed (i.e. it is
STATE_IS_INSECURE).

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

--HG--
extra : moz-landing-system : lando
2018-09-21 00:17:47 +00:00
Olli Pettay
b05284f24f Bug 1492395 - Make event markers in profiler timeline per event, not per event listener, r=mstange
--HG--
extra : rebase_source : 53b205eabc2f318cdaa91e91bd1bad0c27d8a5dd
2018-09-21 02:03:04 +03:00
Mike Hommey
b12b62d352 Backout changeset dba2140cb366 (bug 1492037) to give time to toolchains to build without blocking other landings. 2018-09-21 08:18:49 +09:00
Mike Hommey
000f8d6970 Bug 1492037 - Build clang with LLVM as a shared library. r=froydnj
Doing so changes the size of the compressed toolchain archive from ~280M
to ~120M, and the decompressed size from ~1500M to ~675M. This will
reduce the overhead of decompression during builds.

As we ship llvm-symbolizer as part of ASan builds, we do need it to
still statically link against LLVM, which we do with a small patch.

With LLVM as a shared library, libLTO, which is used by cctools-port for
the linker, is dynamically linked to LLVM, and the cctools-port
configure script fails to link against libLTO. So we add a -rpath-link
to make it find the LLVM library. This happens to force a rebuild of
cctools-port, but for future cases where we might need a rebuild because
of some clang changes, we add a comment to ease the process, and avoid
a newer cctools-port taking the cache spot of an older one.

Ideally, mac cctools-port would need something similar, but it needs a
mac libLTO.dylib, which is not there anyways (and the mac cctools-port
thus already didn't support LTO).

Also, with LLVM built as a shared library, all its symbols are exported
with a LLVM_x.y version. Combined with -static-libstdc++ that is used
during the clang build, this causes problems (see
https://bugzilla.mozilla.org/show_bug.cgi?id=1492037#c7). But it turns
out things have evolved since -static-libstdc++ has been added to the
clang build script, and things work without now, so remove it (as well
as -static-libgcc).

Differential Revision: https://phabricator.services.mozilla.com/D6117
2018-09-21 08:18:47 +09:00
Andreea Pavel
3805f6a285 Backed out 3 changesets (bug 1456558) for crashtest assertion failures on a CLOSED TREE
Backed out changeset 70d8f11cf6e8 (bug 1456558)
Backed out changeset af9fc3daf97c (bug 1456558)
Backed out changeset f209a9d848f4 (bug 1456558)
2018-09-21 02:13:41 +03:00
Andrew Osmond
73e08d1bf5 Bug 1456558 - Part 3. Implement factor of 2 scaling support for SVGs in VectorImage. r=tnikkel
If FLAG_HIGH_QUALITY_SCALING is used, we should use
SurfaceCache::LookupBestMatch just like how it is done in RasterImage.
This may provide an alternative size at which we should rasterize the
SVG instead of the requested size. Since SurfaceCache imposes a maximum
size for which it will permit rasterized SVGs, we should also bypass the
cache entirely if we are well above that and simply draw directly to the
draw target in such cases.

With WebRender, it is somewhat more complicated. We will now return
NOT_SUPPORTED if the size is too big, and this should trigger fallback
to blob images. This should only produce drawing commands for the
relevant region and save us the high cost of rasterized a very large
surface on the main thread, which at the same time, looking as crisp as
a user would expect.
2018-09-20 18:15:34 -04:00
Andrew Osmond
f799e4bd72 Bug 1456558 - Part 2. Implement factor of 2 scaling support for SVGs in the surface cache. r=tnikkel
There is one main difference between raster images and vector images
with respect to factor of 2 scaling. Vector images may be scaled
infinitely and so we need to extend factor of 2 scaling to permit
growing instead of just shrinking. Also, we don't want to scale
infinitely, so we should configure a maximum size limit. This size limit
will apply even outside of factor of 2 scaling, and so the caller
(VectorImage) will need to be careful to take this into account.
2018-09-20 18:15:32 -04:00
Andrew Osmond
0362a85f44 Bug 1456558 - Part 1. Move the allowed raster size calculation from imgFrame to SurfaceCache. r=tnikkel 2018-09-20 18:15:29 -04:00
Kartikaya Gupta
d66a0deb39 Bug 1492800 - Follow-up to cset 41e787e7785f to fix macOS searchfox build. r=me 2018-09-20 18:00:09 -04:00
Andreea Pavel
aac0039e08 Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2018-09-21 01:02:34 +03:00
Andreea Pavel
f5f6c0b588 Merge mozilla-inbound to mozilla-central. a=merge 2018-09-21 00:54:47 +03:00
Kris Maglione
def32ee738 Bug 1492990: Make _tabIds map not leak. r=aswan
There are cases when we asynchronously handle tab events, and therefore try to
attach an ID to a tab after it's already been removed. In practice, this will
typically only affect tests, since it requires the tab to be removed
immediately after a related event is dispatched, but in those cases, it causes
a leak, since there's no way for the tab to be removed after the map after
that point.

We should ideally get rid of those weird async hacks, but either way, we
should ensure that we never add a tab to the map after it's already been
removed. This patch does that.

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

--HG--
extra : rebase_source : 9b6bea993f6261596f2c6283d6569632d395d68b
2018-09-20 14:35:27 -07:00
Luke Wagner
0d3969acb0 Bug 1330661 - Baldr: add JS::OptimizedEncodingListener interface, shell implementation of it and tests (r=lth) 2018-09-20 14:46:04 -05:00
Calixte Denizet
f3e06a8e36 Bug 1490371 - Remove function names in generated gcda files r=marco
Function names in gcda are just here to check that they match the ones we've in gcno: this is an extra check since it already exists a function checksum for this purpose.
So the size of gcda and the time to generate them will decrease.

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

--HG--
extra : moz-landing-system : lando
2018-09-20 17:15:56 +00:00
Connor Sheehan
1d722a9ac1 Bug 1237610: update submit_telemetry_data.py r=ted
This commit updates submit_telemetry_data.py to send data
to the Telemetry pipeline. The script assumes the presence
of a "telemetry" directory within the statedir, and an
"outgoing" directory within the "telemetry" directory (otherwise
there is no data to submit). The script will create a
"submitted" directory and "telemetry.log" file if absent,
making the assumption that this is the first build telemetry
submission for that user. UUID values for submitted data points
are seeded from the filename, without the ".json" suffix.

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

--HG--
extra : moz-landing-system : lando
2018-09-20 18:54:07 +00:00
Ursula Sarracini
9d2d9836e6 Bug 1489962 - Add snippets targeting, Pocket tagging and bug fixes to Activity Stream r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D5914

--HG--
extra : moz-landing-system : lando
2018-09-20 18:36:20 +00:00
Miko Mynttinen
43389f7825 Bug 1490518 - Scale areas after clipping to unscaled clip r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D6031

--HG--
extra : moz-landing-system : lando
2018-09-20 18:31:00 +00:00
Gabriele Svelto
adeb3e767c Bug 1492815 - Do not send the StackTraces field in crash reports r=jchen
This patch prevents Fennec/GeckoView crash reporters from sending the large,
useless StackTraces field when submitting a report. I've also taken the
liberty of removing an obsolete crash annotate that was being added to
Fennec's reports.

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

--HG--
extra : moz-landing-system : lando
2018-09-20 15:25:31 +00:00
Emilio Cobos Álvarez
8f058ab54c Bug 1491864 - Fix preserve-3d in presence of anon boxes. r=mattwoodrow
In the button case we have a ::-moz-button-content pseudo-element, but this is
also an issue for tables and such.

These are supposed to be implementation details, so avoid looking at them for
preserve-3d.

I don't know how I didn't think of this on the regressing bug.

Differential Revision: https://phabricator.services.mozilla.com/D6131
2018-09-20 20:24:25 +02:00
Brian Grinstead
6f15c7154f Bug 1465592 - Enable Shadow DOM unconditionally in chrome documents;r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D6278

--HG--
extra : moz-landing-system : lando
2018-09-20 18:18:32 +00:00
Dan Minor
d42f66fd2b Bug 1492834 - Remove "Attempting to protect RTP" and related log messages; r=bwc
This removes the info messages and adds the packet type to the error messages.

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

--HG--
extra : moz-landing-system : lando
2018-09-20 14:11:44 +00:00
Andreea Pavel
ba8f70c50a Bug 1477342 - Disable /fetch/http-cache/304-update.html for frequent failures on Linux64, OSX, Windows r=gbrown 2018-09-20 13:05:00 +03:00