Commit Graph

717730 Commits

Author SHA1 Message Date
Jonathan Watt
6e34e4dbdf Bug 1557983. Significantly simplify and fix the 'beforeprint'/'afterprint' dispatching code.
This fixes two issue.

First, the code shouldn't be dispatching these events every time it gets a new
Print or PrintPreview call.  It only needs to dispatch the events to the
original document that we're going to clone from.  When cloning from existing
static clones any changes made by 'beforeprint' will be present in the existing
static clone.

Second, the code tries to delay the 'afterprint' event until after
mozPrintCallback callbacks have been invoked, but those callbacks are invoked
in the cloned document, whereas the events are sent to the original document!
So there is no reason to do this.

Differential Revision: https://phabricator.services.mozilla.com/D34280
2020-07-11 09:06:25 +00:00
Butkovits Atila
222d260b21 Backed out changeset f91e5fbb9520 (bug 1557983) as requested by dev. 2020-07-11 12:11:20 +03:00
Jonathan Watt
91e46d309f Bug 1557983. Remove nsPrintJob::HasPrintCallbackCanvas.
After refactoring the 'beforeprint'/'afterprint' code, this method is not used
any more.

Differential Revision: https://phabricator.services.mozilla.com/D34281
2020-07-11 08:47:04 +00:00
Jon Coppeard
6362b67ae7 Bug 1651723 - Store atom pinned state in the atoms table only r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D82968
2020-07-10 18:23:27 +00:00
Dorel Luca
ae81637193 Backed out changeset af63ff5d2d28 (bug 1647652) for browser-chrome in creditCard/browser_creditCard_doorhanger.js 2020-07-11 08:18:20 +03:00
Zibi Braniecki
25733da4bf Bug 1647652 - Treat a new record as a duplicate of an existing one if the cc-number matches. r=abr
Differential Revision: https://phabricator.services.mozilla.com/D82131
2020-07-11 00:25:44 +00:00
longsonr
875f5e88ac Bug 1259861 - Move everything else into the mozilla namespace in layout/svg r=dholbert
Also: adjust include paths to be consistent for usages of various SVG headers,
and remove unused SVG includes (mostly for "utils" classes),
and drop stray "ns" from already-renamed SVG classes in various code comments.

Differential Revision: https://phabricator.services.mozilla.com/D83140
2020-07-11 02:20:20 +00:00
Jeff Muizelaar
0729560a01 Bug 1652181 - Only call UpdateBias when the frame changes. r=sotaro
Previously we were calling it at 60fps for 30fps video. This meant that
any bias would be cancelled out on the vsyncs where we didn't present
anything. This also makes us match the non-WebRender path which only
calls UpdateBias after a frame has actually been drawn.

Differential Revision: https://phabricator.services.mozilla.com/D83211
2020-07-11 00:17:31 +00:00
Jeff Muizelaar
d2f53ff680 Bug 1651889. Update to gleam 0.12.1. r=kvark
This should fix a crash caused by an unexpected pixel type.

Differential Revision: https://phabricator.services.mozilla.com/D83167
2020-07-11 02:21:13 +00:00
Jean-Yves Avenard
0a6e148b09 Bug 1650728 - Don't synchronously dispatch a task to create a TextureClientRecycleAllocator. r=sotaro
Additionally, we make access to mTextureClientRecycler, mHandle and mIsAsync thread-safe as they are accessed and set from different threads

Differential Revision: https://phabricator.services.mozilla.com/D82339
2020-07-11 01:57:06 +00:00
Adam Roach [:abr]
f676613244 Bug 1648551: Treat form in <iframe> "pagehide" event as form submission r=zbraniecki
Differential Revision: https://phabricator.services.mozilla.com/D81931
2020-07-11 00:51:05 +00:00
Zibi Braniecki
bfb49cc697 Bug 1649858 - Add SUMO link to re-authentication UI. r=abr
Differential Revision: https://phabricator.services.mozilla.com/D83025
2020-07-11 00:27:33 +00:00
Kartikaya Gupta
7cdb8134fb Bug 1650989 - Abort mask creation instead of crashing when the size is too large. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D82809
2020-07-11 00:04:43 +00:00
Jan de Mooij
4ce7ac11c3 Bug 1651000 - Fix OOM check in NewWrapperWithObjectShape. r=iain
Found by static analysis.

I wish we didn't have these browser-specific optimizations. Maybe after Warp we
can make bigger changes to our object/proxy model and address this.

Differential Revision: https://phabricator.services.mozilla.com/D83062
2020-07-10 13:04:30 +00:00
Frederik Braun
c4e884127c Bug 1651977 - add MOZ_NO_VALIDATE r=tjr
Differential Revision: https://phabricator.services.mozilla.com/D83069
2020-07-13 09:01:00 +00:00
Marco Bonardo
f50762bc54 Bug 1650099 - Unify UrlbarProviders logger boilerplate. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D82939
2020-07-10 09:49:42 +00:00
Harry Twyford
463773af5b Bug 1645324 - Move the omnibox heuristic result to the omnibox provider. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D80295
2020-07-09 05:02:44 +00:00
Harry Twyford
3ab8f9b1e3 Bug 1645521 - Part 3 - Port unifiedcomplete tests. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D80294
2020-07-09 05:02:47 +00:00
Harry Twyford
7e31642215 Bug 1645521 - Part 2 - Allow for multiple heuristic providers and enable ProviderHeuristicFallback. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D80293
2020-07-09 05:02:49 +00:00
Harry Twyford
382aaa0d5a Bug 1645521 - Part 1 - Add ProviderHeuristicFallback. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D80291
2020-07-09 05:02:42 +00:00
Kris Maglione
a0401cd185 Bug 1649554: Part 2 - Use static component registration for about:compat. r=twisniewski,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D81750
2020-07-10 23:58:26 +00:00
Kris Maglione
b6be72f351 Bug 1649554: Part 1 - Move deprecated component registration helpers out of XPCOMUtils. r=mccr8,remote-protocol-reviewers,marionette-reviewers,perftest-reviewers,webcompat-reviewers,whimboo,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D81749
2020-07-10 23:58:30 +00:00
Kris Maglione
9d78661f88 Bug 1649221: Update ChromeUtils.generateQI callers to pass strings. r=mccr8,remote-protocol-reviewers,marionette-reviewers,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,preferences-reviewers,agi,whimboo,Bebe,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D81594
2020-07-10 23:58:28 +00:00
J.C. Jones
8d808a0da4 Bug 1641356 - Unhide RSA-AES-GCM ciphersuite preferences r=kjacobs
In Bug 1638369 we added two new RSA-AES-GCM ciphersuites for web compatibility, but
did not add them to `all.js` so they weren't visible in about:config.

Since these are not mandatory ciphersuites to the TLS specification, they
should be configurable.

Differential Revision: https://phabricator.services.mozilla.com/D83192
2020-07-10 21:11:51 +00:00
Zibi Braniecki
67e716369f Bug 1650033 - Support length ranges in credit card IINs. r=abr
Differential Revision: https://phabricator.services.mozilla.com/D83028
2020-07-10 22:46:49 +00:00
Zibi Braniecki
d1020be8df Bug 1650961 - Restrict the clickjacking delay to credit card fields. r=abr
Differential Revision: https://phabricator.services.mozilla.com/D82638
2020-07-10 23:21:41 +00:00
caroline
d68bc9bc10 Bug 1648820 - Part 3: Transpile Math.hypot in Warp. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D83023
2020-07-10 21:49:11 +00:00
caroline
1335a54165 Bug 1648820 - Part 2: Optimize Math.hypot in CacheIR. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D83022
2020-07-10 21:49:04 +00:00
caroline
45fed54608 Bug 1648820 - Part 1: Add additional floating point registers. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D83021
2020-07-10 20:48:42 +00:00
Emma Humphries
b357621126 Bug 1649662 - Add examples to severity documentation r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D81805
2020-07-10 22:52:17 +00:00
Dana Keeler
2a34187e89 Bug 1629002 - osclientcerts: add support for CryptoAPI-only keys r=mhowell,kjacobs
Evidently, keys stored on some tokens can only be accessed via the deprecated
CryptoAPI interface. This patch adds support for such keys.

Differential Revision: https://phabricator.services.mozilla.com/D82789
2020-07-10 22:55:43 +00:00
Dana Keeler
24db0c88fc Bug 1629002 - unblock asepkcs.dll r=tkikuchi
When the osclientcerts module attempts to use client certificates and keys from
certain tokens, the Windows APIs will attempt to load asepkcs.dll. If Firefox
blocks this library, the keys won't be available. Thus, it needs to be
unblocked.

Due to the architecture of osclientcerts (namely, its dedicated single thread),
using asepkcs.dll via the Windows APIs shouldn't cause the crashes that led to
this module being blocked.

Differential Revision: https://phabricator.services.mozilla.com/D82788
2020-07-10 22:39:38 +00:00
sotaro
80f17b60f8 Bug 1651587 - Make image::Image released efficient on main thread r=aosmond
Current gecko dispatches tasks of releasing image::Image to main thread at some places. The task was dispatched individually. Then there were cases that the releasing took long time. It increased peak memory usage and caused a problem like Bug 1639280. When main thread is very busy like WebGL, it takes longer time until the Image is released on main thread. If Images are released quickly on main thread, we could reduce peak memory usage.

When SurfaceCache::ReleaseImageOnMainThread() is called, there could be already an ongoing task for releasing Image. It could reduce a duration until release on main thread.

Differential Revision: https://phabricator.services.mozilla.com/D82864
2020-07-10 14:34:01 +00:00
Kagami Sascha Rosylight
2020afa997 Bug 1637624 - Part 7: Split PeekOffset switch entries to separate methods r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D83095
2020-07-10 19:22:40 +00:00
Kagami Sascha Rosylight
928d3013de Bug 1637624 - Part 6: Add SetOutputOffsetFromFrame() r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D83094
2020-07-10 19:21:34 +00:00
Kagami Sascha Rosylight
82bc29b366 Bug 1637624 - Part 5: Use MOZ_TRY r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D83093
2020-07-10 19:21:26 +00:00
Kagami Sascha Rosylight
6e3307f721 Bug 1637624 - Part 4: Merge offsetAdjustment into offset r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D83092
2020-07-10 19:22:42 +00:00
Kagami Sascha Rosylight
2a0b6c01aa Bug 1637624 - Part 3: Merge the description for mSawBeforeType r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D83091
2020-07-10 20:37:07 +00:00
Kagami Sascha Rosylight
5052c19940 Bug 1637624 - Part 2: Use StaticPrefs for layout.word_select.* r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D83090
2020-07-10 21:21:30 +00:00
Mike Hommey
e2151e9228 Bug 1651903 - Stop preprocessing mozglue.def. r=froydnj
The file defines symbol renames to perform when linking. The list of
symbols to rename varies between an empty list and a full list depending
whether MOZ_MEMORY is set. Practically speaking, the variant with an
empty list is equivalent to not using a def-file at all.

This means we don't need to preprocess it any more, and we can just not
use a def-file when MOZ_MEMORY is not set.

As a side effect, this removes a rule from a Makefile.in.

Differential Revision: https://phabricator.services.mozilla.com/D83034
2020-07-10 15:27:10 +00:00
Mike Hommey
0064d72b3e Bug 1651901 - Disable optimizations in dom/bindings/test. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D83033
2020-07-10 15:26:12 +00:00
Cosmin Sabou
71bfce5442 Backed out 5 changesets (bug 1650099, bug 1645521, bug 1645324) as requested by harry for causing bug 1652024.
Backed out changeset 93abbd32c314 (bug 1650099)
Backed out changeset 366f7bfe267c (bug 1645324)
Backed out changeset b92a18e970ee (bug 1645521)
Backed out changeset d57d3a47b1ad (bug 1645521)
Backed out changeset 41e4a6353913 (bug 1645521)
2020-07-11 02:03:18 +03:00
Kenrick
d287d44110 Bug 1651727 - Fix store buttons getting wrapped into the next line due to different font width depending on system. r=MattN
Removing padding-inline-end and margin-inline-end on both p and .buttons makes them more resilient to different default system fonts

Differential Revision: https://phabricator.services.mozilla.com/D83043
2020-07-10 21:27:28 +00:00
sotaro
e204892c8c Bug 1649122 - Add basic AHardwareBuffer support to WebRender on android r=jrmuizel
android fence is not supported yet.

Differential Revision: https://phabricator.services.mozilla.com/D82317
2020-07-10 18:50:56 +00:00
Daosheng Mu
9bc29112b7 Bug 1650714 - Part 4: Adjust OpenVR and OculusVR rotate transform. r=kip
Depends on D83008

Differential Revision: https://phabricator.services.mozilla.com/D83174
2020-07-10 21:52:57 +00:00
Daosheng Mu
5d6d5bb5f5 Bug 1650714 - Part 3: Add Matrix rotate transform unit tests. r=kip,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D83008
2020-07-10 22:01:11 +00:00
Imanol Fernandez
a0b122309a Bug 1650714 - Part 2: Correct XRRigidTransform inverse math r=daoshengmu,kip,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D82433
2020-07-10 22:01:11 +00:00
Daosheng Mu
088f996216 Bug 1650714 - Part 1: Correct Matrix Decompose and SetRotationFromQuaternion. r=kip,imanol,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D82391
2020-07-10 22:01:11 +00:00
Maja Frydrychowicz
ab92315948 Bug 1651648 - Unify locator strategies for chrome and content r=marionette-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D83016
2020-07-10 16:21:01 +00:00
Mitchell Hentges
e1aa2a866a Bug 1629337: Implements incremental dafsa algorithm r=rstewart
Differential Revision: https://phabricator.services.mozilla.com/D76893
2020-07-10 21:08:10 +00:00