mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5160] [Issue]: Prevent unsupported long-task and mozInputSource console warnings #2854
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#2854
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SpicyMarinara on GitHub (Aug 16, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5160
Originally assigned to: @SpicyMarinara on GitHub.
Summary
The browser console shows two noisy compatibility/deprecation messages during Marinara Engine use:
Ensure Marinara-owned code does not emit either warning. Determine whether the
content.jscallsite belongs to the app, a bundled dependency, or an injected browser extension before changing behavior.Expected behavior
longtaskPerformanceObserverwhen the browser does not advertise support for that entry type.MouseEvent.mozInputSource, replace that path withPointerEvent.pointerTypeand an appropriate compatibility fallback.consoleor broadly filter browser warnings merely to hide them.content.jsis confirmed to be injected by a browser extension, record that finding because application code cannot safely suppress extension-owned console output.Suggested proof:
longtaskpath by stubbingPerformanceObserver.supportedEntryTypeswithoutlongtaskand verify thatobserve()is never called.mariPerfVerboseis enabled.mozInputSourcewarning in a clean browser profile with extensions disabled to establish whether Marinara owns it.Actual behavior
installLongTaskWarner()inpackages/client/src/lib/perf-diagnostics.tscurrently calls:inside a
try/catch. Some browsers warn about the unsupported entry type before throwing or ignoring it, so catching the call does not prevent console noise. The code should checkPerformanceObserver.supportedEntryTypesfirst.A repository-wide search, including installed dependencies, found no
mozInputSourceaccess. The reportedcontent.jsfilename commonly denotes an injected extension content script, so ownership of that second warning must be verified rather than papered over.Steps to reproduce
longtaskentry-type message.MouseEvent.mozInputSourcedeprecation warning.Environment
Logs, screenshots, or video
Additional context
Relevant app-owned code:
packages/client/src/lib/perf-diagnostics.ts, called frompackages/client/src/App.tsx. The diagnostics are opt-in throughlocalStorage.mariPerfVerbose, but unsupported APIs should still be feature-detected before use.Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (Aug 16, 2026):
PR #5166 feature-detects
PerformanceObserver.supportedEntryTypesbefore requestinglongtask, so the app-owned warning is prevented before the browser can emit it.I also rechecked Engine client/server/shared sources and the lockfile: there is no
mozInputSourceaccess. The reported callsite iscontent.js, consistent with injected extension code. Marinara cannot safely suppress another extension's console output without the prohibited broad console monkey-patch; if it reproduces with extensions disabled and DevTools identifies a Marinara bundle URL, please attach that source URL and we can reopen the ownership finding.