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

677087 Коммитов

Автор SHA1 Сообщение Дата
sotaro 16784c5201 Bug 1573710 - Trigger composite after SetParent() r=Gankro
The patch permits to resize compositor window's size after ::SetParent() call to prevent a conflict between ::SetParent() and ::SetWindowPos(). Then it triggers a composite after SetParent() call to resize compositor window correctly.

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

--HG--
extra : moz-landing-system : lando
2019-10-28 21:33:40 +00:00
Oana Pop Rus 9df2ccc256 Backed out changeset 84d18816918c (bug 1570466) for bc perma failures in browser_protections_report_ui.js on a CLOSED TREE 2019-10-29 06:22:45 +02:00
Erica Wright f6e9fb7d0b Bug 1570466 - Enhanced Tracking Protection card hides content when some/all protections are off in Custom r=fluent-reviewers,johannh,flod
Differential Revision: https://phabricator.services.mozilla.com/D44713

--HG--
extra : moz-landing-system : lando
2019-10-29 03:26:10 +00:00
Ting-Yu Lin 914a980331 Bug 1588025 - Change an argument to nsContainerFrame* for ConstructAnonymousContentForCanvas. r=jfkthame
The only caller SetRootElementFrameAndConstructCanvasAnonContent()
already passes nsContainerFrame* to aFrame.

A minor cleanup discovered while working on this bug.

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

--HG--
extra : moz-landing-system : lando
2019-10-28 20:40:30 +00:00
Ting-Yu Lin 7fd6d04f2b Bug 1588025 - Make the custom content container a font inflation root. r=emilio
font-inflation-1e.html is adapted from font-inflation-1a.html with the
writing-mode set on <html> instead of <body>. It can trigger the
assertion "current writing mode should match that of our flow root" in
nsFontInflationData::FindFontInflationDataFor().

The root cause is: nsCanvasFrame can generate the position:absolute
custom content container to contain elements like AccessibleCaret. When
the container is constructed, the container's writing-mode is always
horizontal-rl, which is getting from nsCanvasFrame that uses
ViewportFrame's style.

If <html> has a vertical writing-mode, custom content container's used
mWritingMode becomes orthogonal to ViewportFrame, because <html>'s used
mWritingMode is propagated all the way up to ViewportFrame.

This patch solves the above issue by making the custom content container
a font inflation root, so FindFontInflationDataFor() stops at it instead
of finding all the way up to the ViewportFrame.

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

--HG--
extra : moz-landing-system : lando
2019-10-28 20:42:06 +00:00
Glenn Watson 1a277253b9 Bug 1591534 - Ensure native surfaces are destroyed on renderer deinit. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D50775

--HG--
extra : moz-landing-system : lando
2019-10-29 00:32:50 +00:00
Ehsan Akhgari a8a01884db Bug 1591803 - Part 2: Rename nsIPermissionManager.enumerator to all and turn it into an Array; r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D50753

--HG--
extra : moz-landing-system : lando
2019-10-29 01:56:25 +00:00
Ehsan Akhgari f69aaf72a7 Bug 1591803 - Part 1: Remove the dead code in NotificationTelemetryService; r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D50752

--HG--
extra : moz-landing-system : lando
2019-10-29 01:56:23 +00:00
Glenn Watson 7f20e257e6 Bug 1591524 - Clean up native compositor surfaces that are not retained. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D50773

--HG--
extra : moz-landing-system : lando
2019-10-29 00:32:20 +00:00
Arthur Iakab 9c93bb3a7a Backed out 2 changesets (bug 1591803) for causing build bustages on XULAlerts.cpp CLOSED TREE
Backed out changeset 7eff50262110 (bug 1591803)
Backed out changeset c0b6f37d24d2 (bug 1591803)
2019-10-29 03:37:07 +02:00
Ehsan Akhgari 214c8d96df Bug 1590922 follow-up: the parts that didn't land in the first landing
Differential Revision: https://phabricator.services.mozilla.com/D50889

--HG--
extra : moz-landing-system : lando
2019-10-29 01:12:28 +00:00
Ehsan Akhgari 8c1d9bf15d Bug 1591803 - Part 2: Rename nsIPermissionManager.enumerator to all and turn it into an Array; r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D50753

--HG--
extra : moz-landing-system : lando
2019-10-28 20:26:21 +00:00
Ehsan Akhgari 6b1d1d6821 Bug 1591803 - Part 1: Remove the dead code in NotificationTelemetryService; r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D50752

--HG--
extra : moz-landing-system : lando
2019-10-28 20:26:23 +00:00
Ehsan Akhgari 05b288d47f Bug 1591746 - Make nsIPermissionManager.getAllForPrincipal() return an Array<> instead of an XPCOM enumerator; r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D50717

--HG--
extra : moz-landing-system : lando
2019-10-29 01:13:57 +00:00
Arthur Iakab ea34f56947 Backed out changeset 8c2f5b82f33a (bug 1573753) for causing browser chrome perma failure. CLOSED TREE 2019-10-29 03:12:18 +02:00
Arthur Iakab acebcd6ca5 Backed out 2 changesets (bug 1590249) for causing a spike in webgl crashes. CLOSED TREE
Backed out changeset fee677cef072 (bug 1590249)
Backed out changeset a132b59ed504 (bug 1590249)
2019-10-29 03:04:11 +02:00
Daosheng Mu e8e8cac6e0 Bug 1565268 - Part 2: Removing mDisplayName/Id from VRDisplay. r=kip
We can remove mDisplayName/Id and just use VRDisplayInfo to get these two values.

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

--HG--
extra : moz-landing-system : lando
2019-10-29 00:42:52 +00:00
Daosheng Mu 21480b57c1 Bug 1565268 - Recovering VRDisplay status after VRService is shutdown. r=kip,jgilbert
When JS is paused, VRService will automatically shutdown because the timer is not updated,
we used to create a new VRDisplay to JS. However, the page is still using the older VRDisplay,
so it can't get the newest VRDisplayInfo status. We should exit presentation and
apply the VRDisplayInfo status to the original VRDisplay instead of creating new one.

Besides, we also need to release the VR screen buffer after exiting the immersive mode to avoid eglMakeCurrent error.

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

--HG--
extra : moz-landing-system : lando
2019-10-29 00:35:35 +00:00
Jason Laster ddef712d8f Bug 1580165 - fix selected node for console; r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D50126

--HG--
extra : moz-landing-system : lando
2019-10-29 00:36:23 +00:00
Logan Smyth a57c1f48b0 Bug 1570178 - Part 5: Remove reference to 'live' when checking for hooks. r=jimb
This isn't checking 'liveness' anymore, and we don't need it to, so dropping
that part from the name of the function.

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

--HG--
extra : moz-landing-system : lando
2019-10-28 07:12:59 +00:00
Logan Smyth d9f546cf87 Bug 1570178 - Part 4: Support setting onPop when the frame is not live. r=jimb
Since we're now allowing onStep when not live, it makes sense to do the same
for onPop, and since it does not have any implementation details preventing
setting it while the frame is dead, we might as well.

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

--HG--
extra : moz-landing-system : lando
2019-10-28 08:27:54 +00:00
Logan Smyth 5eb14d59ba Bug 1570178 - Part 3: Support setting onStep when the frame is not live. r=jimb
We want to be able to set onStep when generators are suspended, and since that
already requires changes, it is easy to expand that and allow setting onStep
even after a frame is entirely dead. This simplifies the implementation,
and better matches user expectations around object properties not throwing
or vanishing due to actions outside their control.

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

--HG--
extra : moz-landing-system : lando
2019-10-28 05:53:13 +00:00
Logan Smyth dd33864eb6 Bug 1570178 - Part 2: Stop using the presence of onStep as a flag for stepper increment. r=jimb
Since we want to start allowing onStep to persist even after the frame's
internal state has been cleared, we cannot use the presence on onStep to
indicate this flag anymore.

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

--HG--
extra : moz-landing-system : lando
2019-10-29 00:28:12 +00:00
Logan Smyth 93ba8835c8 Bug 1570178 - Part 1: Remove failure possibility from decrementStepperCount. r=jimb
DebugScript::decrementStepperCount() cannot fail and
DebugState::decrementStepperCount() cannot either. Making this clearer allows
us to not seeming like we are silently ignoring the possibility of a 'false'
return value in 'maybeDecrementFrameScriptStepperCount()' since we don't
currently check the return value in there.

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

--HG--
extra : moz-landing-system : lando
2019-10-28 20:13:02 +00:00
Dzmitry Malyshau 2db3c22a35 Bug 1570736 - Blocklist WR swizzling on HD3000 r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D50813

--HG--
extra : moz-landing-system : lando
2019-10-28 21:38:11 +00:00
Boris Zbarsky d36e5a4ea5 Bug 1214364 part 4. Only output full-featured Init methods for dictionaries that need them. r=peterv
Dictionaries that we never initialize with JS values don't need a full-featured
Init() method.  Instead, we output a cut-down Init() method that doesn't even
take a JSContext and Value as argument, and skips as much work as it can.  It
uses constant-false for "is the value present?", but also, to avoid compilation
errors due to use of `cx` and `val` in now-dead conversion code, it tells the
native-to-JS conversion machinery that the value is always missing, which lets
it skip most of the the work it would normally try to do and just output
initialization to the default value.  We only need to do this for members that
have default values; the others either remain no-passed or are required members
with no default-initialization behavior.

This saves about 330KB of codesize on Linux64 without PGO and 285KB with PGO.

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

--HG--
extra : moz-landing-system : lando
2019-10-28 20:24:31 +00:00
Boris Zbarsky 0d2e9ff1f1 Bug 1214364 part 3. Only output ToObjectInternal methods for dictionaries that need it. r=peterv
This saves about 270KB of codesize on Linux64 without LTO, or 20KB with LTO.

The basic idea is that we can flag dictionaries that need to-JS conversion
(hence ToObjectInternal) based on various IDL uses (return value in normal
interface, argument in callback, etc) and then annotate the ones that are
converted to JS manually in C++ code.

The mozwebidlcodegen changes are needed because non-local changes (e.g. whether
a dictionary is used as a return value somewhere) can now affect the code
generation for a dictionary and hence whether the relevant binding file should
be regenerated.  Since these changes can happen in any .webidl file, we need to
check for them.  We can't track this via the dependency set on the dictionary
itself, because that would not notice new uses being added.

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

--HG--
extra : moz-landing-system : lando
2019-10-28 23:20:11 +00:00
Boris Zbarsky bbc03b9834 Bug 1214364 part 2. Remove the dead code around MethodNotNewObjectError. r=peterv
I don't know when we stopped raising them, but we did at some point.

I am leaving the capability to not generate a union's ToJSVal method, because I will need it soon.

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

--HG--
extra : moz-landing-system : lando
2019-10-23 18:04:30 +00:00
Boris Zbarsky 3a2aa6f9b1 Bug 1214364 part 1. Only output conversions to/from JSON for dictionaries that need it. r=peterv
This saves about 200KB of codesize on Linux64 without LTO.  No effect with LTO,
but is needed for the following patches to work.

Very few dictionaries need these conversions, so explicit opt-in is fine.

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

--HG--
extra : moz-landing-system : lando
2019-10-23 15:58:29 +00:00
Emilio Cobos Álvarez e8cae1b5d0 Bug 1591132 - Use an atomic bool for Checker::mIsWritable. r=froydnj
It's a bool, should use a bool.

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

--HG--
extra : moz-landing-system : lando
2019-10-28 23:27:37 +00:00
Emilio Cobos Álvarez 30240152f3 Bug 1591132 - Make it easy to switch on and off these assertions in different build configurations. r=froydnj
Put them behind a MOZ_HASH_TABLE_CHECKS_ENABLED define, which right now is only
defined in DEBUG builds, preserving behavior.

MakeImmutable becomes an empty inline function when disabled, which should be
zero-cost.

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

--HG--
extra : moz-landing-system : lando
2019-10-28 23:27:30 +00:00
Emilio Cobos Álvarez 9d4e6eee54 Bug 1591132 - Remove some useless ifdefs. r=froydnj
Default constructors of members run if not specified there, and these ifdefs
are ugly.

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

--HG--
extra : moz-landing-system : lando
2019-10-28 23:27:28 +00:00
Emilio Cobos Álvarez 4c1606c97c Bug 1591132 - Make hashtable checker use MOZ_RELEASE_ASSERT. r=froydnj
I want to maybe enable some of these checks in DIAGNOSTIC_ASSERT builds.

The whole type is compiled out in release builds at the moment.

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

--HG--
extra : moz-landing-system : lando
2019-10-28 23:27:26 +00:00
Oana Pop Rus 6b1e67496e Backed out changeset 8799781bbf34 (bug 1591761) for causing mass test failures. on a CLOSED TREE 2019-10-29 01:19:11 +02:00
Oana Pop Rus 9523825524 Backed out changeset ce39fc80bb5b (bug 1591209) due to perf/memory regressions at tcampbell request. 2019-10-29 01:15:12 +02:00
Aaron Klotz b3407dccf1 Bug 1592120: Add flag to Authenticode::GetBinaryOrgName to skip trust verification and use it in untrusted modules processing; r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D50862

--HG--
extra : moz-landing-system : lando
2019-10-28 21:58:49 +00:00
Alexander J. Vincent 369ca66a21 Bug 1591761 - parseXULToFragment should throw a clearer exception for non-well-formed markup. r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D50729

--HG--
extra : moz-landing-system : lando
2019-10-28 21:59:59 +00:00
Anshul ec63a27082 Bug 1590811 - Better align the breakpoint icon and change hover effects.
Differential Revision: https://phabricator.services.mozilla.com/D50157

--HG--
extra : moz-landing-system : lando
2019-10-28 22:24:26 +00:00
Nathan Froyd 7f08913d02 Bug 1584296 - add C++17 bits to fake compiler definitions in test_toolchain_configure.py; r=glandium
Separating these changes out into a separate patch/bug makes them a
little easier to verify.  Turning on C++17 support should then be just a
matter of updating expected results.

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

--HG--
extra : moz-landing-system : lando
2019-10-28 20:58:15 +00:00
Erica Wright 8ec1fcd4ea Bug 1585184 - Migrate users from custom to standard if their settings exactly match r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D50369

--HG--
extra : moz-landing-system : lando
2019-10-28 22:12:15 +00:00
jaril ba28db66a0 Bug 1581245 - Add a frame timeline to web replay
Differential Revision: https://phabricator.services.mozilla.com/D49698

--HG--
extra : moz-landing-system : lando
2019-10-28 14:17:18 +00:00
Chun-Min Chang 97ec12425c Bug 1590890 - Disable bindgen when building coreaudio-sys. r=glandium
Revert the coreaudio-sys dependency changed in bug 1589514, which causes
a trouble when compiling with sccache

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

--HG--
extra : moz-landing-system : lando
2019-10-28 22:04:16 +00:00
Marco Bonardo 5990b7245c Bug 1573753 - Copy the urlbar value when pageproxystate is invalid and there's no result. r=adw
When copying from the input field, when the value has already been confirmed
by the user (either by picking a result or Enter), we cannot use the selected
result information, because it has already been cleared by _loadURL setting
the value to the final one.
If the page already finished loading, pageproxystate is valid and we can use
currentURI, but if the page takes a long time to load, or the load is canceled,
we need a fallback, because we don't want to interrupt the copy operation.

In this case, the current value can be either a valid url or a search string.
If it's a valid url, we can just go through the usual URI handling, trying to
make it nicer. After all, we'd do the same just after the page is done loading.
Otherwise, we fallback to the currently selected value.

This works also if the user is still in the process of selecting a result
and tries to copy from the input field, because on result selection we set
either a valid url or a non-url.

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

--HG--
extra : moz-landing-system : lando
2019-10-28 21:53:16 +00:00
Olli Pettay 574f798fb3 Bug 1586750, don't compile event handlers on unloaded windows r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D48983

--HG--
extra : moz-landing-system : lando
2019-10-28 21:08:50 +00:00
Liang-Heng Chen f7b811213d Bug 1590124 - extend `expires_in_version` of `networking.data_transferred_v3_kb` and `HTTP_TRAFFIC_ANALYSIS_3`; r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D50789

--HG--
extra : moz-landing-system : lando
2019-10-28 14:16:25 +00:00
Tomislav Jovanovic c9669e07c3 Bug 1591736 - Fix AddonManagerWebAPI::IsAPIEnabled in out-of-process iframes r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D50713

--HG--
extra : moz-landing-system : lando
2019-10-28 21:51:30 +00:00
Glenn Watson 074c0fe3ca Bug 1591527 - Integrate partial repainting with OS compositor surfaces. r=kvark,mstange
This passes the existing dirty rect for a picture cache update
through the native compositor interface, allowing compositors
to only update a sub-rect of a tile.

Also update the example to pass dirty rect to DirectComposition,
and add debug drawing for compositor redraw region.

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

--HG--
extra : moz-landing-system : lando
2019-10-28 20:56:42 +00:00
Ehsan Akhgari d8ae659ab1 Bug 1590779 - Remove social-tracking-protection-digest256 in preferences and GeckoView; r=englehardt,droeh
Differential Revision: https://phabricator.services.mozilla.com/D50714

--HG--
extra : moz-landing-system : lando
2019-10-28 21:45:31 +00:00
Ehsan Akhgari e97e6980e5 Bug 1589154 - Replace base-track-digest256 in urlclassifier.trackingTable; r=englehardt
Differential Revision: https://phabricator.services.mozilla.com/D50712

--HG--
extra : moz-landing-system : lando
2019-10-28 21:41:48 +00:00
Mike Conley 315a7c522c Bug 1588002 - Make sure to remove every nsIDOMMozWakeLockListener added by browser_media_wakelock.js even if a notification is not seen. r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D48931

--HG--
extra : moz-landing-system : lando
2019-10-28 20:41:36 +00:00