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

674335 Коммитов

Автор SHA1 Сообщение Дата
Harry Twyford a604e4862e Bug 1586861 - Use promiseDocumentFlushed in SearchOneOffs.__rebuild. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D48405

--HG--
extra : moz-landing-system : lando
2019-10-08 19:25:20 +00:00
Emma Malysz 695191a7dd Bug 1585727, ensure browser_preferences_usage.js is fission compatible r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D47945

--HG--
extra : moz-landing-system : lando
2019-10-08 14:54:53 +00:00
Noemi Erli a0c197288b Backed out changeset e0427b37129b (bug 1566868) for turning Bug1528607 into permafail CLOSED TREE 2019-10-08 22:25:20 +03:00
Andreas Schuler 9cde4e3ef1 Bug 1585009: Support playout-delay RTP header extension r=bwc
Added playout-delay RTP header extension for video to JsepSessionImpl::SetupDefaultRtpExtensions.
This ensures that this extension will be preserved when generating an answer to an offer (by a sending peer) containing it.
Also updated JsepSessionTest to include a test verifying that the expected default audio and video extensions are set.

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

--HG--
extra : moz-landing-system : lando
2019-10-08 12:49:52 +00:00
Dylan Roeh 1657764793 Bug 1563343 - Do not search for OS protocol handlers in GV; just let Gecko return ERROR_UNKNOWN_PROTOCOL. r=snorp,geckoview-reviewers,esawin
Differential Revision: https://phabricator.services.mozilla.com/D46311

--HG--
extra : moz-landing-system : lando
2019-10-08 19:05:09 +00:00
Daosheng Mu 2aafd36cc9 Bug 1585938 - Annotating battery-allowed-by-feature-policy-attribute-redirect-on-load.https.sub.html as a known failure if it is not Nightly build. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D48453

--HG--
extra : moz-landing-system : lando
2019-10-08 18:57:45 +00:00
Matthew Gregan f1fe14d3cc Bug 1583996 - Unlock CubebDeviceEnumerator mutex during call to cubeb_enumerate_devices. r=achronop
Differential Revision: https://phabricator.services.mozilla.com/D48475

--HG--
extra : moz-landing-system : lando
2019-10-08 18:53:55 +00:00
Ting-Yu Lin daaa2aa565 Bug 1426010 - Ship column-span. r=dbaron
Enable layout.css.column-span.enabled in all channels.

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

--HG--
extra : moz-landing-system : lando
2019-10-03 18:25:27 +00:00
Michael Kaply 22b5796f9c Bug 1574963 - Add description for LegacyProfiles policy. r=flod,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D48421

--HG--
extra : moz-landing-system : lando
2019-10-08 18:12:37 +00:00
David Teller 6b44f90be6 Bug 1585108 - Reworking enterTaggedTuple to remove the need to lookup when we're not in a sum;r=arai
In many cases, we call enterTaggedTuple in situations in which we already know that there is only one possible value, which ends up encoded on 0 bits in Context. This patch lets us entirely skip the lookup.

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

--HG--
extra : moz-landing-system : lando
2019-10-08 17:10:18 +00:00
Doug Thayer 30e84ef562 Bug 1587131 - Compute proper remote type for talos framescripts r=mconley
This fixes timeouts in some Talos tests with Fission enabled.

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

--HG--
extra : moz-landing-system : lando
2019-10-08 17:54:25 +00:00
Dan Minor ad61673439 Bug 1564902 - Checked paused_ prior to calling SendPacket; r=bwc
There is a window inside of SendPacket where the critical section is released
which means that other code could set paused_. This would lead to us hitting
the assertion at the top of SendPacket. Checking paused_ in the while loop
will avoid this. Upstream has fixed this problem in a similar way, but the
code has changed there enough that it doesn't make sense to try to bring in
their fix directly.

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

--HG--
extra : moz-landing-system : lando
2019-10-08 15:42:58 +00:00
Cosmin Sabou 73c11d0ebd Backed out changeset 388dbc366e53 (bug 1586862) for mochitest failures on test_focus_docnav.xul CLOSED TREE 2019-10-08 21:04:02 +03:00
Gabriel Luong 6de755b3b6 Bug 1578839 - Implement resizing of the browser with the embedded RDM UI. r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D47569

--HG--
extra : moz-landing-system : lando
2019-10-08 16:19:34 +00:00
Brian Grinstead a2b4c055ef Bug 1586877 - Replace <xul:textbox> with <html:input> in preferences tests;r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D48417

--HG--
extra : moz-landing-system : lando
2019-10-08 17:35:53 +00:00
Kevin Jacobs f44743a255 Bug 1564179 - Add telemetry for delegated credentials r=jcj
This patch adds telemetry for the Delegated Credentials TLS extension [0].

The data review questions are answered in [1], though I've never gone through this process, so questions I'm unsure how to answer are highlighted.

[0] https://tools.ietf.org/html/draft-ietf-tls-subcerts-04
[1] https://docs.google.com/document/d/1UAljhHppirlQphDFn9ly9-iWbK8V23GhoRztAS1rGvk

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

--HG--
extra : moz-landing-system : lando
2019-10-07 23:38:34 +00:00
Tom Ritter 23ba7b6fe3 Bug 1583949 - Add a check for IsEvalAllowed to the worker callpath for eval() r=ckerschb,baku
This patch does several things.  Because Workers aren't on the main thread,
many of the things done are in the name of off main thread access.

1) Changes a parameter in IsEvalAllowed from a nsIPrincipal to a bool.
   We only used the principal to determined if it was the System Principal.
   Principals aren't thread safe and can only be accessed on Main Thread, so
   if we passed a Principal in, we would be in error. Instead only pass in
   the bool which - for workers - comes from a thread-safe location.

2) Separates out the Telemetry Event Recording and sending a message to the
   console into a new function nsContentSecurityUtils::NotifyEvalUsage. (And
   creates a runnable that calls it.)

   We do this because we will need to only call this method on the main thread.

   Telemetry Event Recording has only ever been called on the Main Thread.
   While I possibly-successfully cut it over to happen Off Main Thread (OMT)
   by porting preferences to StaticPrefs, I don't know if there were other
   threading assumptions in the Telemetry Code. So it would be much safer to
   just continue recording Event Telemetry on the main thread.

   Sending a message to the console requires calling GetStringBundleService()
   which requires main thread. I didn't investigate if this could be made
   thread-safe, I just threw it onto the main thread too.

   If, in IsEvalAllowed, we are on the main thread - we call NotifyEvalUsage
   directly. If we are not, we create a runnable which will then call
   NotifyEvalUsage for us on the main thread.

3) Ports allow_eval_with_system_principal and allow_eval_in_parent_process
   from bools to RelaxedAtomicBool - because we now check these prefs OMT.

4) In RuntimeService.cpp, adds the call to IsEvalAllowed.

5) Add resource://gre/modules/workers/require.js to the allowlist of eval
   usage. This was the script that identified this gap in the first place.
   It uses eval (twice) for structural reasons (scope and line number
   massaging.)  The contents of the eval are the result of a request to a
   uri (which may be internal, like resource://). The whole point of this
   is to implement a CommonJS require() api.

   This usage of eval is safe because the only way an attacker can inject
   into it is by either controlling the response of the uri request or
   controlling (or appending to) the argument. If they can do that, they
   are able to inject script into Firefox even if we cut this usage of eval
   over to some other type of safe(r) script loader.

   Bug 1584564 tracks making sure calls to require.js are safe.

6) Adds cld-worker.js to the allowlist. Bug 1584605 is for refactoring that
   eval usage, which is decidedly non-trivial.

7) Does _not_ enforce the eval restrictions for workers. While I've gotten
   try to be green and not throw up any instances of eval-usage by workers,
   it is much safer to deploy this is Telemetry-only mode for Workers for
   a little bit to see if anything pops up from the Nightly population.

   Bug 1584602 is for enforcing the checks.

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

--HG--
extra : moz-landing-system : lando
2019-10-08 17:31:35 +00:00
Alexander Surkov 7544bd8298 Bug 1586836 - remove <xul:textbox> from a11y tests r=MarcoZ
Differential Revision: https://phabricator.services.mozilla.com/D48576

--HG--
extra : moz-landing-system : lando
2019-10-08 17:29:16 +00:00
John Lin 2341df44ac Bug 1581902 - p6: introduce a pref to enable/disable H.264 for WebRTC. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D46368

--HG--
extra : moz-landing-system : lando
2019-10-08 17:16:01 +00:00
John Lin 8f1bf15aa3 Bug 1581902 - p5: check H.264 hardware availability. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D46367

--HG--
extra : moz-landing-system : lando
2019-10-08 17:15:52 +00:00
John Lin 36bb9562d3 Bug 1581902 - p4: add HW H.264 feature to GfxInfo. r=esawin
Recycle FEATURE_WEBRTC_HW_ACCELERATION constant and rename it for H.264.

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

--HG--
extra : moz-landing-system : lando
2019-10-08 17:15:44 +00:00
John Lin e1b8252731 Bug 1581902 - p3: expose H.264 HW availability to AndroidBridge. r=esawin
Also rename existing utility functions to reflect that they are for VP8 only.

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

--HG--
extra : moz-landing-system : lando
2019-10-08 17:15:35 +00:00
John Lin 7f69cb2948 Bug 1581902 - p2: add HW H.264 check and rename methods. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D47368

--HG--
extra : moz-landing-system : lando
2019-10-08 17:15:23 +00:00
John Lin 3ab45bc445 Bug 1581902 - p1: use MediaDataEncoder on Android. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D46366

--HG--
extra : moz-landing-system : lando
2019-10-08 17:15:15 +00:00
Andrew Swan 50fda19ea0 Bug 1585588 Fix screenshots cross-doc adoption r=_6a68
Differential Revision: https://phabricator.services.mozilla.com/D48338

--HG--
extra : moz-landing-system : lando
2019-10-08 17:00:25 +00:00
Oana Pop Rus 1c5bdaa74c Bug 1571863 - Disable browser_dbg-worker-scopes.js on linux, windows and mac. r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D48267

--HG--
extra : moz-landing-system : lando
2019-10-08 16:53:12 +00:00
Brian Grinstead 5cfb7798a4 Bug 1586878 - Replace <xul:textbox> with <html:input> in test_add_remove_dictionaries.xul;r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D48419

--HG--
extra : moz-landing-system : lando
2019-10-08 17:13:43 +00:00
Cosmin Sabou 5366aca380 Bug 1585437 - Mark tests as fail-if on fission. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D48276

--HG--
extra : moz-landing-system : lando
2019-10-07 13:58:25 +00:00
Edouard Oger 79a871cd9c Bug 1577690 - WebChannel support for optional Sync. r=vladikoff
Differential Revision: https://phabricator.services.mozilla.com/D46316

--HG--
extra : moz-landing-system : lando
2019-10-08 15:19:23 +00:00
Emma Malysz 2e3c4bba36 Bug 1586862, replace XUL textbox with HTML input and generic XUL box in testcases within dom directory r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D48450

--HG--
extra : moz-landing-system : lando
2019-10-08 15:32:07 +00:00
Jeff Muizelaar c572d06005 Bug 1516286. WR Fallback: Do the empty check later. r=aosmond
What we actually care about here is whether itemRect is empty bceause that's
the what we'll use for the actual surface size.

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

--HG--
extra : moz-landing-system : lando
2019-10-08 14:20:40 +00:00
Junior Hsu 74d30daaec bug 1566868 - coop comparison with top-level parents r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D48464

--HG--
extra : moz-landing-system : lando
2019-10-08 16:58:24 +00:00
James Graham e056e81c8f Bug 1580097 - Revert bogus metadata change, r=aryx
Differential Revision: https://phabricator.services.mozilla.com/D48571

--HG--
extra : moz-landing-system : lando
2019-10-08 16:51:08 +00:00
Erik Rose 8b0b68e6a9 Bug 1232403 - Upgrade to sphinx-js 2.8. r=ahal
This should fix the doc builds on Windows, as sphinx-js added Windows support in 2.3.1 and 2.4. We also now get support for variadic args, @deprecated, and @see, along with other features.

sphinx-js 2.7.1 changed the default cwd to be the one containing conf.py, so I also had to twiddle `jsdoc_config_path`.

Let some other pipenv pinnings update themselves as well, as, if I don't, they'll just update themselves the next time somebody runs `mach doc`, dirtying their tree.

I suspect this also fixes bug 1556460, whose equivalent bug in sphinx-js is https://github.com/mozilla/sphinx-js/issues/106. IOW, it should no longer break with versions of jsdoc >= 3.6.

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

--HG--
extra : moz-landing-system : lando
2019-10-04 22:02:31 +00:00
Andreea Pavel ab8a9b521f Bug 1388256 - disabled browser_caching_name.js on debug mac and win, linux64 r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D48510

--HG--
extra : moz-landing-system : lando
2019-10-08 16:13:31 +00:00
Nicolas Silva a68a1fa1cd Bug 1587084 - Prevent disabling picture caching temporarily. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D48555

--HG--
extra : moz-landing-system : lando
2019-10-08 15:47:46 +00:00
Edouard Oger da3f0d0753 Bug 1581709 - Use sessionTokens for OAuth requests. r=vladikoff
Differential Revision: https://phabricator.services.mozilla.com/D46517

--HG--
extra : moz-landing-system : lando
2019-10-08 15:45:06 +00:00
Razvan Maries 9c27546918 Backed out changeset 6852bdb8d8c5 (bug 1581709) for Linting failures. CLOSED TREE 2019-10-08 18:42:11 +03:00
Alexandre Poirot bd4fcbfbc8 Bug 1585829 - Ensure releasing Service workers when the connection drops. r=jdescottes
With fission, we most likely have a process switch and the existing worker
target isn't properly detached. We should ensure releasing the SW whenever
the connection to the server drops

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

--HG--
extra : moz-landing-system : lando
2019-10-08 14:44:42 +00:00
Patrick Brosset e12f3faba1 Bug 1574401 - Multi-target node-picker in the browser toolbox r=rcaliman,gl,ochameau
The original plan for the node-picker to work with multiple targets was introduced in D41598 (in bug 1568825). The idea was that, because we can have multiple independent inspectable targets, and because the client is the one doing the orchestration between them, to let the client start the node picker in all targets at once.
At the time of this first change, the code was create with this in mind, but there was really just one target (the top-level one).

So, this revision introduces the real code for this. First of all, I removed the now obsolete `getAllInspectorFronts` in `node-picker.js` because we now have a similar function on the inspector front directly.

Then the main code changes to look for are on the actor side, in the `HighlighterActor`. This is where the picking actually happens.
You have to remember that several targets will be picking at the same time, and therefore several `HighlighterActor` instances will be in pick mode at the same time.
The way they allow users to pick is by listening to mouse events (mousemove and clicks essentially).
Because these actors can't see or talk to each other, one can't tell the others that the mouse is now over its content and the other pickers should pause somewhat.

So, when one of them sees that the mouse event is happening on a remote frame, then it bails out and lets events through without handling them. This is so that the embedded document (which also has a picker running) can get a chance to receive the mouse events too.

The other aspect is that each `HighlighterActor`, when picking, does its own highlighting. So if there are 3 remote frames, then there really are 3 highlighters.
So the trick is to make sure only one of them ever appears at any given time. Again, these actors can't talk to each other directly, so the client is responsible for doing this when receiving events that a node was hovered.

This is not perfect, but should normally get far better when the new fission-compatible highlighter is in place. Indeed, when that happens, we won't have to care about this anymore, there will be only one `HighlighterRenderer` for the entire tab. So even if there are multiple `HighlighterActor` instances picking, they will all be sending events to the same renderer.

The only exception is in the browser toolbox where you can inspect both the browser UI and the content UI. In this case, there will be 2 renderers: one over the entire browser window, and one over the <browser> area. So we'll still have to do the dance of hiding one when the other is shown.

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

--HG--
extra : moz-landing-system : lando
2019-10-08 13:47:18 +00:00
Tom Tung 690b5a5e54 Bug 1577311 - Ensure the js object is dropped while the holder is unlinked and destructored; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D47218

--HG--
extra : moz-landing-system : lando
2019-10-04 16:32:38 +00:00
Robert Strong de030c48f8 Bug 1510494 - fix crash when running xpcshell tests on Windows 7 debug builds. r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D48557

--HG--
extra : moz-landing-system : lando
2019-10-08 15:20:05 +00:00
Robert Strong d199f64c18 Bug 1510494 - write elevated updater log and status files to a new directory in the Maintenance Service directory. r=agashlin,mhowell
Differential Revision: https://phabricator.services.mozilla.com/D46627

--HG--
extra : moz-landing-system : lando
2019-10-08 15:10:29 +00:00
Edouard Oger 1093781abc Bug 1581709 - Use sessionTokens for OAuth requests. r=vladikoff
Differential Revision: https://phabricator.services.mozilla.com/D46517

--HG--
extra : moz-landing-system : lando
2019-10-08 14:19:11 +00:00
harry abf9b97e30 Bug 1563351 - Insert search shortcuts into the Urlbar with Touch Bar buttons. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D38892

--HG--
extra : moz-landing-system : lando
2019-10-08 15:10:20 +00:00
harry 980501c285 Bug 1563350 - Add popover to the Touch Bar that displays when the Urlbar has focus. r=mikedeboer,spohl,fluent-reviewers,Pike,flod
Differential Revision: https://phabricator.services.mozilla.com/D38563

--HG--
extra : moz-landing-system : lando
2019-10-08 00:52:07 +00:00
harry 02333753b2 Bug 1567939 - Support NSTextField in the macOS Touch Bar. r=spohl
Differential Revision: https://phabricator.services.mozilla.com/D38891

--HG--
extra : moz-landing-system : lando
2019-10-08 00:52:07 +00:00
harry 9507d41513 Bug 1563349 - Part 5 - Support NSScrollView in the Touch Bar. r=spohl
Differential Revision: https://phabricator.services.mozilla.com/D47622

--HG--
extra : moz-landing-system : lando
2019-10-08 00:51:34 +00:00
harry cd7aed4b4c Bug 1563349 - Part 4 - Support NSPopoverTouchBarItem. r=spohl
Differential Revision: https://phabricator.services.mozilla.com/D47621

--HG--
extra : moz-landing-system : lando
2019-10-07 18:18:02 +00:00
harry 18272eae11 Bug 1563349 - Part 3 - Update TouchBarInputs in-place. r=spohl
Differential Revision: https://phabricator.services.mozilla.com/D47620

--HG--
extra : moz-landing-system : lando
2019-10-07 18:02:35 +00:00