Commit graph

1,328 commits

Author SHA1 Message Date
Martok
4d310562d9 Issue #2030 - (chore) refactor event dispatch functions
Based on selected bits of M-C 1461708:
- EventStateManager::CheckForAndDispatchClick() to early-return style
- split EventStateManager::CheckForAndDispatchClick() into:
  EventCausesClickEvents, PostHandleMouseUp, DispatchClickEvents
- Move implementation of UIEvent::GetRangeParent() and UIEvent::RangeOffset() to nsLayoutUtils
2022-12-02 23:55:37 +08:00
roytam1
de0b4ac202 Merge remote-tracking branch 'origin/tracking' into custom 2022-11-25 11:46:08 +08:00
Moonchild
f35ae1ce7b Issue #2019 - Follow-up: Make nsPluginInstanceOwner also listen to keypress events in the system event group.
nsPluginInstanceOwner only listens to keypress events in the default event group.
However, in our changed operating mode, keypress events are not fired in the
default event group if the key does not result in something printable.
This means that nsPluginInstanceOwner should also listen to keypress events
in the system event group and should handle each keypress that way, but
only once. I.e., if a printable keypress event is received in the system event
group, it should be ignored, since it would've already been handled in the
default event group in that case.
2022-11-25 11:45:41 +08:00
Moonchild
37f0199c79 [Network, DOM] Align our implementation with the current CORS/Fetch spec. 2022-11-25 11:41:52 +08:00
roytam1
f9dc0e6d15 Merge remote-tracking branch 'origin/tracking' into custom 2022-11-10 14:55:46 +08:00
Moonchild
211b7cf219 Issue #2024 - Part 1: Add wildcard to Access-Control-Expose-Headers
For requests without credentials, add wildcard to Access-Control-Expose-Headers.
2022-11-10 14:54:33 +08:00
roytam1
5f18cf3bed Merge remote-tracking branch 'origin/tracking' into custom 2022-10-27 09:04:51 +08:00
Moonchild
2f0acd868e [WebGL] Implement webgl.max-size-per-texture-mib 2022-10-27 09:04:31 +08:00
Moonchild
e69b52eac1 Hold some strong references on nsRefreshDriver 2022-10-27 09:03:27 +08:00
Moonchild
2e944692c3 Issue #21 - Remove panning/tab animation performance measurements
Based on FranklinDM's follow-up for the issue.

This would require browser FE changes, particularly removing the associated
code in `tabbrowser.xml`, however, that was already done in Pale Moon previously.
Other front-end applications may need to take note, though.

Based on changes from the following bugs:
* Bug 696398 - Need an api to analyze panning performance
* Bug 800031 - Include paint time in tab switch telemetry
* Bug 820167 - Enable performance measurement of tab animation
* Bug 826383 - Improve Start/Stop FrameTimeRecording for telemetry usage
2022-10-27 08:59:25 +08:00
Basilisk-Dev
9277c9418d Issue #1375 - Don't mark nodes in the shadow tree as orphan nodes
Port of Bug 1026714
2022-10-27 08:58:24 +08:00
roytam1
221a4433e3 Merge remote-tracking branch 'origin/tracking' into custom 2022-10-13 10:40:39 +08:00
Job Bautista
d367067698 Issue #1375 - Use nsIAtom* instead of nsAtom* for CE Upgrade function.
We haven't refactored nsIAtom* as Mozilla did yet.
2022-10-12 17:20:51 +08:00
Job Bautista
bc36c607a9 Issue #1375 - Implement customElements.upgrade.
Backported from Mozilla bug 1443722.
2022-10-12 17:20:32 +08:00
roytam1
67177c6722 backout bug1767365 part from rev 591552c5 as it cause crash in viewing https://www.ventusky.com/?w=off 2022-09-24 23:47:50 +08:00
roytam1
f84bc6d605 Merge remote-tracking branch 'origin/tracking' into custom 2022-09-23 11:04:25 +08:00
Moonchild
d2276a48d2 Issue #1977 - Follow-up: Correct pref check to be selective on wave formats only. 2022-09-23 11:04:00 +08:00
roytam1
968135355d Merge remote-tracking branch 'origin/tracking' into custom 2022-09-22 10:19:31 +08:00
Moonchild
95120acbb2 [DOM security] Be more explicit about CSP checks and reports. 2022-09-22 10:18:33 +08:00
roytam1
591552c5bb partly import changes from tenfourfox:
- #651: M1767365+backbugs M1757604 M1771774 M1776658 (bc6daa0ae)
2022-09-19 16:18:37 +08:00
roytam1
92cf687331 Merge remote-tracking branch 'origin/tracking' into custom 2022-09-09 10:31:15 +08:00
Job Bautista
b93c4ada8a Issue #1995 - Fix build bustage in GCC 12
For some reason, GCC 12 is treating this include as a circular dependency.
See athenian200's analysis for more details.
2022-09-09 10:13:16 +08:00
Moonchild
60e4e33442 Issue #80 - Re-unify most of DOM 2022-09-09 10:09:40 +08:00
roytam1
866ded0b0a Merge remote-tracking branch 'origin/tracking' into custom 2022-09-07 11:03:19 +08:00
Moonchild
142f08ce1f Issue #1720 - Follow-up: Explicitly include X11UndefineNone.h in HTMLOptGroupElement.cpp to fix unified building on X11 2022-09-07 11:02:14 +08:00
Moonchild
5dfded811d Issue #80 - reinstated unified building for some large chunks of our code.
This should reduce compile complexity saving time and reducing linker stress.
2022-09-07 10:36:23 +08:00
roytam1
64173440fc Merge remote-tracking branch 'origin/tracking' into custom 2022-09-02 11:00:51 +08:00
Brian Smith
b14a145be6 Issue #1990 - Part 6 - Fix for infinite loop from Release() on shutdown worker. If the worker is shut down, call Cancel() on the Runnable, this will prevent nsInputStreamReadyEvents to be called again when deallocated. 2022-09-02 11:00:19 +08:00
Brian Smith
5fd53649bd Issue #1990 - Part 5 - Common up the skippability implementations that are basically copy/pastes of the DOMEventTargetHelper one. Mozilla Bug Bug 1333540. Skipped the renamed of various functions, but otherwise a direct port. 2022-09-02 11:00:06 +08:00
Brian Smith
9f945d160d Issue #1990 - Part 4 - Add a number of Mozilla patches from between Part 1 and 2. 1334081 - prevent null pointer dereference in StreamReaderFunc. 1330631 - Convert the EventSourceImpl::Message to be UniquePtr. 1337619 - Reset mGoingToDispatchAllMessages flag before early return. 2022-09-02 10:59:52 +08:00
Brian Smith
70fbdd82b8 Issue #1990 - Part 3 - Fix build issue due to missing nsIThreadRetargetableStreamListener definition. 2022-09-02 10:59:31 +08:00
Brian Smith
ee996121aa Issue #1990 - Part 2 - Fix crash when incorrectly access EventSourceImpl::mEventSource. - Mozilla Bug 1333099 2022-09-02 10:59:17 +08:00
Brian Smith
e27289d569 Issue #1990 - Part 1 - EventSource for workers - Mozilla Bug 1267903 2022-09-02 10:59:03 +08:00
roytam1
e235eb81c6 Merge remote-tracking branch 'origin/tracking' into custom 2022-09-01 10:29:38 +08:00
Moonchild
a83111160f Issue #1956 - Fix C++ code standard conformance issue in webaudio 2022-09-01 10:19:09 +08:00
Basilisk-Dev
b4c5ebf00a Issue #1991 - backport Mozilla bug 1266667 2022-09-01 10:18:39 +08:00
Basilisk-Dev
536099d86b Issue #1991 - Remove console log stating TURNS is not supported Port of Mozilla bug 1383575 2022-09-01 10:18:25 +08:00
Basilisk-Dev
2dc4713d14 Issue #1991 - Support TURN TLS Support in WebRTC Backport of Mozilla bug 1056934 2022-09-01 10:18:07 +08:00
roytam1
34a7589a27 Merge remote-tracking branch 'origin/tracking' into custom 2022-08-04 14:26:42 +08:00
Job Bautista
b3e43f41a8 Issue #1980 - Fix build bustage for applications where WebRTC building is enabled.
Turns out we have a duplicate VoidFunction callback in the WebIDLs. Per
 Mozilla bug 1324169, we should remove this callback from
 RTCPeerConnection.webidl and let Function.webidl handle it instead.
The AttributeError faced by the new Basilisk dev wasn't helpful at all;
 and turns out Mozilla had this exact same issue on bug 1505504. We're
 also backporting that just in case we encounter another case of
 callback duplication.
Also doing a minor fix in the MicroTaskRunnable class which Moonchild
 forgot to do while working on Issue #1895.
2022-08-04 14:26:21 +08:00
Job Bautista
0c5c349ca6 Issue #1977 - Bring back old behavior behind a pref.
I've thought about this before creating the issue, and Moonchild
 wanted this as well.
2022-08-04 14:26:01 +08:00
Job Bautista
707d744219 Issue #1977 - Allow WAV into media document.
Based on https://hg.mozilla.org/integration/mozilla-inbound/rev/b3f7abd15aeb
2022-08-04 14:25:48 +08:00
roytam1
1822f2031e Merge remote-tracking branch 'origin/tracking' into custom 2022-07-30 08:49:22 +08:00
Moonchild
bf58945866 [DOM] Add extra check for performance API Next Hop protocol 2022-07-30 08:43:44 +08:00
roytam1
cc3a2ef623 Merge remote-tracking branch 'origin/tracking' into custom 2022-07-15 08:55:29 +08:00
Jeremy Andrews
d50a7a5394 Issue #1956 - Fix symbol visibility issue more elegantly.
All it needed was __declspec(dllexport) on the function I was copy/pasting all over the place...
2022-07-15 08:53:16 +08:00
Moonchild
8831656c85 Issue #1959 - Don't apply CSPs to explicit data documents and images.
This resolves #1959
2022-07-15 08:50:41 +08:00
roytam1
206c9dcbbf Merge remote-tracking branch 'origin/tracking' into custom 2022-07-05 17:28:42 +08:00
Moonchild
c0429c9a0f [DOM] use the sanitizer to restrict href in svg:use to fragment-only URLs 2022-07-05 17:25:00 +08:00
Moonchild
6066cc36cd [DOM media] Remove potentially unsafe type accesses when debug logging 2022-07-05 17:20:51 +08:00