Commit Graph

653844 Commits

Author SHA1 Message Date
Tooru Fujisawa
755998f123 Bug 1545540 - Part 1: Use BytecodeSection.lastTarget_=-1 to mark last opcode is not jump target. r=jorendorff
Previously the initial value of BytecodeSection.lastTarget_ is chosen to make
the following condition true:
  lastTargetOffset() + ptrdiff_t(JSOP_JUMPTARGET_LENGTH) == -1

BytecodeOffset class introcuced in part 3 requires the offset value to be
either -1 (invalid) or non-negative, and that rule conflicts with above.

Changed the initial value of BytecodeSection.lastTarget_ to -1 and added
the check for that condition in BytecodeSection::lastOpcodeIsJumpTarget,
so that we don't use negative value in BytecodeOffset.

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

--HG--
extra : moz-landing-system : lando
2019-05-30 20:24:01 +00:00
Tooru Fujisawa
81744b5dd7 Bug 1545540 - Part 0: Add comments for include in some frontend files. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D32399

--HG--
extra : moz-landing-system : lando
2019-05-30 20:23:41 +00:00
Connor Brewster
e68c4f61a8 Bug 1536240 - Add debug option to wrench to output specified shader source r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D33088

--HG--
extra : moz-landing-system : lando
2019-05-30 19:28:10 +00:00
Noemi Erli
02b7a9faeb Backed out 7 changesets (bug 1551735) for build bustages in RenderThread.cpp CLOSED TREE
Backed out changeset aa165d8c181d (bug 1551735)
Backed out changeset e7b857609786 (bug 1551735)
Backed out changeset f2a2396a0d4a (bug 1551735)
Backed out changeset 5891d00fca85 (bug 1551735)
Backed out changeset 2e6ca6d6c527 (bug 1551735)
Backed out changeset 3b2078f90715 (bug 1551735)
Backed out changeset a516d20303e6 (bug 1551735)
2019-05-30 23:10:21 +03:00
Jason Orendorff
176a7f69b0 Bug 1536851 - Part 2: JS_NewObjectForConstructor should fail (not crash) if not constructing. r=jwalden
Differential Revision: https://phabricator.services.mozilla.com/D32536

--HG--
extra : moz-landing-system : lando
2019-05-30 19:05:23 +00:00
Jason Orendorff
116208713f Bug 1536851 - Part 1: Change JS_NewObjectForConstructor to respect new.target, like non-derived JS classes. r=jwalden
Classes defined in JS using the `class` keyword, without using `extends`,
implicitly construct a new `this` object before running the body of the
constructor, and they use `new.target.prototype` as the new object's
[[Prototype]]. This is one of the ways that JS classes support subclassing.
When the subclass calls the base class constructor, the subclass's `.prototype`
is used.

Until now, we did not do this for classes defined in C++ using
JS_NewObjectForConstructor. But there's no reason it shouldn't work the same
way. Changing this is a nicety for embedders -- there's nothing using it in
Firefox or internally right now, except for testing.

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

--HG--
extra : moz-landing-system : lando
2019-05-30 19:05:09 +00:00
Jason Orendorff
55b527c6ac Bug 1546145 - Enable the await fix by default. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D31727

--HG--
extra : moz-landing-system : lando
2019-05-30 19:56:34 +00:00
Noemi Erli
e28515ee12 Backed out changeset 9137795c6779 (bug 1544470) for linting failure in raptor.py CLOSED TREE 2019-05-30 22:56:54 +03:00
Barret Rennie
969a6a61ea Bug 1551735 - Clearly document the case of the RendererOGL receiving a new WebRenderCompositionRecorder while it has one r=kats
Differential Revision: https://phabricator.services.mozilla.com/D32356

--HG--
extra : moz-landing-system : lando
2019-05-29 21:53:44 +00:00
Barret Rennie
69f79b959b Bug 1551735 - Record compositions in Web Render r=kats
Now that we have a suitable composition recorder infrastructure, it is just a
matter of plumbing the `WebRenderCompositionRecorder` from the
`CompositorBridgeParent` to the `RenderThread` to start recording frames.

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

--HG--
extra : moz-landing-system : lando
2019-05-29 23:05:54 +00:00
Barret Rennie
75ce1caae2 Bug 1551735 - Add a thread-safe composition recorder for WebRender r=kvark,kats
Since WebRender does its rendering on a separate thread from the compositor
thread, we need a composition recorder that can be shared between threads.

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

--HG--
extra : moz-landing-system : lando
2019-05-30 13:06:43 +00:00
Barret Rennie
49e2a2721c Bug 1551735 - Expose bindings to the Renderer's composition recorder structures r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D32233

--HG--
extra : moz-landing-system : lando
2019-05-29 21:52:57 +00:00
Barret Rennie
b161b2b08f Bug 1551735 - Add a mode to the AsyncScreenshotGrabber to enable composition recording r=kvark
The AsyncScreenshotGrabber now can operate in two modes:

* `ProfilerScreenshots`, which does asynchronous scaling of the captured frames
  for inclusion in profiles by the Gecko Profiler; and
* `CompositionRecorder`, which does not do any scaling and is used for visual
  metrics computations.

The latter mode is exposed by on the `Renderer` via the `record_frame`,
`map_recorded_frame`, and `release_composition_recorder_structures` methods.

A different handle type (`RecordedFrameHandle`) is returned and consumed by
these functions, but they translate between `RecordedFrameHandle` and
`AsyncScreenshotHandle` when communicating with the underlying
`AsyncScreenshotGrabber`.

I considered making the `AsyncScreenshotGrabber` generic over its handle type,
but the extra cost of monomorphization just to change the handle type did not
seem worth it.

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

--HG--
extra : moz-landing-system : lando
2019-05-29 21:52:44 +00:00
Barret Rennie
4ca216e100 Bug 1551735 - Split out screenshot grabbing infrasturcture into a new module r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D32523

--HG--
extra : moz-landing-system : lando
2019-05-29 21:52:25 +00:00
Barret Rennie
00a6425f1f Bug 1551735 - Ref count and document CompositionRecorder r=kats
The CompositionRecorder was being stored as a UniquePtr on the
CompositorBridgeParent, but was then passed to and stored on the LayerManger as
a raw pointer. This has been updated to use a RefPtr.

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

--HG--
extra : moz-landing-system : lando
2019-05-29 21:52:12 +00:00
Boris Chiou
c0b92f7a6f Bug 1555030 - Add NS_FRAME_SVG_LAYOUT into SVGViewFrame and nsSVGStopFrame. r=dholbert,longsonr
To avoid hitting the assertion for ResizeObserver, which calls GetBBox()
for all SVG elements.

Note:
If the target has SVG layout and its primary frame cannot be queries as
nsSVGDisplayableFrame, we return a default gfxRect(). And always
returning a default gfxRect() on <view> or <stop> element makes ResizeObserver
doesn't report it (because it is always not active). This behavior
is the same as what Google Chrome has. (i.e. No event is fired.)

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

--HG--
extra : moz-landing-system : lando
2019-05-29 23:50:55 +00:00
Chris Hartjes
d03d62e5f9 Bug 1544470 - Added in code that can be used to take a snapshot of CPU usage on Android devices; r=rwood
Differential Revision: https://phabricator.services.mozilla.com/D27954

--HG--
extra : moz-landing-system : lando
2019-05-30 19:33:08 +00:00
Noemi Erli
1927c42ef1 Backed out changeset cb8c60790fd9 (bug 1536240) for causing build bustages CLOSED TREE 2019-05-30 21:55:29 +03:00
Connor Brewster
6dd4341bb0 Bug 1536240 - Add debug option to wrench to output specified shader source r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D33088

--HG--
extra : moz-landing-system : lando
2019-05-30 16:18:42 +00:00
Robert Strong
5e1a5a5625 Bug 1555070 - Remove unused _showUpdateNotification function. r=mossop
This code was added over 9 years ago per a request from Firefox UX but it has never been used.
This does not affect the What's New page.

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

--HG--
extra : moz-landing-system : lando
2019-05-30 18:22:00 +00:00
Kris Maglione
44386e0e66 Bug 1555427: Skip abort functions when determining crash signature. r=gbrown
mozalloc_abort and related abort functions are the top frame for many
different, unrelated crashes because they happen to be the standard way to
abort execution. That makes it difficult to properly classify and deal with
intermittent failures.

This patch changes our crash handling behavior so that we try to skip any
frames at the top of the stack that are in generic abort functions, and use
the topmost frame which is actually relevant to the crash reason instead.

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

--HG--
extra : moz-landing-system : lando
2019-05-30 17:56:25 +00:00
Jason Orendorff
48a6f6d0bd Bug 1549768 - Wrap reason objects before creating the compositeReason array. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D32048

--HG--
extra : moz-landing-system : lando
2019-05-30 18:06:28 +00:00
Jason Orendorff
3961c47023 Bug 1552632 - Resolve globalThis when querying all properties of the global object. r=jandem
globalThis was already handled specially in JS_ResolveStandardClass,
JS_MayResolveStandardClass, and various other places, but not in
JS_NewEnumerateStandardClasses.

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

--HG--
extra : moz-landing-system : lando
2019-05-30 17:55:14 +00:00
Dave Townsend
cf20f54068 Bug 1553781: When the remote service finds an instance to remote to it doesn't clean up the startup lock. r=glandium
This fixes the issue in a few redundant ways:
* nsProfileLock is made to properly clean itself up when destroyed.
* nsRemoteService makes sure the unlock when destroyed.
* nsAppRunner unlocks when a remote client has been found.

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

--HG--
extra : moz-landing-system : lando
2019-05-30 17:53:36 +00:00
Alastor Wu
8a3753f034 Bug 1555091 - enable wpt 'kind.html'. r=jya
This test only contains simple API behavior test, which is not possible to be affected by web-render.

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

--HG--
extra : moz-landing-system : lando
2019-05-30 07:39:22 +00:00
Geoff Brown
92114a65b1 Bug 1555458 - Stop android-hw debug jittest/jsreftest on integration branches; r=egao
Incremental effort to improve android-hw device availability: Stop running android-hw
debug jsreftest and jittest on integration branches.
Also, remove the option for android-hw opt jittest on try. opt is a nice alternative
to pgo on try in general, but the risk of accidental (unnecessary) inclusion in
try pushes makes this a luxury we cannot afford on android-hw.

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

--HG--
extra : moz-landing-system : lando
2019-05-30 17:29:24 +00:00
Boris Zbarsky
7f4c22772f Bug 1553018 part 6. Allow [Pref] annotations on dictionary members. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D32947

--HG--
extra : moz-landing-system : lando
2019-05-30 17:23:06 +00:00
Boris Zbarsky
a4f8e9b452 Bug 1553018 part 5. Remove now-unused conditionSetup bits in getConditionList. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D32946

--HG--
extra : moz-landing-system : lando
2019-05-30 17:22:45 +00:00
Boris Zbarsky
561e744e8c Bug 1553018 part 4. Start using StaticPrefs for Pref visibility annotations on interface objects. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D32945

--HG--
extra : moz-landing-system : lando
2019-05-30 17:22:32 +00:00
Boris Zbarsky
794039bf74 Bug 1553018 part 3. Add various preferences bindings use in Pref annotations on interfaces to StaticPrefs. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D32944

--HG--
extra : moz-landing-system : lando
2019-05-30 17:23:04 +00:00
Boris Zbarsky
d2959ecb98 Bug 1553018 part 2. Make various gfx preferences bindings use in Pref annotations on interfaces follow the StaticPrefs naming convention for getters. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D32943

--HG--
extra : moz-landing-system : lando
2019-05-30 17:21:57 +00:00
Boris Zbarsky
46934887af Bug 1553018 part 1. Add various media preferences bindings use in Pref annotations on interfaces to StaticPrefs. r=jya
The renaming of MediaWebspeechRecognitionEnable to
media_webspeech_recognition_enable is to follow the StaticPrefs convention,
because bindings are going to assume that convention.

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

--HG--
extra : moz-landing-system : lando
2019-05-30 17:21:39 +00:00
Steve Fink
98f7897275 Bug 1555199 - Use finishGC to finish a GC instead of looping r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D32927

--HG--
extra : moz-landing-system : lando
2019-05-30 00:07:15 +00:00
Jared Wein
41bf2e593f Bug 1550109 - Add tests for required fields of the login-item. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D32902

--HG--
extra : moz-landing-system : lando
2019-05-30 17:04:36 +00:00
Jared Wein
2c2c7941b2 Bug 1550109 - Require the origin and password when creating a new login. r=MattN,Pike
Differential Revision: https://phabricator.services.mozilla.com/D32094

--HG--
extra : moz-landing-system : lando
2019-05-30 17:04:36 +00:00
Jared Wein
e14ebf65fc Bug 1550109 - Add support for required modal-input values. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D32093

--HG--
extra : moz-landing-system : lando
2019-05-30 17:04:34 +00:00
Jared Wein
572bacc19e Bug 1550109 - Add default styling for input[type=url] to common.inc.css. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D32092

--HG--
extra : moz-landing-system : lando
2019-05-30 17:04:26 +00:00
Ed Lee
bd822928e5 Bug 1555507 - Add modal escaping, simple prerendering and bug fixes to Activity Stream r=k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D33089

--HG--
extra : moz-landing-system : lando
2019-05-30 15:04:19 +00:00
Boris Zbarsky
cc371c6881 Bug 1485842. Fix pref handling in the wpt harness to deal with prefs that aren't set already. r=jgraham,karlt
Differential Revision: https://phabricator.services.mozilla.com/D33085

--HG--
extra : moz-landing-system : lando
2019-05-30 08:38:18 +00:00
Jared Wein
86232c538a Bug 1549810 - Move all login-list-item interactions to render() so the filter will always be applied consistently. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D33036

--HG--
extra : moz-landing-system : lando
2019-05-30 16:26:11 +00:00
Jared Wein
bc42d7d236 Bug 1549810 - Use the search filter when updating the login list. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D33035

--HG--
extra : moz-landing-system : lando
2019-05-30 16:26:02 +00:00
Jared Wein
3331a6fc48 Bug 1549810 - Initialize the value of the filter to the query parameter when set. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D33034

--HG--
extra : moz-landing-system : lando
2019-05-30 16:26:03 +00:00
Jared Wein
f6226ec405 Bug 1549810 - Tests for filtering logins based on page query parameter. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D33033

--HG--
extra : moz-landing-system : lando
2019-05-30 16:25:50 +00:00
Alexander Surkov
33b1abfc3f Bug 1512432 - convert richlistitem binding to Custom Element, r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D32474

--HG--
extra : moz-landing-system : lando
2019-05-30 14:12:47 +00:00
Ehsan Akhgari
6d0b6ca4fc Bug 1555539 - Add a test for the behaviour of SharedWorker under dynamic FPI; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D33103

--HG--
extra : moz-landing-system : lando
2019-05-30 12:09:40 +00:00
Nick Alexander
ac0b60576d Bug 1522581 - Publish GeckoView multi-architecture fat AAR Nightly. r=jlorenzo
Differential Revision: https://phabricator.services.mozilla.com/D15774

--HG--
extra : moz-landing-system : lando
2019-05-30 15:22:41 +00:00
Nick Alexander
aef9fc1900 Bug 1508976 - Post: Include all targets in about:buildconfig in GeckoView fat AAR. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D15773

--HG--
extra : moz-landing-system : lando
2019-05-30 15:22:28 +00:00
Nick Alexander
0886f39ee6 Bug 1508976 - Post: Don't include architecture in multi-architecture GeckoView artifactId. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D15772

--HG--
extra : moz-landing-system : lando
2019-05-30 15:22:19 +00:00
Nick Alexander
5893476bdb Bug 1508976 - Produce a multi-architecture GeckoView "fat AAR". r=glandium
This follows the model set down for EME artifacts:

- a new tier is added that uses a new Python build action to fetch and
  artifacts
- the action unpacks the fetched artifacts and moves specific inputs
  into places expected by the build and packager
- in automation, MOZ_ARTIFACT_TASK* is used to ensure the artifacts
  come from the correct tasks

In this case, the artifact fetching is done entirely in a new Python
build action that internally uses `mach artifact install --job ...`.
The action also verifies that the fetched artifacts are compatible and
that we're not assembling a fat AAR that is nonsensical.  The specific
inputs are not used in the Fennec APK that is produced; they're only
used in the GeckoView AAR that is produced.

The artifact fetching itself required tweaking to fetch only
`target.maven.zip` artifacts and to not unpack them.

The specific inputs used are the native libraries (libs/$ARCH/*.so)
and the architecture-specific preference files ($ARCH/greprefs.js and
defaults/pref/$ARCH/geckoview-prefs.js).  None of these inputs are
impacted by l10n.

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

--HG--
extra : moz-landing-system : lando
2019-05-30 15:22:09 +00:00
Nick Alexander
b3894e6a12 Bug 1508976 - Pre: Add --maven-zip and --no-process to mach artifacts install. r=glandium
This allows to use the existing artifacts VCS-based crawling to
download the "raw" target.maven.zip from Android jobs and not process
it further.  It's just put in a specific directory, ready for use.
This isn't a big deal in automation, where all URLs are known, but
it's very useful when building locally and the VCS and the pushlog
must be consulted to determine task URLs.

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

--HG--
extra : moz-landing-system : lando
2019-05-30 15:21:55 +00:00