Bug 1417138 part 1 - Skip about:downloads in about url test. r=Gijs

MozReview-Commit-ID: HfgQI5OlvI9

--HG--
extra : rebase_source : 3b782d17b6a92f485ff56bd0ed826d8c447114c1
This commit is contained in:
Xidorn Quan 2018-02-14 17:01:57 +11:00
Родитель c60ee1a610
Коммит 969afa42df
1 изменённых файлов: 9 добавлений и 5 удалений

Просмотреть файл

@ -7,11 +7,15 @@ requestLongerTimeout(2);
add_task(async function() {
let aboutURLs = [];
// List of about: URLs that will initiate network requests.
let networkURLs = [
// List of about: URLs that may cause problem, so we skip them in this test.
let skipURLs = [
// about:credits will initiate network request.
"credits",
"telemetry" // about:telemetry will fetch Telemetry asynchrounously and takes
// longer, we skip this for now.
// about:telemetry will fetch Telemetry asynchronously and takes longer,
// so we skip this for now.
"telemetry",
// about:downloads causes a shutdown leak with stylo-chrome. bug 1419943.
"downloads"
];
for (let cid in Cc) {
@ -27,7 +31,7 @@ add_task(async function() {
let uri = Services.io.newURI("about:" + aboutType);
let flags = am.getURIFlags(uri);
if (!(flags & Ci.nsIAboutModule.HIDE_FROM_ABOUTABOUT) &&
!networkURLs.includes(aboutType)) {
!skipURLs.includes(aboutType)) {
aboutURLs.push(aboutType);
}
} catch (e) {