Closed Bug 1690698 Opened 4 years ago Closed 4 years ago

Allow to set configuration flags via the DevTools watcher

Categories

(DevTools :: Framework, task, P3)

task

Tracking

(Fission Milestone:M7, firefox87 fixed)

RESOLVED FIXED
87 Branch
Fission Milestone M7
Tracking Status
firefox87 --- fixed

People

(Reporter: jdescottes, Assigned: jdescottes)

References

(Blocks 4 open bugs)

Details

(Whiteboard: dt-fission-m3-mvp)

Attachments

(7 files, 1 obsolete file)

We should leverage the watcher in order to set configuration flags that apply to the whole devtools session.

Example usage:

  • preferences read on the client but that also have an impact on the server (eg the server target switching pref for Bug 1644397)
  • settings currently set via target::reconfigure (cacheDisabled, ...)
Summary: Allow to set configuration flags vai the DevTools watcher → Allow to set configuration flags via the DevTools watcher

Julian, perhaps bug 1690703 is related?
Honza

Flags: needinfo?(jdescottes)
Blocks: 1690703

Commented, thanks for the the heads up!

Flags: needinfo?(jdescottes)

This flag will be needed for server side target switching as well.
Introducing it here will allow to update the configuration only on top level targets

Depends on D104392

With the Configuration actor the javascript enabled information should no longer be held by the target front.
This abstraction layer in target-list will make the transition easier.

Depends on D104429

Blocks: 1691661
Depends on: 1691682
Whiteboard: dt-fission-m3-triage
Blocks: 1691784
Attachment #9201774 - Attachment description: Bug 1690698 - [devtools] Allow to set configuration flags via the DevTools watcher → Bug 1690698 - [devtools] Introduce a watcher Configuration actor
Attachment #9201774 - Attachment description: Bug 1690698 - [devtools] Introduce a watcher Configuration actor → Bug 1690699 - [devtools] Introduce a watcher TargetConfiguration actor
Attachment #9201835 - Attachment description: Bug 1690698 - [devtools] Add test for watcher Configuration actor → Bug 1690698 - [devtools] Add a test for the watcher TargetConfiguration actor
Attachment #9201774 - Attachment description: Bug 1690699 - [devtools] Introduce a watcher TargetConfiguration actor → Bug 1690698 - [devtools] Introduce a watcher TargetConfiguration actor

Depends on D104424

performReload is not a regular configuration option as it is not persisted.
It is rather a flag for a single call to Target::reconfigure.
As we move configuration options outside of the target, it will be easier to drive the reload from the frontend.
The call sites using performReload are quite rare and only found in the netmonitor so it doesn't feel like this
requires a framework solution for now. We add explicit calls to TargetFront::reload() in spots where the netmonitor
used to pass performReload = true.

Attachment #9201921 - Attachment is obsolete: true
Whiteboard: dt-fission-m3-triage → dt-fission-m3-mvp
Blocks: 1692892
Pushed by jdescottes@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/2b8dc733141d
[devtools] Remove unused reconfigure trait r=nchevobbe
https://hg.mozilla.org/integration/autoland/rev/04398ec69bcf
[devtools] Add isTopLevelTarget flag on target actors r=ochameau
https://hg.mozilla.org/integration/autoland/rev/07a143d7c32a
[devtools] Expose isJavascriptEnabled API on TargetList r=ochameau,bomsy
https://hg.mozilla.org/integration/autoland/rev/a1b18b5de236
[devtools] Move calls to reconfigure behind TargetList::updateConfiguration r=ochameau,bomsy
https://hg.mozilla.org/integration/autoland/rev/b39b60e8120d
[devtools] Remove performReload option and call reload from the frontend r=ochameau,bomsy,devtools-backward-compat-reviewers
https://hg.mozilla.org/integration/autoland/rev/a66579c7109a
[devtools] Introduce a watcher TargetConfiguration actor r=ochameau,bomsy,devtools-backward-compat-reviewers
https://hg.mozilla.org/integration/autoland/rev/a5d53c7b02b4
[devtools] Add a test for the watcher TargetConfiguration actor r=bomsy,ochameau
Blocks: 1692961
Blocks: 1692965

This completed dt-fission-m3-mvp bug should have Fission Milestone M7 Beta.

Fission Milestone: --- → M7
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: