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

680876 Коммитов

Автор SHA1 Сообщение Дата
Jan Horak 8f225f4f8b Bug 1585918 Show only one remote content panel at a time; r=stransky
Items in overflow-widget which belongs to addons cannot have
the overflow-widget panel set as a popup parent because the
overflow-widget is replaced by them.

We also need to close the addon panel before we return back
to overflow-widget to avoid simillar problem.

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

--HG--
extra : moz-landing-system : lando
2019-11-21 12:19:19 +00:00
Brendan Dahl 2ab3c9fcc8 Bug 1597068 - Revert navigator toolbox sheet anchor changes. r=dao
I'm not exactly sure what changed, but the changes from bug 149582 are no
longer needed to fix test_queryCaretRect.htm and the position of the
drop down dialog.

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

--HG--
extra : moz-landing-system : lando
2019-11-21 09:12:04 +00:00
David Major 4afd3b6941 Bug 1577236 - clang-10: Fix -Wimplicit-int-float-conversion warnings in TimeStamp r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D54031

--HG--
extra : moz-landing-system : lando
2019-11-20 21:06:33 +00:00
Ryan Hunt a54491aaeb Bug 1596499 - Avoid UB in BaseCompiler constructor. r=sstangl
The details are little fuzzy here. According to one reading of the spec,
dereferencing/creating a reference to a base class during construction is
undefined. This leads us to miscompile the baseline compiler.

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

--HG--
extra : moz-landing-system : lando
2019-11-21 19:04:42 +00:00
Jim Blandy f0b600a797 Bug 1592155: Trace Debugger.Frames for suspended generator/async calls directly. r=jonco
For collection purposes, there must be an owning edge from an
`AbstractGeneratorObject` to each `Debugger.Frame` with hooks set that refers to
it. If a `Debugger.Frame` refers to a suspended generator or async call, and the
`Debugger.Frame` has `onStep` or `onPop` hooks set, and the call's
`AbstractGeneratorObject` is reachable, the garbage collector must retain the
`Debugger.Frame`: collecting it would cause the hooks not to fire, which would
be visible to JavaScript.

At the moment, we obtain the effect of that owning edge in a needlessly
circuitous way. The iterative marking loop in `GCRuntime::markWeakReferences`
calls `DebugAPI::markIteratively` to scan all `Debugger` objects with live
debuggee globals to see if they have any `Debugger.Frame`s for marked
`AbstractGeneratorObject`s. If they do, then we mark the `Debugger`, which marks
the `Debugger.Frames` and causes `markIteratively` to return true, so we go
around the `markWeakReferences` loop again.

With this patch, tracing an `AbstractGeneratorObject` in a debuggee realm checks
the `Debugger`s weak maps for `Debugger.Frames`, and marks them. The edge is
still only inferred (via the Realm's isDebuggee flag; its list of Debuggers; and
the Debuggers' tables of generator frames) rather than being represented
directly as a pointer, but overall, this is much closer to ordinary tracing
behavior: tracing one object causes more objects to become markable.

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

--HG--
extra : moz-landing-system : lando
2019-11-21 18:37:08 +00:00
Jim Blandy 113fe5e5d4 Bug 1592155: Make TraceCrossCompartmentEdge handle JSObject subclasses. r=jonco
Give TraceCrossCompartmentEdge an inline definition in Tracer.h that uses
gc::ConvertToBase and unsafeUnbarrieredForTracing (already in use by other
definitions in that file) to bring things to the point that
TraceManuallyBarrieredCrossCompartmentEdge can finish the job.

This gives us a definition that handles WriteBarriered<T> for pointers to
subclasses of JSObject, so we can use tighter types in data structures.

Remove the non-inline definition and explicit template instantiations in
Marking.cpp.

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

--HG--
extra : moz-landing-system : lando
2019-11-21 18:37:08 +00:00
Jed Davis 0daa28d9cb Bug 1294286 - Filter clock IDs in clock_getres sandbox rule. r=gcp
The clockid_t type on Linux has a space of values with encode a pid and
refer to various measures of another process's CPU usage; clock_getres
would, thereby, allow probing whether other processes exist.  This is
a relatively small information leak into the sandboxes, but there's no
reason to allow it.

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

--HG--
extra : moz-landing-system : lando
2019-11-21 08:02:06 +00:00
Jed Davis a37e31e914 Bug 1598040 - Filter clock IDs in clock_nanosleep sandbox rule. r=gcp
The `clockid_t` type on Linux has a space of values which encode a pid
and allow measuring the CPU usage of other processes; we don't want to
allow sandboxed processes to do that.

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

--HG--
extra : moz-landing-system : lando
2019-11-21 08:03:17 +00:00
Brian Hackett 3d0e2f9cad Bug 1580104 - Watch for null frame, r=jlast.
Differential Revision: https://phabricator.services.mozilla.com/D54140

--HG--
extra : moz-landing-system : lando
2019-11-21 16:49:35 +00:00
Andrew McCreight 52c4d52f02 Bug 1597036 - Add fission.autostart as an optional locked pref in the troubleshooting schema. r=mconley
I think that Bug 1572925 made it an error to have any locked prefs
reported in about:support, because they had a pref that accidentally
was getting reported, and I guess we don't have any by
default. fission.autostart is locked on beta and release, but not on
Nightly. This patch makes it so it is okay, but not necessary, to have
fission.autostart reported as a locked preference, so that the test
will pass in either configuration.

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

--HG--
extra : moz-landing-system : lando
2019-11-21 16:26:13 +00:00
Michael Kaply b78bcbe3c1 Bug 1590715 - Don't show URL status in kiosk mode. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D53053

--HG--
extra : moz-landing-system : lando
2019-11-21 09:50:08 +00:00
Andi-Bogdan Postelnicu e8a21331ce Bug 1598069 - make compliant with future clang 10 our clang based static analysis. r=froydnj
With clang 10 and up `getTemporary` has been replaced with the more versatile `getSubExpr`.
The commit that added this behaviour is: b0561b3346

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

--HG--
extra : moz-landing-system : lando
2019-11-21 14:07:44 +00:00
Hiroyuki Ikezoe 7afdb8487c Bug 1586986 - Fire visual viewport resize events and flush position:fixed elements' layout in the same way what Chrome does. r=botond
On Chrome, visual viewport resize event is fired repeatedly during dynamic
toolbar transitions and visual viewport height obtained by the VisualViewport
API is also changed, but in terms of layout the height value is never used
until the dynamic toolbar height reaches to zero or is changed from zero.
The height used at the time is the height for vh units when the toolbar height
reaches to zero and the ICB height when the toolbar height is changed from zero.
To do so, we need to have another visual viewport size in parallel to the
original one and use them depending on situations.

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

--HG--
extra : moz-landing-system : lando
2019-11-21 21:36:59 +00:00
Hiroyuki Ikezoe 1737c375d1 Bug 1586986 - Introduce 'fixed margins' on the main-thread to omit the gap between 'fixed margins' on the compositor and the last dynamic toolbar position on the main-thread. r=botond
The gap is caused by the difference between 'fixed margin' on the compositor
based on the state where the dynamic toolbar is completely visible and
position:fixed elements positioned by the time where is partially visible or
completely hidden.  That's because the 'fixed margin' is computed based on the
bottom of the ICB whereas position:fixed elements are slightly shifted from the
ICB edge during the toolbar transition.

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

--HG--
extra : moz-landing-system : lando
2019-11-21 21:36:16 +00:00
Hiroyuki Ikezoe 9b165804d8 Bug 1586986 - Deliver 'fixed-bottom' offset to the top of the pres context on the foreground tab. r=geckoview-reviewers,tnikkel,snorp
The dynamic toolbar transition doesn't affect on background tabs since to
switch tabs the dynamic toolbar should be restored to its original state (i.e.,
completely visible state).

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

--HG--
extra : moz-landing-system : lando
2019-11-21 21:15:46 +00:00
Bogdan Tara 6aae1c4aaa Backed out changeset 726c8aa10d1a (bug 1597893) for bustages complaining about nsCocoaWindow.h CLOSED TREE 2019-11-21 15:35:09 +02:00
jeffin143 9f50df6c78 Bug 1597893 : convert NS_STYLE_WINDOW_SHADOW_* to an enum class in nsStyleConsts.h r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D53920

--HG--
extra : moz-landing-system : lando
2019-11-21 12:09:03 +00:00
ssengupta 97bb846b1e Bug 1597959 - Return from IDBDatabase::RenameObjectStore immediately if aObjectStoreId and aName both match. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D53947

--HG--
extra : moz-landing-system : lando
2019-11-21 11:54:40 +00:00
Tim Nguyen d6cd136ce0 Bug 1597941 - Fix #hostText width and alignment in pageInfo.xul. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D53941

--HG--
extra : moz-landing-system : lando
2019-11-21 08:53:26 +00:00
Jean-Yves Avenard 81120e5898 Bug 1595637 - P0. Remove use of NS_IF_ADDREF macro. r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D53380

--HG--
extra : moz-landing-system : lando
2019-11-21 10:57:54 +00:00
Itiel 8457eea73f Bug 1598095 - Set urlbarView-title's directionality according to the text's first character direction r=dao
Differential Revision: https://phabricator.services.mozilla.com/D54017

--HG--
extra : moz-landing-system : lando
2019-11-21 10:29:24 +00:00
James Teh a984f604fe Bug 1587557: When activating an HTML text field via a11y APIs, if it already has focus, simulate a click. r=MarcoZ
Previously, HTMLTextFieldAccessible::DoAction just called TakeFocus().
When the field already has focus, TakeFocus() will do nothing.
However, the user might be activating this element because they dismissed a touch keyboard and want to bring it back.
Therefore, we must simulate a click so Gecko will bring up the keyboard.

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

--HG--
extra : moz-landing-system : lando
2019-11-21 10:42:36 +00:00
Jean-Yves Avenard aabcbaf2bd Bug 1595637 - P6. Remove depency on ChannelEventQueue and NeckoTargetHolder from DocumentChannelChild. r=mayhemer
There was no need for the ChannelEventQueue and GetNeckoTarget() was always retuning the main thread anyway.

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

--HG--
extra : moz-landing-system : lando
2019-11-21 11:00:04 +00:00
Jean-Yves Avenard 7939f75703 Bug 1595637 - P5. Remove Suspend/Resume methods from PDocumentChannel. r=mattwoodrow
They are no longer used.

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

--HG--
extra : moz-landing-system : lando
2019-11-21 10:58:31 +00:00
Jean-Yves Avenard 140a44a824 Bug 1595637 - P4. Assert that DCC non-functional methods are never called. r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D52786

--HG--
extra : moz-landing-system : lando
2019-11-21 10:58:23 +00:00
Jean-Yves Avenard b5e476aa6f Bug 1595637 - P3. Only set contentType, contentDisposition and originalURI in the parent. r=kmag,mayhemer
They don't need to be set on the DocumentChannelChild as they are never read.

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

--HG--
extra : moz-landing-system : lando
2019-11-21 10:58:14 +00:00
Jean-Yves Avenard 901cb4a89a Bug 1595637 - P2. Remove nsIIdentChannel from nsBaseChannel. r=mayhemer
It was only needed when used with DocumentChannelChild.

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

--HG--
extra : moz-landing-system : lando
2019-11-21 10:58:11 +00:00
Jean-Yves Avenard e4fca7200e Bug 1595637 - P1. Don't have DocumentChannelChild inherit from nsBaseChannel. r=mayhemer
This expose that some methods aren't doing anything. We will address those in a follow-up change.

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

--HG--
extra : moz-landing-system : lando
2019-11-21 10:58:02 +00:00
Csoregi Natalia f51f54ce15 Backed out changeset 19b9fd7a11d0 (bug 1585918) for bustage on nsWindow.cpp. CLOSED TREE 2019-11-21 13:02:52 +02:00
Valentin Gosu 50ab46ba6c Bug 1565004 - Make sure we skip TRR when there's an active VPN r=mayhemer
- Adds the `network.trr.enable_when_vpn_detected` defaulting to false. This means detecting a PPP adapter will make IsExcludedFromTRR always return true - it does not affect the `network.trr.mode` pref.
- Adds a test that when nsINetworkLinkService.vpnDetected is true we skip all TRR requests
- Makes it so we update the excludedDomains list and VPN detected status for TRR on any network:link-status-changed observer notification that is received.

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

--HG--
extra : moz-landing-system : lando
2019-11-21 10:02:48 +00:00
Valentin Gosu 13590a1c98 Bug 1565004 - Add nsINetworkLinkService.vpnDetected r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D52168

--HG--
extra : moz-landing-system : lando
2019-11-21 10:43:02 +00:00
Valentin Gosu 8cbd335488 Bug 1597137 - Make sure that variables touched from IsExcludedFromTRR are locked r=dragana
- Since IsExcludedFromTRR may be called from multiple threads we should make sure that the member variables it uses are either atomic or locked.
- Makes IsTRRBlacklisted call IsExcludedFromTRR instead of querying variables again.
- Removes hardcoded checks for localhost and .local, since these are included in network.trr.builtin-excluded-domains

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

--HG--
extra : moz-landing-system : lando
2019-11-21 10:43:02 +00:00
Valentin Gosu 8750aabfa9 Bug 1597137 - Don't load TRR entries from the cache if they are part of the excluded list. r=dragana
This patch fixes two issues where we may mistakenly load a TRR record even though the host is part of the excluded-domains list:
1. If a.com is part of the excluded domains, but b.com is not, then when we first resolve b.com using TRR, the server may also push the record for a.com; Previously we didn't check if the pushed record is also excluded, which could lead us to load it from the TRR cache.
2. If b.com is resolved using TRR, but later b.com is added to the excluded-domains list, we may mistakenly load b.com from the TRR cache, even though we should use platform DNS for it.

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

--HG--
extra : moz-landing-system : lando
2019-11-21 10:02:33 +00:00
Emilio Cobos Álvarez a46d4afe4b Bug 1559076 - Invalidate parts in nested shadow trees correctly. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D54010

--HG--
extra : moz-landing-system : lando
2019-11-21 10:32:10 +00:00
Emilio Cobos Álvarez 30a9b8d837 Bug 1559074 - Enable shadow parts everywhere. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D54030

--HG--
extra : moz-landing-system : lando
2019-11-21 10:32:25 +00:00
Emilio Cobos Álvarez b4d798e696 Bug 1559076 - Restyle all descendants when the exportparts attribute changes. r=heycam
This attribute is not expected to change often, so it seems fine to restyle the
whole subtree.

Bug 1598094 tracks further optimizations, should they be needed.

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

--HG--
extra : moz-landing-system : lando
2019-11-21 10:32:17 +00:00
Emilio Cobos Álvarez 74823e8b90 Bug 1559076 - Implement shadow part forwarding (minus invalidation). r=heycam
Some of the stuff, in particular inside GeckoBindings stuff should be
refactored to be less ugly and duplicate a bit less code, but the rest of the
code should be landable as is.

Some invalidation changes are already needed because we weren't matching with
the right shadow host during invalidation (which made existing ::part() tests
fail).

Pending invalidation work:

 * Making exportparts work right on the snapshots.
 * Invalidating parts from descendant hosts.

They're not very hard but I need to think how to best implement it:

 * Maybe get rid of ShadowRoot::mParts and just walk DOM descendants in the
   Shadow DOM.

 * Maybe implement a ElementHasExportPartsAttr much like HasPartAttr and use
   that to keep the list of elements.

 * Maybe invalidate :host and ::part() together in here[1]

 * Maybe something else.

Opinions?

[1]: https://searchfox.org/mozilla-central/rev/131338e5017bc0283d86fb73844407b9a2155c98/servo/components/style/invalidation/element/invalidator.rs#561

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

--HG--
extra : moz-landing-system : lando
2019-11-21 10:32:32 +00:00
Jan Horak 08e22cc986 Bug 1585918 Show only one remote content panel at a time; r=stransky
Items in overflow-widget which belongs to addons cannot have
the overflow-widget panel set as a popup parent because the
overflow-widget is replaced by them.

We also need to close the addon panel before we return back
to overflow-widget to avoid simillar problem.

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

--HG--
extra : moz-landing-system : lando
2019-11-21 10:17:45 +00:00
Jan Horak 241b5641e1 Bug 1597990 Do not use monitor offset in Wayland because we can't get absolute position ;r=stransky
The absolute position of the window under Wayland is unknown
and using monitor offset to adjust popups position shown
on content (like <select) is therefore broken on Wayland.

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

--HG--
extra : moz-landing-system : lando
2019-11-21 10:18:18 +00:00
octavian.negru 50ad45b6c1 Bug 1590035 - Provide browsertime unit test coverage in raptor.py r=perftest-reviewers,igoldan
Differential Revision: https://phabricator.services.mozilla.com/D52655

--HG--
extra : moz-landing-system : lando
2019-11-21 10:16:29 +00:00
Mirko Brodesser a0a4ca6055 Bug 1597968: `MOZ_ASSERT` `RangeBoundaryBase` doesn't retrieve offset of anonymous child. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D53959

--HG--
extra : moz-landing-system : lando
2019-11-20 20:42:55 +00:00
Gurzau Raul 51b11d26cd Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-11-21 12:04:33 +02:00
jeffin143 74bcc4abb7 Bug 1597979 : convert NS_STYLE_TEXT_ANCHOR_* to an enum class in nsStyleConsts.h r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D53956

--HG--
extra : moz-landing-system : lando
2019-11-21 08:48:19 +00:00
Narcis Beleuzu 581466eef9 Backed out changeset 34cf9c1d48c9 as per Aki`s req. a=backout 2019-11-21 01:45:05 +02:00
Brindusan Cristian 92d83fc37e Backed out changeset efb782988830 (bug 1596479) for wrench bustage (KeyError: 'region'). CLOSED TREE
--HG--
extra : source : a1338baeaa0ae3f6c392d7e799c12c823681c146
2019-11-21 00:45:18 +02:00
Alexandre Poirot 19058de285 Bug 1590401 - Refactor Front.onFront+onFrontDestroyed into Front.watchFronts. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D53881

--HG--
rename : devtools/server/tests/unit/test_protocol_onFront.js => devtools/server/tests/unit/test_protocol_watchFronts.js
extra : moz-landing-system : lando
2019-11-20 17:13:01 +00:00
Alexandre Poirot 384dbcaf86 Bug 1598007 - Fix exception when copying rules from the Changes panel. r=pbro
Differential Revision: https://phabricator.services.mozilla.com/D53987

--HG--
extra : moz-landing-system : lando
2019-11-21 08:41:54 +00:00
Matt Woodrow ecff1d58fe Bug 1597015 - Split DocumentChannelParent into two separate classes (DocumentLoadListener and DocumentChannelParent). r=mayhemer,jya
Currently DocumentChannelParent serves two fairly separate functions.

    It acts as a logic controller for a connecting load (ultimately on behalf of a CanonicalBrowsingContext), that creates a channel and once it gets a response, figures out the right thing to do with it (send to the originating process, send to a new process, handle as a download etc).

    It's the parent-side IPDL actor for an nsIChannel implementation that we hold in the docshell as a placeholder while the above happens. This is largely a backwards compatibility hack since docshell expects to have a channel when a load has been initiated (but in the future we could do loads more directly through BrowsingContext and rewrite docshell to understand waiting on that).

This patch splits this into two separate classes (and adds more documentation explaining exactly what each one does). It shouldn't affect any behaviour.

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

--HG--
rename : netwerk/ipc/DocumentChannelParent.cpp => netwerk/ipc/DocumentLoadListener.cpp
extra : moz-landing-system : lando
2019-11-20 03:29:25 +00:00
Edwin Takahashi 63414f3417 Bug 1563864 - add ubuntu18.04 dockerfile and enable codepath to specify image for use in linux testing r=jmaher
Changes:

Add Ubuntu 18.04 `dockerfile`, support files and `ubuntu1804-test-system-setup.sh` that slightly differs from `ubuntu1604-test-system-setup.sh` in package contents.

Add a temporary flag to `try fuzzy` selector, taskcluster decision and taskgraphs to enable selection of Ubuntu 18.04 docker image to run linux tests.

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

--HG--
extra : moz-landing-system : lando
2019-11-20 18:18:07 +00:00
Geoff Brown 212ace1cf9 Bug 1597797 - Increase test chunks for osx/debug mochitest-browser-chrome; r=jmaher
Avoid intermittent task time outs, as seen in bug 1589796.

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

--HG--
extra : moz-landing-system : lando
2019-11-20 18:02:56 +00:00