Closed Bug 1572529 Opened 4 months ago Closed 4 months ago

Convert vsync.parentProcess.highPriority to just use BrowserTabsRemoteAutoStart directly


(Core :: Preferences: Backend, task)

Not set



Tracking Status
firefox70 --- fixed


(Reporter: KrisWright, Assigned: KrisWright)


(Blocks 1 open bug)



(1 file)

Currently the pref vsync.parentProcess.highPriority is set with BrowserTabsRemoteAutoStart [1], and then a mirror variable sHighPriorityPrefValue uses the pref value. This pref doesn't appear to be used anywhere else, and it doesn't really fit the pattern of prefs. sHighPriorityPrefValue could probably just store the value from BrowserTabsRemoteAutoStart directly and use it from there.


I'm looking at the pref and from a quick search I don't see it being used anywhere. It also doesn't have an entry in all.js or other corresponding files. As it stands I don't think it would cause any problems to remove the pref entirely and just use a code constant. If not, the way we get the value will have to be refactored to fit the pattern of prefs. In BrowserTabsAutoRemoteStart it looks like the value relies on a few factors, including the value of a different pref, so this may not be possible.

Ehsan, since you reviewed bug 1352523, is it okay to remove the vsync.parentProcess.highPriority pref and store the value directly instead?

Flags: needinfo?(ehsan)

Hi Kris,

The purpose behind this pref was to use it as an emergency measure to turn off the feature. But ~2 years have passed, I think we can now remove both the pref and sHighPriorityPrefValue and the code that assumes it would be false.

Olli, what do you think?

Flags: needinfo?(ehsan) → needinfo?(bugs)

We have still non-e10s usage, so we need mozilla::BrowserTabsRemoteAutostart() call.
But just initializing sHighPriorityEnabled to mozilla::BrowserTabsRemoteAutostart() should be fine.

Flags: needinfo?(bugs)

Oh right yeah, we should keep non-e10s working of course.

Summary: Convert vsync.parentProcess.highPriority to just use BrowserTabsAutoRemoteStart directly → Convert vsync.parentProcess.highPriority to just use BrowserTabsRemoteAutoStart directly

Removes vsync.parentProcess.highPriority pref and stores BrowserTabsRemoteAutostart() directly into sHighPriorityEnabled.

Pushed by
Remove vsync.parentProcess.highPriority . r=smaug
Assignee: nobody → kwright
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla70
You need to log in before you can comment on or make changes to this bug.