Review Mozilla 1974744: Remove deprecated "web-extension-on-update-prompt" code in v144 before Gecko version gets increase to 145 on 2025-09-15
🔍 Bugzilla Audit
Bugzilla: https://bugzilla.mozilla.org/show_bug.cgi?id=1974744
Description
This created an error when trying to build the 144 rebase for the first time.
1:30.94 FAILURE: Build failed with an exception.
1:30.94 * What went wrong:
1:30.94 Execution failed for task ':geckoview:compileDebugJavaWithJavac'.
1:30.94 > Compilation failed; see the compiler output below.
1:30.94 Note: Recompile with -Xlint:deprecation for details.
1:30.94 /home/piero/Tor/rebases/build/mobile/android/geckoview/src/main/java/org/mozilla/geckoview/WebExtensionController.java:1258: error: cannot find symbol
1:30.94 if (promptBypass(currentExtension, callback)) {
1:30.94 ^
1:30.94 symbol: variable currentExtension
1:30.94 location: class WebExtensionController
1:30.94 Note: Some input files use or override a deprecated API.
1:30.94 1 error
The reason is that 222fddbe removed currentExtension and updatedExtension in favor of just extension.
We might want to have a deeper look at the thing though.