Commit graph

1,373 commits

Author SHA1 Message Date
Martok
4354c7a1bc Issue #2030 - Allow child nodes of button to participate in mouse hit tests
This is needed for web compatibility, even if standards compliance is debatable.
2022-12-02 23:55:57 +08:00
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
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
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
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
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
Moonchild
d2276a48d2 Issue #1977 - Follow-up: Correct pref check to be selective on wave formats only. 2022-09-23 11:04:00 +08:00
Moonchild
95120acbb2 [DOM security] Be more explicit about CSP checks and reports. 2022-09-22 10:18:33 +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
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
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
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
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
Moonchild
bf58945866 [DOM] Add extra check for performance API Next Hop protocol 2022-07-30 08:43:44 +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
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
Martok
85af7f6e80 Issue #1952 - m-c 1383775: Clean up function toString/toSource code, remove remnants of source decompiler 2022-07-03 06:55:19 +08:00
Moonchild
c43ed8d93e Issue #21 - Follow-up: Remove some left-over telemetry plumbing. 2022-06-27 21:48:09 +08:00
Brian Smith
95f1786bb4 Issue #1905 - Part 4c - Follow Firefox and Safari in reporting "Intel" for Mac ARM64 devices. Based on Mozilla bug 1655285. 2022-06-22 09:00:31 +08:00
Brian Smith
7e63a3f440 Issue #1905 - Part 4b - Fix issue loading the profile and saving changes to the profile. Based on the following Mozilla bugs: 1659904, 1659905 and 1659077. 2022-06-22 08:55:22 +08:00
Moonchild
9fa9622d5b [DOM] Clip image data transfers. 2022-06-02 10:11:38 +08:00
Moonchild
3bcd2ee360 [DOM] Don't allow internal MIME types to be assigned to DataTransfer
We already blocked x-moz-file(-promise) and x-moz-place* but of course people
would find ways to abuse other internal types. This change now blocks everything
except x-moz-url types which are harmless. (i.e. whitelist instead of blacklist)
2022-05-31 09:41:43 +08:00
Jeremy Andrews
e632fc1e8c Issue #1742 - Part 4: Don't trigger read barriers when comparing wrapped pointers types
This is actually an undocumented dependency of Bug 1325406 for Linux and
SunOS.

Ref: BZ 1308236
2022-05-31 09:12:45 +08:00
Moonchild
80d7d43961 Issue #1742 - Part 1: Refactor rooting base class templates
Based on Bug 1325406
2022-05-31 09:12:19 +08:00
trav90
5c61382dac Issue #457 - Silence some GCC compiler warnings in FFmpeg code 2022-05-22 06:47:01 +08:00
Moonchild
62a140ab80 Bug 1679987 - Remove unused includes of nsCharSeparatedTokenizer.h. 2022-05-22 06:46:06 +08:00
Moonchild
28821219dd Bug 1761981 2022-05-05 10:43:52 +08:00
Moonchild
50965fb223 No issue - Align our resource timing with the updated Fetch spec.
This makes FetchStart use StartTime() when the TAO check fails for
PerformanceResourceTiming

Given the recent Fetch spec updates, Step 8.1 in
https://fetch.spec.whatwg.org/#finalize-and-report-timing specifies that start
time(StartTime) and post-redirect start time(FetchStart) should be start time
when the TAO check fails.
2022-05-05 09:10:09 +08:00
Moonchild
009fb3146f Issue #1820 - Part 8: Check bit depth in PDM::Supports. 2022-05-04 10:06:02 +08:00
Moonchild
c8637cc239 Issue #1820 - Part 7: Check bit depth in WebMDecoder to determine if we support HDR. 2022-05-04 10:05:58 +08:00
Moonchild
14f0f80cd1 Issue #1820 - Part 6: Extract bit depth information from codec parameter string into VideoInfo::mBitDepth. 2022-05-04 10:05:22 +08:00