Commit Graph

668018 Commits

Author SHA1 Message Date
Mirko Brodesser
45015bce27 Bug 1576899: change nsIContentSerializer to take output string as argument in nsIContentSerializer::Init. r=hsivonen
Before, all `nsIContentSerializer::Append`* methods took an output
string. The state of `nsPlainTextSerializer` depended on the string
pointing to the same object.

Now, it's ensured that the same output string is used between
`nsIContentSerializer::Init` and `nsIContentSerializer::Finish`.

Moreover, `nsHTMLCopyEncoder::EncodeToStringWithContext` re-used
`mSerializer` without initializing it again. This was error-prone,
because after serializing with `mSerializer`, it's internal state might
have changed to an undesirable one (e.g.
`nsPlainTextSerializer::mWrapColumn` could've been modified).
Hence, it is now initialized again before serializing the common
ancestors.

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

--HG--
extra : moz-landing-system : lando
2019-08-28 11:54:49 +00:00
Andrew Halberstadt
5ce2bf9eab Bug 1576988 - [docs] Remove 'Indices and tables' section from doc trees, r=Standard8
The main motivation here is to get these subsections out of the main index.
While changing the heading to an 'h2' or lower would suffice, I opted to remove
them entirely. I did this because the links in this section is for the overall
global documentation. E.g, the "Indices and tables" section under /tools/lint,
has nothing to do with linting.

It is still possible to access the index and search page from the root:
https://firefox-source-docs.mozilla.org/#indices-and-tables

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

--HG--
extra : moz-landing-system : lando
2019-08-28 12:38:49 +00:00
Dão Gottwald
cb8c8ab22c Bug 1575238 - Remove tabs-newtab-button class. r=mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D42656

--HG--
extra : moz-landing-system : lando
2019-08-28 13:45:21 +00:00
Nicolas Silva
bf5ea4cb2d Bug 1576372 - Check the validity of the DrawTarget before rendering SVG content into it. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D43751

--HG--
extra : moz-landing-system : lando
2019-08-28 13:16:58 +00:00
Gurzau Raul
6321d98bb4 Backed out changeset 9b5ceca1eedf (bug 1573813) for failures at /crashtests/1113005.html on a CLOSED TREE. 2019-08-28 17:15:26 +03:00
Gurzau Raul
ad32ef1d9a Backed out changeset 9aa911cc3fcf (bug 1558417) for failing at browser_jsterm_editor_toolbar.js on a CLOSED TREE. 2019-08-28 17:12:00 +03:00
Dan Minor
a81f8d6f24 Bug 1554976 - Use StunAddrs to set interface for mdns_service; r=mjf
The Rust get_if_addrs library previously used does not build on Android with
our build system. Since we're already using nICEr to determine the local
interface addresses, rather than fix the Rust library, we can use those
addresses to set the interface on which mdns_service listens.

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

--HG--
extra : moz-landing-system : lando
2019-08-28 13:12:26 +00:00
Dan Minor
2507ef392a Bug 1554976 - Move thread assertion inside if statement in OnLookupComplete; r=mjf
Checking this assertion outside of the if statement can result in
a use-after-free in debug builds.

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

--HG--
extra : moz-landing-system : lando
2019-08-28 13:12:13 +00:00
Dan Minor
c3d8942d0f Bug 1554976 - Make mDNS service a singleton; r=mjf
The current code causes one mDNS service to be created for each PeerConnection.
Due to Bug 1569311, the services persist until shutdown, which can lead to a
lot of mDNS threads running on sites which use WebRTC for fingerprinting. This
change makes it so we start at most one mDNS service.

I've filed Bug 1569955 to look at shutting down the mDNS service after the
last hostname is unregistered. As an alternative, if we fix Bug 1569311, we
could also use refcounting and stop the mDNS service after the last
StunAddrsRequestParent is freed.

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

--HG--
extra : moz-landing-system : lando
2019-08-28 13:12:01 +00:00
Dan Minor
d54770d4a5 Bug 1554976 - Use mdns_service to generate UUIDs; r=mjf
With the move to the socket process, the UUID service is no longer available
in nricectx. This adds a pair of helper functions to mdns_service to generate
UUIDs and uses them to generate hostnames inside nricectx.

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

--HG--
extra : moz-landing-system : lando
2019-08-28 13:11:49 +00:00
Dan Minor
b07a76f4bd Bug 1554976 - Obfuscate default rtp and rtcp candidates if required; r=ng
The default RTP candidate is used to populate the c= line in SDP. Rather than
using the mDNS address, which sipcc can not parse, we use 0.0.0.0:9, which is
what Chromium has chosen as well [1].

For RTCP, the mDNS obfuscated address is used.

[1] https://webrtc.googlesource.com/src.git/+/3ae59d33a310280e2f21ed4c53849950171e48e8

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

--HG--
extra : moz-landing-system : lando
2019-08-28 13:11:42 +00:00
Dan Minor
70005885cc Bug 1554976 - Disable host address obfuscation for simulated NAT mochitests; r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D38497

--HG--
extra : moz-landing-system : lando
2019-08-28 13:11:35 +00:00
Dan Minor
2da923ff0b Bug 1554976 - Add plumbing to enable/disable host address obfuscation; r=mjf
This only enables mDNS on OS X for now. Some versions of Windows lack mDNS
support, there are some oddities with resolving IPv6 addresses on Linux, and
Android has not yet been tested. All of these will be addressed in follow on
bugs.

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

--HG--
extra : moz-landing-system : lando
2019-08-28 13:11:33 +00:00
Dan Minor
d467f3a90a Bug 1554976 - Register mDNS hostname if required; r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D38495

--HG--
extra : moz-landing-system : lando
2019-08-28 13:11:24 +00:00
Dan Minor
717793ab02 Bug 1554976 - Copy actual address to CandidateInfo in MediaTransportHandler; r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D38494

--HG--
extra : moz-landing-system : lando
2019-08-28 13:11:20 +00:00
Dan Minor
9fa62a0a55 Bug 1554976 - Generate mDNS addresses in nricectx; r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D38493

--HG--
extra : moz-landing-system : lando
2019-08-28 13:11:14 +00:00
Dan Minor
6803a86c10 Bug 1554976 - Add methods to register/unregister mDNS hostnames to StunAddrsRequestParent; r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D38492

--HG--
extra : moz-landing-system : lando
2019-08-28 13:11:11 +00:00
Dan Minor
b9e2e7f9b3 Bug 1554976 - Run mach vendor rust; r=ng
Differential Revision: https://phabricator.services.mozilla.com/D38491

--HG--
extra : moz-landing-system : lando
2019-08-28 13:11:05 +00:00
Dan Minor
a17af56ba5 Bug 1554976 - Add rust mdns library to mtransport; r=ng,dragana
This adds a mdns_service to mtransport to handle responding to mDNS queries.
All hostnames will be generated from UUIDs, so the responder assumes that it
is the only responder for a hostname which is registered with it. Because of
this, the responder does not first make a DNS query itself to see if any other
responder is handling a hostname, and does not wait a random amount of time
before replying, both of which are required by the specification to avoid
collisions with other responders.

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

--HG--
extra : moz-landing-system : lando
2019-08-28 13:09:59 +00:00
Dan Minor
023252b4a9 Bug 1554976 - Allow network functions needed by Rust mDNS responder; r=tjr
This removes these functions: bind, getaddrinfo, recvfrom, sendto, setsockopt,
socket from the check_networking test to allow for their use by the Rust mDNS
responder.

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

--HG--
extra : moz-landing-system : lando
2019-08-28 13:09:50 +00:00
Julian Descottes
2646ae9c6d Bug 1577092 - Remove connectTo* helpers in debugger-server and use connectors directly r=nchevobbe
Depends on D43728

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

--HG--
extra : moz-landing-system : lando
2019-08-28 13:07:56 +00:00
Julian Descottes
e12432f70d Bug 1577092 - Change devtools server connectors to expose connectTo functions r=nchevobbe
Depends on D43618

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

--HG--
extra : moz-landing-system : lando
2019-08-28 13:07:40 +00:00
Ehsan Akhgari
d67ea3aa05 Bug 1576316 - Restore a bit of the Fission-incompatible code removed in bug 1575609 in order to satisfy the tests that are relying on it; r=baku
The function called in these tests of course does the wrong thing, but these
tests aren't testing anything related to anti-tracking, so it is probably
harmless to leave this code in until the dependencies described in the comments
in the patch are in place.

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

--HG--
extra : moz-landing-system : lando
2019-08-28 11:13:49 +00:00
Bogdan Tara
02e806d54a Backed out 6 changesets (bug 1564968) by yzen's request CLOSED TREE
Backed out changeset 4b7516635108 (bug 1564968)
Backed out changeset c3227d4ff4b3 (bug 1564968)
Backed out changeset 868dbd59c79e (bug 1564968)
Backed out changeset db1a396ab58e (bug 1564968)
Backed out changeset e69163dc4683 (bug 1564968)
Backed out changeset c12857bc6980 (bug 1564968)
2019-08-28 16:06:23 +03:00
alexandru.ionescu
e1ad0f40a4 Bug 1564242 Split raptor.yml taskcluster test configs into smaller files: part 5 (refbrow+firefox) r=perftest-reviewers,Bebe
Differential Revision: https://phabricator.services.mozilla.com/D43569

--HG--
extra : moz-landing-system : lando
2019-08-28 12:41:46 +00:00
Yura Zenevich
c094bf25b6 Bug 1564968 - add keyboard audit filter/badge to the accessibility panel. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D43446

--HG--
rename : devtools/client/accessibility/components/TextLabelBadge.js => devtools/client/accessibility/components/KeyboardBadge.js
extra : moz-landing-system : lando
2019-08-27 23:37:54 +00:00
Yura Zenevich
411f447380 Bug 1564968 - add keyboard check section within accessibility panel sidebar checks. r=gl,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D43445

--HG--
extra : moz-landing-system : lando
2019-08-27 18:17:19 +00:00
Yura Zenevich
195b0a1aaf Bug 1564968 - create Check component for a generic check result in the checks section of the accessibility panel sidebar. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D43444

--HG--
extra : moz-landing-system : lando
2019-08-27 23:34:29 +00:00
Yura Zenevich
14f3ce0a9b Bug 1564968 - add highlighting support for keyboard issues. r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D43443

--HG--
rename : devtools/server/tests/browser/browser_accessibility_infobar_audit_text_label.js => devtools/server/tests/browser/browser_accessibility_infobar_audit_keyboard.js
extra : moz-landing-system : lando
2019-08-27 18:06:41 +00:00
Yura Zenevich
07581454e5 Bug 1564968 - adding keyboard audit type serverside support. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D43442

--HG--
extra : moz-landing-system : lando
2019-08-28 12:12:59 +00:00
Yura Zenevich
830e72a287 Bug 1564968 - add isElementThemed method to InspectorUtils to infer native theme styling such as focus. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D43441

--HG--
extra : moz-landing-system : lando
2019-08-27 03:35:13 +00:00
Belén Albeza
8e89cc0eb6 Bug 1575872 - Part 2: Add Jest tests r=Ola
Differential Revision: https://phabricator.services.mozilla.com/D43638

--HG--
extra : moz-landing-system : lando
2019-08-28 10:49:57 +00:00
Belén Albeza
ef64830e0c Bug 1575872 - Part 1: Render a list of issues (errors and warnings) in the Manifest r=Ola,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D43637

--HG--
rename : devtools/client/application/src/components/manifest/ManifestItemWarning.css => devtools/client/application/src/components/manifest/ManifestIssue.css
rename : devtools/client/application/src/components/manifest/ManifestItemWarning.js => devtools/client/application/src/components/manifest/ManifestIssue.js
extra : moz-landing-system : lando
2019-08-28 12:20:43 +00:00
Martin Stransky
4e8409ddcd Bug 1576898 - [Wayland] Implement gbm_bo_import & gbm_device_is_format_supported at nsGbmLib, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D43603

--HG--
extra : moz-landing-system : lando
2019-08-28 10:38:11 +00:00
Jan Horak
37a9627a4c Bug 1573813 - use parent window scale factor for the popup/tooltips; r=stransky
For popup windows with parent we need to get scale factor of the parent
window. Because when the windows are hidden they're not receiving updates
about changing scaling factor. So when moving from normal dpi to
the hidpi monitor the newly opened popup windows will have the same scale

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

--HG--
extra : moz-landing-system : lando
2019-08-27 13:03:50 +00:00
Nicolas Chevobbe
db62899801 Bug 1558417 - Add onboarding UI for Editor. r=Honza.
The onboarding UI is displayed on top of the Editor.
A dismiss button hides it forever (this is handled via
a pref that is set to false when clicking the button).

We take this as an opportunity to polish the Editor UI/wording
a bit.

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

--HG--
rename : devtools/client/debugger/images/resume.svg => devtools/client/themes/images/webconsole/run.svg
extra : moz-landing-system : lando
2019-08-28 11:47:49 +00:00
Emilio Cobos Álvarez
1fab526cce Bug 1554498 - followup: Add a null-check since XBL can call into UnbindFromTree at odd times. a=Aryx,btara
Quite oddly, this is only busting ccov builds... I'm mildly curious about why,
but also not really.

MANUAL PUSH: This bug busted ccov builds which only land on central.
2019-08-28 13:45:38 +02:00
Andreas Pehrson
680502c0ac Bug 1572858 - Tighten MSG::AddStream assert. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D43596

--HG--
extra : moz-landing-system : lando
2019-08-27 22:56:49 +00:00
Henrik Skupin
1803585259 Bug 1570104 - Add shared IPv4 range from RFC 6598 (100.64/10) to allowed list of IP addresses for testing. r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D40167

--HG--
extra : moz-landing-system : lando
2019-08-28 10:58:48 +00:00
yulia
91d20d2982 Bug 1575557 - rename webExtension to webExtensionDescriptor; r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D42867

--HG--
rename : devtools/server/actors/addon/webextension.js => devtools/server/actors/descriptors/webextension.js
rename : devtools/shared/fronts/addon/webextension.js => devtools/shared/fronts/descriptors/webextension.js
rename : devtools/shared/specs/addon/webextension.js => devtools/shared/specs/descriptors/webextension.js
extra : moz-landing-system : lando
2019-08-28 10:02:57 +00:00
yulia
207370a55c Bug 1575557 - merge webextension-proxy with webextension; r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D42866

--HG--
extra : moz-landing-system : lando
2019-08-28 10:06:27 +00:00
yulia
e7dd37593b Bug 1522571 - Unify addonTargetFront with webExtensionSpec; r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D42833

--HG--
extra : moz-landing-system : lando
2019-08-28 10:01:43 +00:00
Gurzau Raul
0b424003d3 Backed out 2 changesets (bug 1572687) for causing bug 1574837. CLOSED TREE
Backed out changeset 0c1fa26f2f67 (bug 1572687)
Backed out changeset 2b3e775a99cb (bug 1572687)
2019-08-28 12:52:25 +03:00
Bogdan Tara
c384db506a Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-08-28 12:47:20 +03:00
Bogdan Tara
8ea946dcf5 Merge inbound to mozilla-central. a=merge 2019-08-28 12:41:46 +03:00
Bogdan Tara
786d0c66bc Merge autoland to mozilla-central. a=merge 2019-08-28 12:39:23 +03:00
Mirko Brodesser
914af8665f Bug 1576903: Remove debugging comment added accidentally in bug 1575218. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D43607

--HG--
extra : moz-landing-system : lando
2019-08-28 08:23:23 +00:00
Emilio Cobos Álvarez
c19cf5ff3f Bug 1577043 - Turn two anonymous-content-related NS_ASSERTIONs into MOZ_ASSERTs. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D43697

--HG--
extra : moz-landing-system : lando
2019-08-28 09:36:44 +00:00
Nicolas Chevobbe
451bc0629c Bug 1572671 - Don't load content process server startup script if it was already loaded. r=ochameau.
Previously, we were simply having a flag on the ContentProcessConnector
that we would flip once we loaded the content process server startup script.
This was working fine until multi-proxy browser console.
Each time we open the Browser Console, we create a new loader in a new
compartment. Which means in the end we'll have a new ContentProcessConnector
instance, and the flag would be resetted, and thus we would load a new
content process server startup script, which finally, would emit some
packet twice, and thus would break how we manage new packet in the client.

This patch fixes that by replacing the flag by checking if the script
was already loaded.

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

--HG--
extra : moz-landing-system : lando
2019-08-28 06:37:18 +00:00
Luke Crouch
41f1c050cb Bug 1569847 - Store breached passwords as potentially "vulnerable". r=MattN
MANUAL PUSH: Bug 1561376 - moz-phab needs to allow uploading a patch to a revision without commandeering

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

--HG--
rename : toolkit/components/passwordmgr/LoginHelper.jsm => browser/components/aboutlogins/LoginBreaches.jsm
rename : browser/components/aboutlogins/tests/unit/test_getBreachesForLogins.js => browser/components/aboutlogins/tests/unit/test_getPotentialBreachesByLoginGUID.js
extra : source : b2e87e49589e59f0cd41fa8984b2381b32ec4956
extra : amend_source : 9b535119820b548534e57fc6e44a9161d779981f
extra : histedit_source : fb92082e7338e8358a046695b5e05e520840aa3d%2C4bf199c30066f740616c5a9aad4f5332328193f0
2019-08-27 22:51:20 -07:00