Closed Bug 1459759 Opened 6 years ago Closed 6 years ago

Update settings when content module has registered

Categories

(GeckoView :: General, enhancement)

51 Branch
All
Android
enhancement
Not set
normal

Tracking

(firefox62 fixed)

RESOLVED FIXED
mozilla62
Tracking Status
firefox62 --- fixed

People

(Reporter: esawin, Assigned: esawin)

References

Details

Attachments

(1 file)

Initial module settings are no longer propagated to frame scripts.
We have to send the initial settings to content modules on registration. Currently, initialization settings are never set in content modules.
Assignee: nobody → esawin
Attachment #8973864 - Flags: review?(nchen)
Comment on attachment 8973864 [details] [diff] [review]
0001-Bug-1459759-1.0-Send-settings-to-content-modules-on-.patch

Review of attachment 8973864 [details] [diff] [review]:
-----------------------------------------------------------------

::: mobile/android/modules/geckoview/GeckoViewModule.jsm
@@ +79,5 @@
>          }
>          self.messageManager.removeMessageListener("GeckoView:ContentRegistered",
>                                                    listener);
> +        self.messageManager.sendAsyncMessage("GeckoView:UpdateSettings",
> +                                             self.settings);

This is okay, though "GeckoView:UpdateSettings" will be handled by every module that's currently loaded. We should fix that in the future.
Attachment #8973864 - Flags: review?(nchen) → review+
Pushed by esawin@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/44fb2f695bd7
[1.0] Send settings to content modules on registration. r=jchen
https://hg.mozilla.org/mozilla-central/rev/44fb2f695bd7
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 62
Blocks: 1458327
Product: Firefox for Android → GeckoView
Target Milestone: Firefox 62 → mozilla62
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: