1
0
mirror of https://github.com/roytam1/UXP.git synced 2026-05-26 23:18:26 +00:00
Commit Graph

5777 Commits

Author SHA1 Message Date
Basilisk-Dev b1ac786668 [Basilisk] Enable performance observer by default 2023-12-15 09:58:17 +08:00
Basilisk-Dev e6c4802491 [Basilisk] Issue MoonchildProductions/UXP#2053 - Disable DOM Performance API navigation timing by default.
Port of MoonchildProductions/Pale-Moon commit efb55a08c62ca736cff5535bc35236fc2b1cc21d
2023-12-15 09:57:44 +08:00
Moonchild 554172db3c [Pale-Moon] Remove twitter override because they flipped to bork on Gecko compat UA. 2023-12-15 09:50:52 +08:00
Moonchild 637ee512fd [Pale-Moon] Update privacy preferences category.
This makes it a tabbed page with "General" and "Tracking"
* Sec-GPC is moved to "Tracking"
* Adds canvas data poisoning, DOM performance observers and
  DOM navigation timing as options.
2023-12-15 09:50:08 +08:00
Moonchild 7121fc7844 [Pale-Moon] Revert "Issue #1936 - Optionally leave Bookmarks menu open when spawning new tab."
This reverts commit 72d882780643d2f11717525e342febe866b18880.
2023-12-15 09:44:47 +08:00
Moonchild 6461b0708d [Pale-Moon] Use https everywhere in searchplugins. 2023-12-15 09:11:20 +08:00
Moonchild 00d2652fcd [Pale-Moon] [SSUAO] Update spotify override. 2023-12-15 09:10:01 +08:00
Moonchild 4fafcf75e9 [Pale-Moon] [SSUAO] Remove netflix overrides
We should support the UI natively now, and Netflix stopped supporting
Silverlight, so no point in trying to force compat anymore.
2023-12-15 09:09:22 +08:00
Moonchild f96001ba7c No issue - Allow redirects for requests that require preflight
Spec update, see Bug 1312864
2023-12-15 09:07:32 +08:00
Moonchild eba87b03fd [DOM] Fix double-free crash in MessagePort.cpp 2023-12-15 09:07:10 +08:00
Jeremy Andrews 54874de6d4 Issue #2399 - Fix LDAP on Linux. 2023-12-06 15:13:17 +08:00
Moonchild dc253ce953 Issue #2362 - Fix click handling according to the spec.
This removes some hackery surrounding preventing content clicks, and in
general handles auxclick as it should, firing that event on secondary
buttons (wheel/right on default setup for right-handed mouse).
2023-12-06 14:50:08 +08:00
Moonchild 73bf6f95f8 Revert "No issue - Stop supporting data: scheme in SVG <use> elements."
This reverts commit 7e60482d8090a43e00957f3d6fc87f31d7ea65a1.

Of course it's not that simple. In Mozilla land they are also running
into issues but of a different variety and it was backed out there also.
2023-11-30 10:04:21 +08:00
trav90 48698abb77 Issue #2393 - Part 8 - Fix TextureClient-creating functions 2023-11-30 10:03:54 +08:00
trav90 04f124b105 Issue #2393 - Part 5 - Extract D3D11MTAutoEnter and reuse 2023-11-30 09:53:54 +08:00
trav90 6807675123 Issue #2393 - Part 4 - Reduce VideoQueue size for GPU based images 2023-11-30 09:53:36 +08:00
trav90 b09b3771c6 Issue #2393 - Part 3 - Remove extra copy of YUV buffer on Windows 2023-11-30 09:53:08 +08:00
trav90 74a22e5c00 Issue #2393 - Part 2 - Add D3D11YCbCrImage type and related methods
Will allow to directly upload a YUV420 buffer into a D3D11 texture.
2023-11-30 09:52:46 +08:00
trav90 1fc1753d4d Issue #2393 - Part 1 - Allow client side uploads on Intel hardware 2023-11-30 09:52:28 +08:00
Brian Smith 3e9fd21a38 Issue #2387 - Remove a missed AddRef() which could cause leaks. Update comments explaining how the reference counting works. 2023-11-30 09:52:07 +08:00
Brian Smith eef37b2cd5 Issue #2387 - Collection of fixes related to a crash while canceling a dynamic import. Add AddRef/Release hooks for embedding's script or module private value and set this script source object where appropriate. https://bugzilla.mozilla.org/show_bug.cgi?id=1519140 Partial, no Value passing changes. Clear the list of dynamic import requests after cancelling them in ScriptLoader::ParsingComplete as we do for other requests. https://bugzilla.mozilla.org/show_bug.cgi?id=1291535 ScriptLoader::OnStreamComplete never returns a failure. https://bugzilla.mozilla.org/show_bug.cgi?id=1627275 Also cancel the correct kind of parser for Modules. 2023-11-30 09:51:50 +08:00
Moonchild 56bcdf7ca0 [WebGL] Flip the validation state for gl_KHR_no_validation.
The original state was inverted due to confusion due to a double
negative (not:no_error).
This validation should only be enabled on Windows (for now).
Future tracking and discussion in BZ 1862039
2023-11-24 17:06:58 +08:00
Moonchild 114daae894 [DOM] Improve MessagePort state machine. 2023-11-24 17:05:57 +08:00
Moonchild d55111c4fd [Network] Fix relative URL path starting with multiple slashes 2023-11-24 17:05:20 +08:00
Moonchild 71ce058b03 [DOM] Check if rootDoc is secure context for web compat 2023-11-24 17:04:52 +08:00
Moonchild acd204e85e [WebGL] Turn on more validation/error checking in webgl (when not on Win) 2023-11-24 17:04:07 +08:00
Moonchild 7fce3acfa9 Issue #2361 - Enable Navigator.clipboard by default. 2023-11-24 17:03:22 +08:00
Gerald Squelart 543e41f3ac Bug 1332825 - Use move semantics in MozPromise::All() and AllPromiseHolder.
MozPromise::All sets up 'Then' lambdas on all sub-promises, each one
taking the resolve/reject object by value. Since this value will not be
used again in the lambda, it is safe to Move it, and from there
MozPromiseHolder::Resolve/Reject can also Move it again into the holder
storage, potentially saving two copies per Resolve/Reject. Also, once
all sub-promises have been resolved, the resolve-values can be Move'd
into the joining promise's Resolve function.
2023-11-24 17:02:54 +08:00
Moonchild e0a7c35dcc Issue #2361 - Remove clipboard-read code
Web content should never read the clipboard; extensions have other APIs
they can use through XPCOM so do not need to go through
Navigator.Clipboard, removing the only reason why it would even be here.
2023-11-24 17:02:32 +08:00
Moonchild 3478c01fc8 Issue #2361 - Base implementation of Navigator.Clipboard
This hard-refuses any reads from clipboard with a promise rejection.
2023-11-24 17:01:55 +08:00
Jeremy Andrews c4fdd1d9ee Issue #1312 - Switch to X-Mailer, and pull from AppInfo instead of HTTP headers.
I've been thinking about this issue, and ultimately it's just correcting a
mistake Mozilla made that no consumer of UXP's MailNews ever complained about
before, so I think it's reasonable to fix the default behavior first, and then
let others complain before I start worrying about prefs or ifdefs. One thing
at a time.
2023-11-16 10:21:11 +08:00
Moonchild b004af07d0 Revert "No Issue - add mutex in EventSource"
This reverts commit e4643f5bed2cdc600fc29900fe3b4d22e25763bc.

Apparently causes deadlocks in Linux.
2023-11-16 10:21:01 +08:00
Moonchild b19fe58909 No issue - Stop supporting data: scheme in SVG <use> elements. 2023-11-14 15:34:40 +08:00
athenian200 926ee14909 Issue #1824 - Use elfdump on SunOS instead of readelf.
GNU readelf isn't available as consistently as I assumed across SunOS,
and it can be named different things on different illumos distros (some call
it readelf, others call it greadelf, etc), so it's safer to use elfdump.
This is a fairly easy fix, just kind of annoying.
2023-11-14 15:34:12 +08:00
Moonchild 6c37943e1c No Issue - add mutex in EventSource
Potentially avoids a gc crash when load is high.
2023-11-10 15:33:13 +08:00
Brian Smith c68105436b Issue #2376 - Split NSPR sed into BSD and GNU. Mac and the BSDs use [^[:space:]]. Use GNU sed on other platforms with \S. 2023-11-10 15:32:53 +08:00
Moonchild 1ac65a828d No Issue - Adjust configure to deal with FreeBSD regex breakage for \S 2023-11-10 15:32:35 +08:00
athenian200 42db0b335f Issue #1824 - Support SunOS Linker mapfiles.
Generating OS-appropriate mapfiles from a provided SYMBOL_FILE is
apparently required to work with newer ffvpx. Nothing else in our
codebase actually seemed to require it. Also seems to reduce the amount
of console spam I see relating to symbol visibility during the build
process, and I think it even makes libxul.so link a bit faster.

Signed-off-by: athenian200 <athenian200@outlook.com>
2023-11-10 15:32:11 +08:00
Basilisk-Dev ae5bfc9ff2 No Issue - StructuredClone serialize and deserialize should treat back reference consistently
Backport of https://bugzilla.mozilla.org/show_bug.cgi?id=1538622
2023-11-10 15:31:51 +08:00
Basilisk-Dev 727a24d78e No issue - Structured clone algorithm doesn't serialize Array Length contrary to HTML spec, resulting in truncation of trailing sparse arrays like [1,2,3,,]
Backport of https://bugzilla.mozilla.org/show_bug.cgi?id=1476955
2023-11-10 15:31:33 +08:00
Moonchild 17f1bcac4c Make ECMA v6 the default for devtools pretty-printing. 2023-11-04 11:42:01 +08:00
Moonchild 0db18745f4 Issue #2364 - Limit the growth of scaling for animated nsDisplayTransform in the fallback case.
This ensures we don't scale the underlying size of the layer beyond what
is close to the current display size. When box shadows get much larger
than this, they start taking so much time to render that successive
frames grow in scale too fast for any inter-frame reuse to be possible.

With this, we avoid that and no longer get crushed by re-rendering
gigantic box shadows every single frame.

See BZ 1383825
2023-11-04 11:41:44 +08:00
Moonchild d4cdecec81 Add Min() and Max() convenience functions for 2d point types.
This will return (min(x1,x2), min(y1,y2)) and equivalent max from 2
passed-in (x1,y1) (x2,y2) points
2023-11-04 11:41:21 +08:00
Moonchild 3bdb386b6e Fix a bug in SizeTyped templating
A second template parameter 'F' was previously added to SizeTyped, but
was not correspondingly added to the argument passed for the 'Sub'
parameter of BaseSize.
2023-11-04 11:40:55 +08:00
Moonchild f1ccc95daf Issue #2364 - Only use HWA AlphaBoxBlur when targets are large enough.
There's considerable cost associated with creating HWA draw targets
which would negate and regress the performance won by it if used for
too small targets (like small spans of text).
This only uses HWA if >= 8K SurfaceAllocationSize to balance HWA draw
target cost with box blur cost.
2023-11-04 11:40:33 +08:00
Moonchild 3f618a55dc Issue #2364 - Optimize the software-based box blur implementation. 2023-11-04 11:40:15 +08:00
Moonchild 4beb3b947c Issue #2364 - use DrawTarget::DrawSurfaceWithShadow to render box shadows on platforms that accelerate it. 2023-11-04 11:40:00 +08:00
Moonchild 8d30faf95f Issue #2364 - Re-factor AlphaBoxBlur
Only blur one quadrant of a box-shadow and mirror it to the other quadrants.
This applies only if the corners are symmetrical (square corners or equal
corner radii) otherwise we'll fall back to the old method.
2023-11-04 11:39:45 +08:00
Moonchild 8d42309580 [DOM] For now, use C++11 static_asserts only.
Single-param static_assert is C++17 or later.
Follow-up to 3d92b8212595769c40da7ccfbafb3898cfaaf7bd
2023-11-04 11:39:19 +08:00
Brian Smith cd66a17327 Issue #2354 - Restore ARM32 buildability on Linux. Fix ION breakages due to BigInt changes. Fix breakages from libjpeg, libyuv and libvpx upgrades. Restore ARM(32/64) NEON FPU support in libyuv. 2023-11-04 11:36:56 +08:00