forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1859585 - Add a new onReady delegated method to the GeckoView Add…
…onManagerDelegate. r=amejiamarmol,willdurand,owlish This patch includes the following changes: - A new AddonManagerDelegate.onReady delegated method: this new delegated method is expected to be called when an extension has been started. On the firefox-android's android-components side (in particular the components providing the building blocks used by the Fenix AddonManager UI) are meant to be using this new delegated method to make sure that the resolved optionsPageUrl will be stored in the installedExtension map kept on the android-components side (by the WebExtensionSupport class to be precise), as a side-effect of that the settings button in the addon detail view is expected to become visible after having installed a new extension from AMO (as it was already the case for addons installed from the recommended set directly from the Fenix Addon Manager). - Removes the implicit await on the extension to be ready from the underlying logic handling on the Gecko side the calls to the WebExtensionController.install method (which before these changes was the hack meant to make sure the settings button would be visible after installing an addon from the Fenix AddonManager UI). - Replaces the previous test case asserting that the optionsPageUrl was going to be available right after having installed the extension (which was working only thanks to the implicit await described right above) with a test case covering the new expected behavior. NOTE: To fully fix the issue tracked by this bugzilla ticket, this change has to be complemented with some more changes on the firefox-android github repo side, in particular the once included in this draft patch: - https://gist.githubusercontent.com/rpl/b87634df091214b14263216680b098e3/raw/630e305adba4f4867586729f01efe55e03ad367d/firefox-android--01-androidcomponents-changes.patch Differential Revision: https://phabricator.services.mozilla.com/D193085
- Loading branch information
Showing
7 changed files
with
122 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,5 +16,8 @@ | |
"matches": ["*://*.example.com/*"], | ||
"js": ["borderify.js"] | ||
} | ||
] | ||
], | ||
"options_ui": { | ||
"page": "dummy.html" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters