Closed Bug 2056089 Opened 4 months ago Closed 4 months ago

Remove security.allow_eval_with_system_principal from devtools tests that do not need it

Categories

(DevTools :: Storage Inspector, task)

task

Tracking

(firefox155 fixed)

RESOLVED FIXED
155 Branch
Tracking Status
firefox155 --- fixed

People

(Reporter: robwu, Assigned: robwu)

References

Details

Attachments

(1 external file)

I found some devtools tests that set security.allow_eval_with_system_principal to true, but there is nothing in these tests requiring the pref today:

  • bug 1504207 added it to devtools/client/storage/test/browser_storage_cookies_hostOnly.js
  • bug 1504605 added it to devtools/client/storage/test/browser_storage_dynamic_updates_cookies.js
  • bug 1907570 added it to devtools/client/storage/test/browser_storage_cookies_partitioned.js , likely cargo culted from browser_storage_dynamic_updates_cookies.js

At the time of authoring, the top two tests likely needed the pref, but that reason disappeared in bug 1550476. I deleted these lines and the tests still pass.

These prefs became obsolete by the change from bug 1550476.

The Bugbug bot thinks this bug should belong to the 'DevTools::Storage Inspector' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: General → Storage Inspector
Assignee: nobody → rob
Status: NEW → ASSIGNED
Pushed by rob@robwu.nl: https://github.com/mozilla-firefox/firefox/commit/07ba01c1c98e https://hg.mozilla.org/integration/autoland/rev/fba39abc7430 Remove obsolete pref from storage-related devtools tests r=devtools-reviewers,nchevobbe
Status: ASSIGNED → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 155 Branch
QA Whiteboard: [qa-triage-done-c156/b155]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: