gecko/testing/specialpowers/jar.mn
Alexandre Lissy 8d98e06403 Bug 1130287 - Expose isB2G in SpecialPowers. r=sicking
Some mochitests needs to behave differently when ran on B2G Desktop.
Currently, this is implemented using user agent string detection,
mostly relying on "Mobile" being present and "Android" being absent.
This is only true on B2G Desktop when ran on Try because the mozconfig
defined FXOS_SIMULATOR and that, per bug 1115935, this substring is only
added in this case, but not if just MOZ_B2G is defined. A better
approach is to expose 'isB2G' in SpecialPowers for this kind of
detection.
2015-02-08 10:09:00 +01:00

18 lines
919 B
Plaintext

specialpowers.jar:
% content specialpowers %content/
content/specialpowers.js (content/specialpowers.js)
* content/specialpowersAPI.js (content/specialpowersAPI.js)
content/SpecialPowersObserverAPI.js (content/SpecialPowersObserverAPI.js)
content/MozillaLogger.js (content/MozillaLogger.js)
% resource specialpowers %modules/
modules/MockFilePicker.jsm (content/MockFilePicker.jsm)
modules/MockColorPicker.jsm (content/MockColorPicker.jsm)
modules/MockPermissionPrompt.jsm (content/MockPermissionPrompt.jsm)
modules/MockPaymentsUIGlue.jsm (content/MockPaymentsUIGlue.jsm)
modules/Assert.jsm (../modules/Assert.jsm)
% component {59a52458-13e0-4d93-9d85-a637344f29a1} components/SpecialPowersObserver.js
% contract @mozilla.org/special-powers-observer;1 {59a52458-13e0-4d93-9d85-a637344f29a1}
% category profile-after-change @mozilla.org/special-powers-observer;1 @mozilla.org/special-powers-observer;1