-
- Downloads
Bug 1667276 - Part 3: Load a custom prefs file when running a background task. r=mossop,KrisWright
There are some complications here to handle unpackaged and packaged builds. In addition, there could be a difference between App prefs and GRE prefs. Since the underlying backgroundtasks code is built as part of Gecko (i.e., `toolkit/...` rather than `browser/...`) I have favoured GRE prefs. I think, however, that what is written will work for App-specific prefs, but I'm not concerned with that detail at this time. This also add tests for backgroundtask-specific prefs, which are structured as both xpcshell and mochitest-chrome tests because locally, the former tests unpackaged builds and the latter can accommodate testing packaged builds. We could use mochitest-chrome for both, but this has been pleasant to work with locally. Differential Revision: https://phabricator.services.mozilla.com/D97510
parent
02c231aa
No related branches found
No related tags found
Showing
- .eslintignore 3 additions, 0 deletions.eslintignore
- .prettierignore 3 additions, 0 deletions.prettierignore
- browser/installer/Makefile.in 4 additions, 0 deletionsbrowser/installer/Makefile.in
- browser/installer/package-manifest.in 6 additions, 0 deletionsbrowser/installer/package-manifest.in
- modules/libpref/Preferences.cpp 29 additions, 0 deletionsmodules/libpref/Preferences.cpp
- modules/libpref/moz.build 3 additions, 0 deletionsmodules/libpref/moz.build
- toolkit/components/backgroundtasks/defaults/backgroundtasks.js 27 additions, 0 deletions...it/components/backgroundtasks/defaults/backgroundtasks.js
- toolkit/components/backgroundtasks/moz.build 9 additions, 0 deletionstoolkit/components/backgroundtasks/moz.build
- toolkit/components/backgroundtasks/tests/BackgroundTask_backgroundtask_specific_pref.jsm 23 additions, 0 deletions...sks/tests/BackgroundTask_backgroundtask_specific_pref.jsm
- toolkit/components/backgroundtasks/tests/browser/browser.ini 9 additions, 0 deletionstoolkit/components/backgroundtasks/tests/browser/browser.ini
- toolkit/components/backgroundtasks/tests/browser/browser_backgroundtask_specific_pref.js 23 additions, 0 deletions...sks/tests/browser/browser_backgroundtask_specific_pref.js
- toolkit/components/backgroundtasks/tests/browser/head.js 66 additions, 0 deletionstoolkit/components/backgroundtasks/tests/browser/head.js
- toolkit/components/backgroundtasks/tests/xpcshell/test_backgroundtask_specific_pref.js 20 additions, 0 deletions...tasks/tests/xpcshell/test_backgroundtask_specific_pref.js
- toolkit/components/backgroundtasks/tests/xpcshell/xpcshell.ini 1 addition, 0 deletions...it/components/backgroundtasks/tests/xpcshell/xpcshell.ini
- toolkit/xre/nsXREDirProvider.cpp 10 additions, 0 deletionstoolkit/xre/nsXREDirProvider.cpp
Loading
Please register or sign in to comment