mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
8d98e06403
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.
18 lines
919 B
Plaintext
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
|