Ctrl+Alt+R restarts Abrowser instead of toggling reader view

Abrowser's reader view is one of my favourite features. However its keyboard shortcut `Ctrl+Alt+R` restarts my Abrowser instead of toggling the reader view.

Although clicking the reader view icon works, and `Alt+V Alt+R` (menu keyboard shortcut) works, I still hope to resolve the `Ctrl+Alt+R` issue.

This issue occurs in Abrowser's safe mode and in Trisquel 11's Live CD mode, both are in MATE. The issue does not occur in KDE.

It seems that `Ctrl+Alt+R` is bound to the function that the "Restart normally..." in `about:profiles` page is bound to.

My environment: Trisquel 11 MATE.

Mon, 07/17/2023 - 18:48

I guessed it right, it is a wrong key binding.

The workaround for the current running parent process is as follows.

Sandwich menu > More tools > Browser Toolbox, in the Inspector, search HTML "#mainKeyset", expand the node, we can see that two commands are bound to the same key "Ctrl+Alt+R": cmd_quickRestart and cmd_toggleReaderMode.

The binding of quickRestart shadows the binding of toggleReaderMode. Deleting the XML node for quickRestart binding resolves the issue, and the "Ctrl+Alt+R" works for toggling reader mode.

However, I don't know how to store the config change. Without the persistence, after we restart the browser, the fix is gone.

Tue, 07/18/2023 - 03:30

I've found the root cause: in source file `firefox-115.0.2+build1/toolkit/modules/AppConstants.sys.mjs`, constant `MOZILLA_OFFICIAL` is set to `false`, which triggers the developer helper code which adds the keybinding for `cmd_quickRestart`.

Related source files:
- firefox-115.0.2+build1/toolkit/modules/AppConstants.sys.mjs
- firefox-115.0.2+build1/browser/base/content/browser.js
- firefox-115.0.2+build1/browser/base/content/browser-development-helpers.js