Commit Graph

634100 Commits

Author SHA1 Message Date
Botond Ballo
0ac724fa85 Bug 1459312 - Scroll layers that are fixed w.r.t. the RCD-RSF by the relative visual transform. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D17726

--HG--
extra : moz-landing-system : lando
2019-02-02 23:53:54 +00:00
Botond Ballo
408de98e10 Bug 1459312 - Have APZC expose the async transform of the visual viewport relative to the layout viewport. r=kats
For brevity, this is referred to as the "relative visual offset/transform"
in the code.

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

--HG--
extra : moz-landing-system : lando
2019-02-02 23:53:45 +00:00
Botond Ballo
67d86b81e7 Bug 1459312 - Expose IsAsyncZoomContainer() in LayerMetricsWrapper. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D17724

--HG--
extra : moz-landing-system : lando
2019-02-02 23:53:41 +00:00
Botond Ballo
6eceedb77d Bug 1459312 - Factor out a helper function from AlignFixedAndStickyLayers. r=kats
This helper will be reused for translating layers fixed to the RCD-RSF
with containerless scrolling.

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

--HG--
extra : moz-landing-system : lando
2019-02-02 23:53:31 +00:00
Botond Ballo
28e8903b9e Bug 1459312 - Have AlignFixedAndStickyLayers take the ClipPartsCache by reference rather than pointer. r=kats
This reflects the fact that it's no longer optional (the code path that
wouldn't pass one was removed with JPZC).

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

--HG--
extra : moz-landing-system : lando
2019-02-02 23:53:27 +00:00
Botond Ballo
7a0f6a05ca Bug 1459312 - Remove an outdated comment in TransformShadowTree(). r=kats
Differential Revision: https://phabricator.services.mozilla.com/D17720

--HG--
extra : moz-landing-system : lando
2019-02-02 23:53:23 +00:00
Botond Ballo
802ea1a4e8 Bug 1459312 - Make AsyncPanZoomController::GetCurrentAsyncViewportTransform() private. r=kats
It is an implementation detail of GetCurrentAsyncTransformForFixedAdjustment().

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

--HG--
extra : moz-landing-system : lando
2019-02-02 23:53:19 +00:00
Botond Ballo
6afc24b5fc Bug 1459312 - AsyncCompositionManager changes to apply the async zoom to the async zoom container layer if appropriate. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D13348

--HG--
extra : moz-landing-system : lando
2019-02-02 23:53:15 +00:00
Botond Ballo
3a60de260b Bug 1459312 - AsyncPanZoomController support for exposing the scroll and zoom portions of the async transform independently. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D17718

--HG--
extra : moz-landing-system : lando
2019-02-02 23:52:14 +00:00
Ricky Rosario
9f5268b75e Bug 1521629 - Port search() to UrlbarInput.jsm r=dao
MozReview-Commit-ID: 70RV8IdoAKc

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

--HG--
extra : moz-landing-system : lando
2019-02-02 16:33:57 +00:00
Andrei H
31f30275b3 Bug 1428708 - [mozdevice] Add support for Python 3 r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D17933

--HG--
extra : moz-landing-system : lando
2019-02-02 20:39:14 +00:00
Kartikaya Gupta
5778faf7aa Bug 1520715 - Allow a bit of fuzz on color-layer-1a. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D18487

--HG--
extra : moz-landing-system : lando
2019-02-02 15:56:54 +00:00
Kartikaya Gupta
ff2548e7d2 Bug 1520793 - Allow a bit of fuzz in clip-path-circle-021. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D18486

--HG--
extra : moz-landing-system : lando
2019-02-02 15:56:45 +00:00
Ciure Andrei
9c86f4019d Backed out 2 changesets (bug 1471496) for causing CycleCollectedJSRuntime.cpp perma failures CLOSED TREE
Backed out changeset 9658187a54fb (bug 1471496)
Backed out changeset 2ff333373fe4 (bug 1471496)
2019-02-02 20:44:08 +02:00
Jeff Muizelaar
8b79b7ce3e Bug 1524177. Accept a small amount of fuzz for clip-path-inset. r=dholbert
It seems like we intermittently get fuzz on the clip-path-inset tests.
It's better for us to accept that fuzz than intermittently fail.

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

--HG--
extra : moz-landing-system : lando
2019-01-31 23:40:13 +00:00
Mike de Boer
481ae95c00 Bug 1524593 - nsISearchService (aka nsIBrowserSearchService, previously) refactor to be mostly an asynchronous, in preparation of WebExtension engines. r=daleharvey
This is a rollup of all the patches that have landed on the cedar project branch:

891252fdd0
Bug 1492475 - Part 1: Migrate most, if not all nsSearchService consumers to use async APIs. r=florian

79b2eb2367
Bug 1492475 - Part 2: Move nsIBrowserSearchService.idl to toolkit/components/search/nsISearchService.idl and update references. r=florian

a947d3cdf0
Bug 1492475 - Part 3: The search service init() method should simply return a Promise. r=florian

c1e172dfac
Bug 1492475 - Part 4: Remove the synchronous initialization flow. r=florian

cd41189eac
Bug 1492475 - Part 5: Since async initialization of the search service now is implicit behavior, remove the distinctive verbiage used internally. r=florian

2ae7189dfa
Bug 1492475 - Part 6: Update the cache build task to work with an actual Promise and re-initialize only once at the same time - all to fix race conditions here. r=florian

c8ee92973f
Bug 1492475 - Part 7: Make the region fetch not block the init flow, to ensure it's as fast as possible. r=florian

c44e674e16
Bug 1492475 - Part 8: Introduce an init flag, which can only be used privately, that allows to explicitly skip waiting for the region check process to complete. r=florian

6c79eaf1d3
Bug 1492475 - Part 9: Update unit tests to stop using 'currentEngine', in favor of 'defaultEngine'. r=Standard8

21b3aa17ee
Bug 1492475 - Part 10: Update unit tests to be fully aware of the new, async signatures of the search service API and remove sync init flow tests. r=mkaply,florian

ce5ba69019
Bug 1492475 - Part 11: Repair incorrect usage of the `identifier` property of nsISearchEngine instances. r=florian

fd177a7994
Bug 1518543 - Fix up the Android (Fennec) nsISearchService shim to work with the new asynchronous API. r=florian

3653d8ee22
Bug 1523708 - Change the search service interaction in the show-heartbeat action to use the new async API. r=florian

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

--HG--
rename : netwerk/base/nsIBrowserSearchService.idl => toolkit/components/search/nsISearchService.idl
extra : moz-landing-system : lando
2019-02-02 11:27:21 +00:00
Boris Zbarsky
10ed8acc81 Bug 1471496 part 2. Change the way we do cross-compartment wrappers for Window and Location so they don't ever need to be recomputed. r=bholley
The end result we want is that on the web cross-compartment wrappers for
WindowProxy and Location are always CrossOriginObjectWrapper.  That needs to be true
for both cases that are different-origin (as now) and cases that are
same-origin, since they might become different-origin due to document.domain
changes but we don't want that to affect the wrappers involved.

On the web, all security checks are symmetric, so in WrapperFactory::Rewrap we
would have originSubsumesTarget == targetSubsumesOrigin in all web cases.

I claim that

  originSubsumesTarget == targetSubsumesOrigin &&
  (!targetSubsumesOrigin ||
   (!originCompartmentPrivate->wantXrays &&
    !targetCompartmentPrivate->wantXrays)) &&
  "object is a WindowProxy or Location"

is a necessary and sufficient condition for using CrossOriginObjectWrapper.

Comparing to our current code, if originSubsumesTarget and targetSubsumesOrigin
are both false, then for the WindowProxy and Location cases we currently end up
with the following arguments to SelectWrapper:

  securityWrapper: true
  xrayType: XrayForDOMObject
  waiveXrays: false

So SelectWrapper ends up returning CrossOriginObjectWrapper, which the new
condition keeps doing.

If originSubsumesTarget and targetSubsumesOrigin are both true, then there are
two cases.  If both compartments have wantXrays false (which is always the case
on the web), then we end up with the following arguments to SelectWrapper:

  securityWrapper: false
  xrayType: NotXray
  waiveXrays: false

and SelectWrapper returns CrossCompartmentWrapper.  We want to do
CrossOriginObjectWrapper instead, as explained above.

Finally, if originSubsumesTarget and targetSubsumesOrigin are both true but one
of the compartments has wantXrays set, then we get:

  securityWrapper: false
  xrayType: XrayForDOMObject
  waiveXrays: might be true or false

and then SelectWrapper might return a WaiveXrayWrapper or a PermissiveXrayDOM.
In this case we do _not_ want to start returning CrossOriginObjectWrapper, and
this is a non-web case anyway, since web compartments can't set wantXrays.

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

--HG--
extra : moz-landing-system : lando
2019-01-31 15:56:22 +00:00
Boris Zbarsky
2323f895b0 Bug 1471496 part 1. Fix IsPlatformObjectSameOrigin to do the right thing when we're doing first-party isolation but turning off its effects on scripted property access. r=bholley
Differential Revision: https://phabricator.services.mozilla.com/D18029

--HG--
extra : moz-landing-system : lando
2019-01-31 15:53:24 +00:00
Joel Maher
152f200326 Bug 1522111 - disable opt builds/tests when we have pgo builds/tests for integration branches. r=ahal
disable opt builds when pgo exists for autoland/inbound and adjust seta to run those opt jobs on pgo.

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

--HG--
extra : moz-landing-system : lando
2019-02-01 21:45:22 +00:00
Alexandre Poirot
66f0cbdfcf Bug 1465635 - Listen to toggle and close key short only for window host type. r=jdescottes
We were registering these key shortcut twice.
A first time from devtools-startup.js and another time from Toolbox.
Both shortcut listeners were called when the toolbox was running,
leading the toolbox to reopen while we were expecting it to be closed.

Depends on D17610

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

--HG--
extra : moz-landing-system : lando
2019-02-01 14:17:05 +00:00
Alexandre Poirot
df5faf8f9f Bug 1465635 - Ensure removing BrowsingContextTarget front events when destroying it. r=jdescottes
When destroying the target, Target.destroy (for local tabs) only calls DebuggerClient.close,
which isn't going to call `detach`. But we still do need to unregister
the tabNavigated/frameUpdate listener to prevent unecessary event from firing.

Depends on D17609

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

--HG--
extra : moz-landing-system : lando
2019-02-02 11:24:04 +00:00
Alexandre Poirot
f2180fa200 Bug 1465635 - Prevent netmonitor from destroying all "close" event listeners. r=jdescottes
Depends on D16874

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

--HG--
extra : moz-landing-system : lando
2019-02-02 11:24:12 +00:00
Alexandre Poirot
ef1c99b06e Bug 1465635 - Remove Target.activeTab property. r=yulia
Depends on D15831

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

--HG--
extra : moz-landing-system : lando
2019-02-02 11:24:24 +00:00
Alexandre Poirot
dddc73fb49 Bug 1465635 - Merge all target fronts with Target class. r=yulia,jdescottes
This patch makes it so that all target fronts inherits from a Target class mixin.
We are using a mixin as fronts should inherit from a custom Front class,
which is augmented with its own RDP request and events defined in its spec.
(This is done via FrontClassWithSpec(spec))

Depends on D15830

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

--HG--
extra : moz-landing-system : lando
2019-02-02 11:24:32 +00:00
Alexandre Poirot
cacb7734d7 Bug 1465635 - Use Target.title to fetch target's title instead of using its form. r=yulia
Depends on D15828

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

--HG--
extra : moz-landing-system : lando
2019-02-02 11:24:39 +00:00
Alexandre Poirot
c146bdb4f7 Bug 1465635 - Always consider that Target.activeTab is set. r=yulia
Depends on D15826

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

--HG--
extra : moz-landing-system : lando
2019-02-02 11:24:41 +00:00
Alexandre Poirot
4f1cdc1898 Bug 1465635 - Convert canvas front instantiation to Target.getFront. r=yulia
Depends on D15825

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

--HG--
extra : moz-landing-system : lando
2019-02-02 11:24:49 +00:00
Alexandre Poirot
6daaf203a4 Bug 1465635 - Convert browser_two_tabs.js to async. r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D15825

--HG--
extra : moz-landing-system : lando
2019-02-02 11:24:56 +00:00
Jan de Mooij
6ddcffaa4e Bug 1524565 - Clone ScriptSourceObject just once when cloning a script with inner functions. r=tcampbell
Creating too many SSOs can apparently slow down the debugger and it's just
wasteful.

This patch passes the SSO down to the cloning functions. One nice side-effect is
that the self-hosting SSO code now lives in SelfHosting.cpp instead of JSScript.cpp

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

--HG--
extra : moz-landing-system : lando
2019-02-02 10:42:27 +00:00
jgilbert@mozilla.com
a5ef1cc2e1 Bug 1372177 - ArrayBufferView error enum depends on func. r=lsalzman
MozReview-Commit-ID: 34X7yTEE3Ia

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

--HG--
extra : moz-landing-system : lando
2019-02-02 10:04:43 +00:00
jgilbert@mozilla.com
87e485d6b5 Bug 1372193 - Format/types invalid for DOM uploads are INVALID_VALUE. r=lsalzman
MozReview-Commit-ID: IdSHKBdyqxA

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

--HG--
extra : moz-landing-system : lando
2019-02-02 10:02:23 +00:00
jgilbert@mozilla.com
667842907d Bug 1524748 - SNORM format enums are never valid for CopyTexImage. r=lsalzman
MozReview-Commit-ID: 6EDpI5hFwpu

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

--HG--
extra : moz-landing-system : lando
2019-02-02 08:37:22 +00:00
Jean-Yves Avenard
864ca81cfc Bug 1524500 - P2. Simplify logic to break loop early. r=bryce
The logic was redundant with the next step that will already remove all until the next keyframe.

Depends on D18321

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

--HG--
extra : moz-landing-system : lando
2019-02-01 17:45:38 +00:00
Jean-Yves Avenard
8701ff5245 Bug 1524500 - P1. Remove partial frames when the starting time falls within the removal interval. r=bryce
Per spec:
https://w3c.github.io/media-source/#sourcebuffer-coded-frame-removal
Step 3 of the Coded Frame Removal Interval:
"Remove all media data, from this track buffer, that contain starting timestamps greater than or equal to start and less than the remove end timestamp. "

So to decide if a frame should be removed from a track buffer, its start time is the only information to be used.

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

--HG--
extra : moz-landing-system : lando
2019-02-01 22:58:08 +00:00
Daniel Varga
069748752e Merge mozila-central to autoland. a=merge 2019-02-02 11:48:25 +02:00
Daniel Varga
69d3c6c61d Merge mozilla-inbound to mozilla-central. a=merge
--HG--
rename : toolkit/components/passwordmgr/test/test_xhr.html => toolkit/components/passwordmgr/test/mochitest/test_xhr.html
2019-02-02 11:44:15 +02:00
Dzmitry Malyshau
8c617a84d2 Bug 1523347 - Plane-split update to 0.13.4 r=kats
new version includes necessary quality fixes for plane-splitting

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

--HG--
extra : moz-landing-system : lando
2019-02-02 04:11:25 +00:00
Boris Zbarsky
44e2b07ad2 Bug 1521907 part 7. Start using CheckedUnwrapStatic/Dynamic in JS debugger. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D17889

--HG--
extra : moz-landing-system : lando
2019-02-02 03:26:24 +00:00
Boris Zbarsky
0ba80a332b Bug 1521907 part 6. Start using CheckedUnwrapStatic/Dynamic in toolkit. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D17886

--HG--
extra : moz-landing-system : lando
2019-02-02 03:25:07 +00:00
Boris Zbarsky
d9fc29464f Bug 1521907 part 5. Start using CheckedUnwrapStatic/Dynamic in XPConnect. r=peterv
I am not a huge fan of the UnwrapReflectorToISupports setup here.  Maybe we
should introduce two differently-named methods that make it somewhat clear what
the limitations of not taking a JSContext are?  I couldn't think of sane
naming...

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

--HG--
extra : moz-landing-system : lando
2019-02-02 03:24:45 +00:00
Boris Zbarsky
12266da44b Bug 1521907 part 4. Start using CheckedUnwrapStatic/Dynamic in non-binding DOM code. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D17884

--HG--
extra : moz-landing-system : lando
2019-02-02 03:24:22 +00:00
Boris Zbarsky
7e5a37a024 Bug 1521907 part 3. Start using CheckedUnwrapStatic/Dynamic in bindings. r=peterv
The basic idea for the changes around UnwrapObjectInternal and its callers
(UnwrapObject, UNWRAP_OBJECT, etc) is to add a parameter to the guts of the
object-unwrapping code in bindings which can be either a JSContext* or nullptr
(statically typed).  Then we test which type it is and do either a
CheckedUnwrapDynamic or CheckedUnwrapStatic.  Since the type is known at
compile time, there is no actual runtime check; the compiler just emits a call
to the right thing directly (verified by examining the assembly output on
Linux).

The rest of the changes are mostly propagating through that template parameter,
adding static asserts to make sure people don't accidentally pass nullptr while
trying to unwrap to a type that might be a WindowProxy or Location, etc.

There are also some changes to places that were calling CheckedUnwrap directly
to use either the static or dynamic version, as needed.

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

--HG--
extra : moz-landing-system : lando
2019-02-02 03:23:49 +00:00
Boris Zbarsky
e5fac88563 Bug 1521907 part 2. Add dynamic CheckedUnwrap support to CrossOriginObjectWrapper. r=peterv,sfink
This will allow us to correctly handle CheckedUnwrapDynamic on wrappers around
WindowProxy and Location.

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

--HG--
extra : moz-landing-system : lando
2019-02-02 03:23:16 +00:00
Boris Zbarsky
1fa4aa00d2 Bug 1521907 part 1. Add a version of CheckedUnwrap that can do a dynamic security check. r=jandem,sfink
We're going to need this because we will have multiple Realms in the same
compartment which want different CheckedUnwrap behavior in some cases.  So we
need to be able to check which Realm we're in.

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

--HG--
extra : moz-landing-system : lando
2019-02-02 03:22:29 +00:00
Kris Maglione
48890738b7 Bug 1523594: Fix WPT CCOV import. r=bustage 2019-02-01 18:20:58 -08:00
Bogdan Tara
8c569d6761 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2019-02-02 01:39:31 +02:00
Bogdan Tara
add2612cc6 Backed out 8 changesets (bug 1522837) for buffer-full-inspect-buffer-during-callback.html failures a=backout
Backed out changeset 2bd187c04fd9 (bug 1522837)
Backed out changeset 47c7f936579b (bug 1522837)
Backed out changeset 8fb361192757 (bug 1522837)
Backed out changeset 877d383189f4 (bug 1522837)
Backed out changeset 814aa7e78267 (bug 1522837)
Backed out changeset 2d7be3f59c9d (bug 1522837)
Backed out changeset 893db1319f23 (bug 1522837)
Backed out changeset 3eeb76f0f5d8 (bug 1522837)
2019-02-02 01:34:58 +02:00
Kershaw Chang
3f231d0bbe Bug 1500710 - Add default MIME type definition for .wasm as 'application/wasm' r=bzbarsky
Add {"application/wasm", "wasm"} mapping in extraMimeEntries

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

--HG--
extra : moz-landing-system : lando
2019-02-01 22:16:17 +00:00
Masayuki Nakano
f61ec19082 Bug 1524214 - Grab caching capturing content with local variable r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D18209

--HG--
extra : moz-landing-system : lando
2019-02-01 20:44:28 +00:00
Gurzau Raul
8200b1ffe6 Backed out changeset b7597732606e (bug 1501623)for failing at browser_autocomplete_edit_completed.js on a CLOSED TREE. 2019-02-02 02:43:33 +02:00