Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openthos
gecko-dev
提交
1d1c2a52
G
gecko-dev
项目概览
openthos
/
gecko-dev
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
gecko-dev
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
1d1c2a52
编写于
9月 07, 2016
作者:
W
Wes Kocher
浏览文件
操作
浏览文件
下载
差异文件
Merge beta to release to keep uplifts in sync a=merge
--HG-- extra : amend_source : d7882ea12d2846b8203bd25f055bdfd8fb978f1d
上级
45fc3980
1e15138b
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
71 addition
and
0 deletion
+71
-0
browser/components/nsBrowserContentHandler.js
browser/components/nsBrowserContentHandler.js
+7
-0
toolkit/mozapps/extensions/internal/XPIProvider.jsm
toolkit/mozapps/extensions/internal/XPIProvider.jsm
+5
-0
toolkit/mozapps/extensions/test/xpcshell/test_webextension_install.js
...pps/extensions/test/xpcshell/test_webextension_install.js
+45
-0
widget/windows/GfxInfo.cpp
widget/windows/GfxInfo.cpp
+14
-0
未找到文件。
browser/components/nsBrowserContentHandler.js
浏览文件 @
1d1c2a52
...
...
@@ -514,6 +514,13 @@ nsBrowserContentHandler.prototype = {
willRestoreSession
=
ss
.
isAutomaticRestoreEnabled
();
overridePage
=
Services
.
urlFormatter
.
formatURLPref
(
"
startup.homepage_override_url
"
);
// Temporary hack for Firefox 49 to show whatsnew for zh-TW.
// See Bug #1292637
var
locale
=
prefb
.
getCharPref
(
"
general.useragent.locale
"
);
if
(
locale
==
"
zh-TW
"
)
{
overridePage
=
"
https://www.mozilla.org/zh-TW/firefox/49.0/whatsnew/
"
;
}
if
(
prefb
.
prefHasUserValue
(
"
app.update.postupdate
"
))
overridePage
=
getPostUpdateOverridePage
(
overridePage
);
...
...
toolkit/mozapps/extensions/internal/XPIProvider.jsm
浏览文件 @
1d1c2a52
...
...
@@ -894,6 +894,11 @@ var loadManifestFromWebManifest = Task.async(function*(aUri) {
logger.warn("Ignoring applications property in manifest");
}
// A * is illegal in strict_min_version
if (bss.strict_min_version && bss.strict_min_version.split(".").some(part => part == "*")) {
logger.warn("The use of '*' in strict_min_version is deprecated");
}
let addon = new AddonInternal();
addon.id = bss.id;
addon.version = manifest.version;
...
...
toolkit/mozapps/extensions/test/xpcshell/test_webextension_install.js
浏览文件 @
1d1c2a52
...
...
@@ -175,3 +175,48 @@ add_task(function* test_two_ids() {
addon
.
uninstall
();
});
add_task
(
function
*
strict_min_star
()
{
const
addonId
=
"
strict_min_max@tests.mozilla.org
"
;
const
MANIFEST
=
{
name
:
"
strict min star test
"
,
description
:
"
test strict min with star
"
,
manifest_version
:
2
,
version
:
"
1.0
"
,
};
function
flushAndRemove
(
file
)
{
// flush JAR cache and remove the file
Services
.
obs
.
notifyObservers
(
file
,
"
flush-cache-entry
"
,
null
);
file
.
remove
(
true
);
}
// * in min will generate a warning
for
(
let
version
of
[
"
0.*
"
,
"
0.*.0
"
])
{
let
apps
=
{
applications
:
{
gecko
:
{
id
:
addonId
,
strict_min_version
:
version
,
},
},
}
let
testManifest
=
Object
.
assign
(
apps
,
MANIFEST
);
let
addonDir
=
writeWebManifestForExtension
(
testManifest
,
gTmpD
,
"
strict_min_star
"
);
let
{
messages
}
=
yield
promiseConsoleOutput
(
function
*
()
{
yield
AddonManager
.
installTemporaryAddon
(
addonDir
);
});
ok
(
messages
.
some
(
msg
=>
msg
.
message
.
includes
(
"
The use of '*' in strict_min_version is deprecated
"
)),
"
Deprecation warning for strict_min_version with '*' was generated
"
);
let
addon
=
yield
promiseAddonByID
(
addonId
);
notEqual
(
addon
,
null
,
"
Add-on is installed
"
);
equal
(
addon
.
id
,
addonId
,
"
Add-on has the expected id
"
);
addon
.
uninstall
();
flushAndRemove
(
addonDir
);
}
});
widget/windows/GfxInfo.cpp
浏览文件 @
1d1c2a52
...
...
@@ -901,6 +901,20 @@ GfxInfo::GetGfxDriverInfo()
GfxDriverInfo
::
allFeatures
,
nsIGfxInfo
::
FEATURE_BLOCKED_DRIVER_VERSION
,
DRIVER_EQUAL
,
V
(
8
,
783
,
2
,
2000
),
"FEATURE_FAILURE_BUG_1118695"
);
// Bug 1198815 and 1267970
APPEND_TO_DRIVER_BLOCKLIST_RANGE
(
OperatingSystem
::
Windows
,
(
nsAString
&
)
GfxDriverInfo
::
GetDeviceVendor
(
VendorATI
),
GfxDriverInfo
::
allDevices
,
nsIGfxInfo
::
FEATURE_HARDWARE_VIDEO_DECODING
,
nsIGfxInfo
::
FEATURE_BLOCKED_DRIVER_VERSION
,
DRIVER_BETWEEN_INCLUSIVE
,
V
(
15
,
200
,
0
,
0
),
V
(
15
,
301
,
2301
,
1002
),
"FEATURE_FAILURE_BUG_1198815_1267970"
,
"15.200.0.0-15.301.2301.1002"
);
// Bug 1267970
APPEND_TO_DRIVER_BLOCKLIST_RANGE
(
OperatingSystem
::
Windows
,
(
nsAString
&
)
GfxDriverInfo
::
GetDeviceVendor
(
VendorATI
),
GfxDriverInfo
::
allDevices
,
nsIGfxInfo
::
FEATURE_HARDWARE_VIDEO_DECODING
,
nsIGfxInfo
::
FEATURE_BLOCKED_DRIVER_VERSION
,
DRIVER_BETWEEN_INCLUSIVE
,
V
(
16
,
100
,
0
,
0
),
V
(
16
,
300
,
2311
,
0
),
"FEATURE_FAILURE_BUG_1267970"
,
"16.100.0.0-16.300.2311.0"
);
/*
* Bug 783517 - crashes in AMD driver on Windows 8
*/
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录