v128 shows all right click menu items (WASM false)
Categories
(Firefox :: Translations, defect)
Tracking
()
People
(Reporter: mareh85601, Assigned: gregtatum)
References
Details
Attachments
(3 files)
35.00 KB,
image/png
|
Details | |
36.50 KB,
image/png
|
Details | |
48 bytes,
text/x-phabricator-request
|
dmeehan
:
approval-mozilla-esr128+
|
Details | Review |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0
Steps to reproduce:
Use Mozilla Firefox v128.0 (64 bit Windows desktop) without add-ons or anything
Go to about:config and set javascript.options.wasm to false.
Restart Firefox
Open a new empty tab (or any site) and right click in the body.
Actual results:
The right click context menu opens and contains all possible items. See attached screenshot.
Expected results:
The right click context menu should show only relevant items.
For example, the video items should only be listed when right clicking on a video.
Notes:
In previous verions this worked fine.
When javascript.options.wasm starts true and it set to false, the context menu functions fine. It seems wasm is required for initialisation while it was not required in previous versions.
Comment 1•2 months ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::JavaScript: WebAssembly' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 2•2 months ago
|
||
From the description, this does not sound like an issue with WebAssembly execution, but with something in the frontend ceasing to work when WebAssembly is not available.
For the reporter, if you go to the menu > more tools > browser console, do you see any interesting messages that could point to which part of the browser UI is going wrong when wasm is disabled?
Reporter | ||
Comment 3•2 months ago
|
||
Yes, this console shows error messages.
ReferenceError: WebAssembly is not defined
detectSimdSupport resource://gre/actors/TranslationsParent.sys.mjs:2737
getIsTranslationsEngineSupported resource://gre/actors/TranslationsParent.sys.mjs:644
_updateElementsForContentType chrome://browser/content/browser.js:3752
onStateChange chrome://browser/content/browser.js:3492
XWB_onUpdateCurrentBrowser chrome://browser/content/browser.js:3965
callListeners chrome://browser/content/tabbrowser/tabbrowser.js:1027
_callProgressListeners chrome://browser/content/tabbrowser/tabbrowser.js:1041
updateCurrentBrowser chrome://browser/content/tabbrowser/tabbrowser.js:1298
_setupEventListeners chrome://browser/content/tabbrowser/tabbrowser.js:6157
set selectedIndex chrome://global/content/elements/tabbox.js:236
set selectedPanel chrome://global/content/elements/tabbox.js:246
set selectedIndex chrome://global/content/elements/tabbox.js:599
set selectedItem chrome://global/content/elements/tabbox.js:617
set selectedTab chrome://global/content/elements/tabbox.js:80
set selectedTab chrome://browser/content/tabbrowser/tabbrowser.js:467
_blurTab chrome://browser/content/tabbrowser/tabbrowser.js:4653
_beginRemoveTab chrome://browser/content/tabbrowser/tabbrowser.js:4233
removeTab chrome://browser/content/tabbrowser/tabbrowser.js:4093
on_click chrome://browser/content/tabbrowser/tabs.js:305
handleEvent chrome://browser/content/tabbrowser/tabs.js:1858
tabbrowser.js:1032:23
Reporter | ||
Comment 4•2 months ago
|
||
Updated•2 months ago
|
Assignee | ||
Comment 5•2 months ago
|
||
Updated•2 months ago
|
Assignee | ||
Updated•2 months ago
|
Assignee | ||
Updated•2 months ago
|
Comment 7•2 months ago
|
||
[Tracking Requested - why for this release]:
Comment 8•2 months ago
|
||
bugherder |
Updated•1 month ago
|
Assignee | ||
Comment 10•1 month ago
|
||
Comment on attachment 9416327 [details]
Bug 1909204 - Wrap Translations WebAssembly detection in a try/catch; r?#translations-reviewers!
ESR Uplift Approval Request
- If this is not a sec:{high,crit} bug, please state case for ESR consideration: This fixes breakage of the context menu, and is a simple try/catch fix for a runtime error.
- User impact if declined: Context menu will be broken.
- Fix Landed on Version:
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): It adds a try/catch for an unexpected runtime error.
Comment 11•1 month ago
|
||
Comment on attachment 9416327 [details]
Bug 1909204 - Wrap Translations WebAssembly detection in a try/catch; r?#translations-reviewers!
Approved for 128.2esr
Comment 12•1 month ago
|
||
uplift |
Updated•1 month ago
|
Comment 13•22 days ago
|
||
I attempted to verify the fix but couldn't reproduce the original issue following the steps provided in the Description. I tested on Windows 10 x64 with Firefox 128 (Build ID: 20240704121409), Firefox 128.0.3 (Build ID: 20240725162350), and Nightly 130.0a1 (Build ID: 20240726035627).
Greg, could you please let me know if there are any additional steps or settings required for me to reproduce the initial issue?
Assignee | ||
Comment 14•20 days ago
|
||
Hmm... the steps outlined seem reasonable. The only other thing to verify is that in the steps to reproduce it's actually showing the context menu "Translate Selection to English" as that's the codepath that was triggering the error.
Comment 15•20 days ago
|
||
I am also not able to reproduce in Windows 10 build 19045.4780 or Windows 11 build 22631.4037 with Firefox Release v128.0.2 (20240722223746) or Firefox v129.0.2 (20240819150008). The long list of context menu options is not showing, only the relevant ones and the Translate Selection to English or Translate Link Text to English are shown in both the affected and unaffected versions while the mentioned error is not seen in the Console. The issue could not be reproduced.
Comment 16•17 days ago
|
||
Removing the qe-verify + flag as QA can't validate de fix without being able to reproduce the initial issue.
Description
•