Closed Bug 1641866 Opened 4 years ago Closed 4 years ago

XUL prototype cache preference ( `nglayout.debug.disable_xul_cache`) is not updated correctly if deleted at runtime

Categories

(Core :: XUL, defect)

defect

Tracking

()

RESOLVED FIXED
mozilla79
Tracking Status
firefox78 --- fixed
firefox79 --- fixed

People

(Reporter: Gijs, Assigned: Gijs)

References

Details

Attachments

(1 file)

https://searchfox.org/mozilla-central/source/toolkit/content/tests/chrome/RegisterUnregisterChrome.js calls clearUserPref, which doesn't work because we reuse the previous value as the default/fallback argument to GetBoolPref - so if the pref is set to true and then removed, we will keep the value as true forever.

This is unlikely to ever happen to users, but it caused a number of test issues in that directory, and is trivial to fix.

Assignee: nobody → gijskruitbosch+bugs
Status: NEW → ASSIGNED
Pushed by gijskruitbosch@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/d537537515d6
fix XUL cache disabling code to actually revert it, r=mossop
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla79

The patch landed in nightly and beta is affected.
:Gijs, is this bug important enough to require an uplift?
If not please set status_beta to wontfix.

For more information, please visit auto_nag documentation.

Flags: needinfo?(gijskruitbosch+bugs)

Comment on attachment 9152768 [details]
Bug 1641866 - fix XUL cache disabling code to actually revert it, r?Mossop

Beta/Release Uplift Approval Request

  • User impact if declined: n/a; testing impact would mean there'd be "surprising" test failures in some edgecases
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: n/a
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Very small change that affects a pref that doesn't appear in about:config and that users shouldn't have cause to set - and makes setting that pref more likely to have the correct effect
  • String changes made/needed: None
Flags: needinfo?(gijskruitbosch+bugs)
Attachment #9152768 - Flags: approval-mozilla-beta?

Comment on attachment 9152768 [details]
Bug 1641866 - fix XUL cache disabling code to actually revert it, r?Mossop

approved for 78.0b5

Attachment #9152768 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: