Closed Bug 1464263 Opened 6 years ago Closed 6 years ago

Update content module settings on initialization

Categories

(GeckoView :: General, defect, P1)

51 Branch
All
Android
defect

Tracking

(firefox61 wontfix, firefox62 fixed)

RESOLVED FIXED
mozilla62
Tracking Status
firefox61 --- wontfix
firefox62 --- fixed

People

(Reporter: esawin, Assigned: esawin)

References

Details

Attachments

(1 file, 2 obsolete files)

In bug 1459759 we've fixed setting propagation to content modules on initialization, but have since regressed that in bug 1460047 by only updating settings for enabled modules.
Some modules need to apply setting during initialization (e.g., for tracking protection), I don't think this should depend on the enabled state.
Attachment #8980446 - Flags: review?(nchen)
Priority: -- → P1
Assignee: nobody → esawin
Attachment #8980446 - Attachment is obsolete: true
Attachment #8980446 - Flags: review?(nchen)
Attachment #8980677 - Flags: review?(nchen)
Comment on attachment 8980677 [details] [diff] [review]
0003-Bug-1464263-1.1-Update-settings-for-non-enabled-modu.patch

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

r+ with nit.

::: mobile/android/chrome/geckoview/geckoview.js
@@ +62,5 @@
>  
>      this.forEach(module => {
>        module.onInit();
>      });
> +    this._updateSettings(this._settings);

Instead of calling `_updateSettings` here, I think it's better to call `this._impl.onSettingsUpdate();` inside `ModuleInfo.onInit()`, right after `this._impl.onInit();`
Attachment #8980677 - Flags: review?(nchen) → review+
Addressed comment.
Attachment #8980677 - Attachment is obsolete: true
Attachment #8980707 - Flags: review+
Pushed by esawin@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/352257f10f20
[1.2] Update settings for non-enabled modules. r=jchen
https://hg.mozilla.org/mozilla-central/rev/352257f10f20
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: