mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 866301 - Part 4. Turn on Intl API for B2G. r=fabrice,waldo
This commit is contained in:
parent
3f33560589
commit
12a70c3b4d
@ -8954,11 +8954,8 @@ dnl ========================================================
|
||||
# builds. Bugs to enable:
|
||||
#
|
||||
# Android: bug 864843
|
||||
# B2G: bug 866301
|
||||
|
||||
if test "$MOZ_WIDGET_TOOLKIT" = "android" ||
|
||||
test "$MOZ_BUILD_APP" = "b2g" ||
|
||||
test "$MOZ_BUILD_APP" = "b2g/dev"; then
|
||||
if test "$MOZ_WIDGET_TOOLKIT" = "android"; then
|
||||
_INTL_API=no
|
||||
else
|
||||
_INTL_API=yes
|
||||
|
@ -61,7 +61,7 @@ var ecmaGlobals =
|
||||
"Int32Array",
|
||||
"Int8Array",
|
||||
"InternalError",
|
||||
{name: "Intl", desktop: true},
|
||||
{name: "Intl", android: false},
|
||||
"Iterator",
|
||||
"JSON",
|
||||
"Map",
|
||||
@ -1391,6 +1391,7 @@ function createInterfaceMap(isXBLScope) {
|
||||
var isRelease = !version.contains("a");
|
||||
var isDesktop = !/Mobile|Tablet/.test(navigator.userAgent);
|
||||
var isB2G = !isDesktop && !navigator.userAgent.contains("Android");
|
||||
var isAndroid = navigator.userAgent.contains("Android");
|
||||
var hasPermission = function (aPermissions) {
|
||||
var result = false;
|
||||
for (var p of aPermissions) {
|
||||
@ -1410,6 +1411,7 @@ function createInterfaceMap(isXBLScope) {
|
||||
(entry.xbl === !isXBLScope) ||
|
||||
(entry.desktop === !isDesktop) ||
|
||||
(entry.b2g === !isB2G) ||
|
||||
(entry.android === !isAndroid) ||
|
||||
(entry.release === !isRelease) ||
|
||||
(entry.pref && !prefs.getBoolPref(entry.pref)) ||
|
||||
(entry.permission && !hasPermission(entry.permission))) {
|
||||
|
@ -35,7 +35,7 @@ var ecmaGlobals =
|
||||
"Int32Array",
|
||||
"Int8Array",
|
||||
"InternalError",
|
||||
{name: "Intl", b2g: false, android: false},
|
||||
{name: "Intl", android: false},
|
||||
"Iterator",
|
||||
"JSON",
|
||||
"Map",
|
||||
|
@ -35,7 +35,7 @@ var ecmaGlobals =
|
||||
"Int32Array",
|
||||
"Int8Array",
|
||||
"InternalError",
|
||||
{name: "Intl", b2g: false, android: false},
|
||||
{name: "Intl", android: false},
|
||||
"Iterator",
|
||||
"JSON",
|
||||
"Map",
|
||||
|
Loading…
Reference in New Issue
Block a user