Commit graph

43 commits

Author SHA1 Message Date
Moonchild
f2b0066036 [widget] Change RegisterDragDrop to be called on idle.
This is a low-priority init function that should not be called with
immediate dispatch to the current thread, for performance reasons.
Additionally, do not call RegisterDragDrop for hidden windows.
2023-10-26 10:52:28 +08:00
Moonchild
500af2fe51 [widget] Rewrite data-read loop in OnDataAvailable.
The read-loop in OnDataAvailable was needlessly baroque and used a very
strange dialect of Hungarian notation. Factored out the zero-element
case for simplicity, and added justification in comments as-appropriate.
2023-05-11 09:28:28 +08:00
Moonchild
f1759b33ff Issue #1656 - Remove more vim control lines.
Vim control lines were re-introduced or not entirely cleaned up.
This nukes them again.
Removing from accessible, [root], tools, uriloader, widget, xpcom and
xpfe.
Resolves #1656
2023-05-05 23:00:05 +08:00
Moonchild
bca689b483 [widget] Properly test for and handle errors in target-surface creation and mapping. 2023-02-20 12:01:04 +08:00
Moonchild
eaf9e756a0 Issue #21 - Remove remaining telemetry structs, callers and flags. 2022-04-28 10:33:44 +08:00
Moonchild
8d800b1cb0 Issue #21 - Remove Telemetry plumbing and fix build.
Note this won't give working applications. Requires FE changes and
additional js module changes (next part).
2022-04-28 10:25:48 +08:00
roytam1
afc2f71d70 Bug 1664149: Hold a self reference in nsDataObj. r=smaug, a=RyanVM 2022-01-19 10:24:50 +08:00
roytam1
7d96ee2fe6 Bug 1740389; r=handyman, a=tjr
Bug 1735071: Make Windows non-ePopupLevelTop popups respect owner z-order. r=edgar, a=tjr
2022-01-19 10:24:31 +08:00
Moonchild
d867f26c0e [widget] Require user interaction when picking files or folders v2
Now with extra sauce to make it work cross-platform and cross-versions and
for HTML input elements only.
2021-02-25 09:25:17 +08:00
Moonchild
32df94bf3b Issue #1705 - Part 7: Implement scrollbar-width:thin on Windows. 2021-01-14 22:20:00 +08:00
Moonchild
810ce6aa74 Issue #1606 - Add support for multi-monitor DPI awareness v2 (W10 1706+) 2020-10-09 21:00:03 +08:00
Moonchild
9c59990883 Issue #1656 - Part 10: Manual cleanup. 2020-09-25 22:07:01 +08:00
Moonchild
0cd673d720 Issue #1656 - Part 6: Clean up the build files 2020-09-25 22:04:23 +08:00
Moonchild
d7a4abc3d4 Issue #1656 - Part 4: Tackle *.idl, *.css, *.ipdlh, *.webidl, *.cc 2020-09-25 22:04:18 +08:00
Moonchild
30df895eb2 Issue #1656 - Part 3: Nuke more vim config lines in the tree.
Another S&R run with some smarter matching.
2020-09-25 22:04:17 +08:00
Moonchild
8c395520d9 Issue #1656 - Part 1: Nuke most vim config lines in the tree.
Since these are just interpreted comments, there's 0 impact on actual code.
This removes all lines that match /* vim: set(.*)tw=80: */ with S&R -- there are
a few others scattered around which will be removed manually in a second part.
2020-09-25 22:04:12 +08:00
adeshkp
fcb2242703 Issue #1566 - Lowercase link filename extension 2020-06-06 07:20:35 +08:00
wolfbeast
1803a30a06 Issue #1348 - Part 3: Set IS_PRIVATE input scope in private browsing.
Microsoft IME on Windows 10 20H1 (build 19025+) supports IME private
mode by input scope. Although previous Windows versions use an
undocumented API for Edge and IE only, the next Windows 10 release will
use a public API for it.
We pre-empt this potential privacy concern by setting the IS_PRIVATE
flag when in PB mode.
2020-01-09 21:26:59 +08:00
Makoto Kato
8972304bba Issue #1348 - Part 1: Clean up input scope support for IMM32.
Use AutoTArray to set input scope.
2020-01-09 21:26:54 +08:00
wolfbeast
1e7a9e0e28 No Issue - Expand HWA over RDP to Windows 8.1 and 10.
When Mozilla implemented this initially, only Windows 8 existed.
Because of the strict equal check, 8.1 and 10 didn't get HWA over RDP
while they are perfectly capable of doing so with RemoteFX. This change
allows any version of Windows from 8.0 onwards to use HWA over RDP.
2019-10-18 09:05:00 +08:00
wolfbeast
5944b47f79 Perform a size check when dealing with clipboard data to be sure.
Follow-up to 0b6d9a47051be9ef4d064c6f7c60717da91d0bc2
2019-05-31 07:22:14 +08:00
wolfbeast
5f10407c8c Preserve transparency when copying a DIB to/from the clipboard.
In order to get the alpha channel when encoding BMP images from a
surface, we need to supply bmp=32 in the encoder options.
2019-02-16 00:28:33 +08:00
wolfbeast
c15f982d7a Use existing image decoders to handle clipboard BMP data.
This gets rid of the old nsImageClipboard widget code in favor of using
the nsBMPDecoder in imglib.
2019-02-16 00:28:11 +08:00
Alex Gaynor
84cc1f3239 Handle pasted data of certain types with an odd length. 2019-02-16 00:28:10 +08:00
wolfbeast
107ddd1148 Don't allocate PendingAction twice. 2019-02-16 00:18:34 +08:00
wolfbeast
416ce4eb69 Protect main thread in-process access to WinCompositorWidget transparent surface. 2019-02-16 00:18:24 +08:00
wolfbeast
80e25ee7e5 Bug 1467363 - Protect access to mTransparentSurface with a lock. 2019-02-16 00:13:13 +08:00
wolfbeast
8c8145e620 Remove all C++ Telemetry Accumulation calls.
This creates a number of stubs and leaves some surrounding code that may be irrelevant (eg. recorded time stamps, status variables).
Stub resolution/removal should be a follow-up to this.
2019-02-16 00:12:32 +08:00
wolfbeast
adca8376ea Introduce ui.menu.allow_content_scroll
When true, overrides the OS convention to prevent scrolling of content when contextual menus are open.
This resolves #730.
2019-02-16 00:12:02 +08:00
wolfbeast
bb95fcfca5 Bypass transparency optimization with HC themes.
Don't use transparency optimization for theme items in Windows 8
or later with a high contrast theme in use.

See MoonchildProductions/Pale-Moon#1591
2019-02-16 00:09:50 +08:00
SpockMan02
2d708bf86c Undo Mozilla Bug 1302937; Reinstate -moz-mac-lion-theme media query 2019-02-16 00:06:39 +08:00
David Major
2c709a3e82 Bug 1458270: Clean up in the shutdown observer. r=milan a=jcristau
--HG--
extra : amend_source : 7b1277a18a3ed4f441deef8b51cb4ec4dde614cc
2019-02-16 00:01:18 +08:00
janekptacijarabaci
ea3430429d Implement auxclick
Bug(s):
https://bugzilla.mozilla.org/show_bug.cgi?id=1304044
(native in moebius)
2019-02-15 23:53:46 +08:00
janekptacijarabaci
37c73e0634 moebius#56: Fix: DataTransfer - Pasting image from clipboard fails in some cases
https://github.com/MoonchildProductions/moebius/pull/56
2019-02-15 23:48:56 +08:00
wolfbeast
b77496b276 Remove unused LSPAnnotator 2019-02-15 23:39:56 +08:00
wolfbeast
434f3590e3 Remove base conditional code for crash reporter and injector. 2019-02-15 23:39:53 +08:00
wolfbeast
2ce8b3b74e Add a signal preference for dynamic color changes to adjust "brighttext" in the front-end.
This makes all relevant toolbars pick up the fact that the Windows accent color has changed and should check and if necessary update the "brighttext" property on them for styling of controls.
This is a bit of a hack-around to the fact that there is no real easy way otherwise to notify the front-end of color changes without needing a change in focus of the window.
There is a deliberate 300ms delay built in, because otherwise the styles might not have propagated yet, resulting in brighttext not being updated properly.
2019-02-15 23:32:15 +08:00
wolfbeast
d2dfb814c1 Use more logical pref names for mouse button 4&5
Also improves comment wording.
2019-02-15 23:32:00 +08:00
wolfbeast
8aa201ff06 Add -moz-windows-accent-color-is-dark
#31 point 4
2019-02-15 23:29:12 +08:00
wolfbeast
41ee5136f4 Split out the check for accent color luminance. 2019-02-15 23:29:10 +08:00
wolfbeast
1f90db3750 Add -moz-win-accentcolor(text)
#31 points 1 and 2
2019-02-15 23:29:07 +08:00
wolfbeast
6a03b3bc1a Add @media(-moz-windows-accent-color-applies)
#31 point 3
2019-02-15 23:29:05 +08:00
Roy Tam
dcd9973243 import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00