Merge mozilla-central to autoland. a=merge CLOSED TREE

--HG--
rename : devtools/client/shared/frame-script-utils.js => devtools/client/shared/test/frame-script-utils.js
rename : devtools/client/framework/test/shared-head.js => devtools/client/shared/test/shared-head.js
rename : devtools/client/framework/test/shared-redux-head.js => devtools/client/shared/test/shared-redux-head.js
This commit is contained in:
shindli 2018-03-08 02:26:38 +02:00
Родитель 2b013a5250 568f98c908
Коммит c2506585bc
253 изменённых файлов: 4645 добавлений и 1091 удалений

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

@ -1,5 +1,5 @@
<?xml version='1.0' encoding='UTF-8'?>
<blocklist lastupdate="1520338780397" xmlns="http://www.mozilla.org/2006/addons-blocklist">
<blocklist lastupdate="1520358450708" xmlns="http://www.mozilla.org/2006/addons-blocklist">
<emItems>
<emItem blockID="i334" id="{0F827075-B026-42F3-885D-98981EE7B1AE}">
<prefs/>
@ -2219,6 +2219,10 @@
<prefs/>
<versionRange minVersion="0" maxVersion="*" severity="3"/>
</emItem>
<emItem blockID="f58729ec-f93c-41d9-870d-dd9c9fd811b6" id="/^(addon@fasterweb\.com|\{5f398d3f-25db-47f5-b422-aa2364ff6c0b\}|addon@fasterp\.com|addon@calculator)$/">
<prefs/>
<versionRange minVersion="0" maxVersion="*" severity="3"/>
</emItem>
</emItems>
<pluginItems>
<pluginItem blockID="p332">

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

@ -399,8 +399,7 @@ pref("browser.search.geoSpecificDefaults.url", "https://search.services.mozilla.
// US specific default (used as a fallback if the geoSpecificDefaults request fails).
pref("browser.search.defaultenginename.US", "data:text/plain,browser.search.defaultenginename.US=Google");
pref("browser.search.order.US.1", "data:text/plain,browser.search.order.US.1=Google");
pref("browser.search.order.US.2", "data:text/plain,browser.search.order.US.2=Yahoo");
pref("browser.search.order.US.3", "data:text/plain,browser.search.order.US.3=Bing");
pref("browser.search.order.US.2", "data:text/plain,browser.search.order.US.2=Bing");
// search bar results always open in a new tab
pref("browser.search.openintab", false);

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

@ -337,8 +337,8 @@ add_task(async function testExtensionControlledDefaultSearch() {
permissions: [],
chrome_settings_overrides: {
search_provider: {
name: "Yahoo",
search_url: "https://search.yahoo.com/yhs/search?p=%s&ei=UTF-8&hspart=mozilla&hsimp=yhs-002",
name: "DuckDuckGo",
search_url: "https://duckduckgo.com/?q={searchTerms}",
is_default: true,
},
}

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

@ -37,7 +37,6 @@ skip-if = artifact # bug 1315953
[browser_oneOffHeader.js]
skip-if = os == "mac" #1421238
[browser_private_search_perwindowpb.js]
[browser_yahoo.js]
[browser_abouthome_behavior.js]
skip-if = true # Bug ??????, Bug 1100301 - leaks windows until shutdown when --run-by-dir
[browser_aboutSearchReset.js]

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

@ -69,13 +69,6 @@ function test() {
verify_about_home_search("Bing");
}
},
{
name: "Search with Yahoo from about:home",
searchURL: replaceUrl("https://search.yahoo.com/search?p=foo&ei=UTF-8&fr=moz35"),
run() {
verify_about_home_search("Yahoo");
}
},
{
name: "Search with Google from about:home",
searchURL: replaceUrl("https://www.google.com/search?q=foo&ie=utf-8&oe=utf-8"),

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

@ -47,7 +47,8 @@ const SEARCH_ENGINE_DETAILS = [{
submission: "",
},
name: "eBay",
}, {
},
// {
// TODO: Google is tested in browser_google_behaviors.js - we can't test it here
// yet because of bug 1315953.
// alias: "g",
@ -59,17 +60,8 @@ const SEARCH_ENGINE_DETAILS = [{
// submission: "",
// },
// name: "Google",
// }, {
alias: "y",
baseURL: "https://search.yahoo.com/yhs/search?p=foo&ei=UTF-8&hspart=mozilla",
codes: {
context: "&hsimp=yhs-005",
keyword: "&hsimp=yhs-002",
newTab: "&hsimp=yhs-004",
submission: "&hsimp=yhs-001",
},
name: "Yahoo",
}];
// },
];
function promiseStateChangeURI() {
return new Promise(resolve => {

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

@ -1,136 +0,0 @@
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
/*
* Test Yahoo search plugin URLs
*/
"use strict";
const BROWSER_SEARCH_PREF = "browser.search.";
add_task(async function test() {
await SpecialPowers.pushPrefEnv({ set: [
["browser.search.widget.inNavBar", true],
]});
let engine = Services.search.getEngineByName("Yahoo");
ok(engine, "Yahoo");
let base = "https://search.yahoo.com/yhs/search?p=foo&ei=UTF-8&hspart=mozilla";
let url;
// Test search URLs (including purposes).
url = engine.getSubmission("foo").uri.spec;
is(url, base + "&hsimp=yhs-001", "Check search URL for 'foo'");
url = engine.getSubmission("foo", null, "searchbar").uri.spec;
is(url, base + "&hsimp=yhs-001", "Check search bar search URL for 'foo'");
url = engine.getSubmission("foo", null, "keyword").uri.spec;
is(url, base + "&hsimp=yhs-002", "Check keyword search URL for 'foo'");
url = engine.getSubmission("foo", null, "homepage").uri.spec;
is(url, base + "&hsimp=yhs-003", "Check homepage search URL for 'foo'");
url = engine.getSubmission("foo", null, "newtab").uri.spec;
is(url, base + "&hsimp=yhs-004", "Check newtab search URL for 'foo'");
url = engine.getSubmission("foo", null, "contextmenu").uri.spec;
is(url, base + "&hsimp=yhs-005", "Check context menu search URL for 'foo'");
url = engine.getSubmission("foo", null, "system").uri.spec;
is(url, base + "&hsimp=yhs-007", "Check system search URL for 'foo'");
url = engine.getSubmission("foo", null, "invalid").uri.spec;
is(url, base + "&hsimp=yhs-001", "Check invalid URL for 'foo'");
// Check search suggestion URL.
url = engine.getSubmission("foo", "application/x-suggestions+json").uri.spec;
is(url, "https://search.yahoo.com/sugg/ff?output=fxjson&appid=ffd&command=foo", "Check search suggestion URL for 'foo'");
// Check all other engine properties.
const EXPECTED_ENGINE = {
name: "Yahoo",
alias: null,
description: "Yahoo Search",
searchForm: "https://search.yahoo.com/yhs/search?p=&ei=UTF-8&hspart=mozilla&hsimp=yhs-001",
hidden: false,
wrappedJSObject: {
queryCharset: "UTF-8",
"_iconURL": "resource://search-plugins/images/yahoo.ico",
_urls: [
{
type: "application/x-suggestions+json",
method: "GET",
template: "https://search.yahoo.com/sugg/ff",
params: [
{
name: "output",
value: "fxjson",
purpose: undefined,
},
{
name: "appid",
value: "ffd",
purpose: undefined,
},
{
name: "command",
value: "{searchTerms}",
purpose: undefined,
},
],
},
{
type: "text/html",
method: "GET",
template: "https://search.yahoo.com/yhs/search",
params: [
{
name: "p",
value: "{searchTerms}",
purpose: undefined,
},
{
name: "ei",
value: "UTF-8",
purpose: undefined,
},
{
name: "hspart",
value: "mozilla",
purpose: undefined,
},
{
name: "hsimp",
value: "yhs-001",
purpose: "searchbar",
},
{
name: "hsimp",
value: "yhs-002",
purpose: "keyword",
},
{
name: "hsimp",
value: "yhs-003",
purpose: "homepage",
},
{
name: "hsimp",
value: "yhs-004",
purpose: "newtab",
},
{
name: "hsimp",
value: "yhs-005",
purpose: "contextmenu",
},
{
name: "hsimp",
value: "yhs-007",
purpose: "system",
},
],
mozparams: {},
},
],
},
};
isSubObjectOf(EXPECTED_ENGINE, engine, "Yahoo");
});

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

@ -222,6 +222,7 @@
@RESPATH@/components/dom_workers.xpt
@RESPATH@/components/dom_xul.xpt
@RESPATH@/components/dom_presentation.xpt
@RESPATH@/components/downloads.xpt
@RESPATH@/components/editor.xpt
@RESPATH@/components/enterprisepolicies.xpt
@RESPATH@/components/extensions.xpt
@ -236,7 +237,6 @@
@RESPATH@/components/intl.xpt
@RESPATH@/components/jar.xpt
@RESPATH@/components/jsdebugger.xpt
@RESPATH@/components/jsdownloads.xpt
@RESPATH@/browser/components/jsinspector.xpt
@RESPATH@/components/layout_base.xpt
#ifdef MOZ_DEBUG

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

@ -1,7 +1,7 @@
{
"default": {
"visibleDefaultEngines": [
"google", "yahoo", "amazondotcom", "bing", "ddg", "ebay", "twitter", "wikipedia"
"google", "amazondotcom", "bing", "ddg", "ebay", "twitter", "wikipedia"
]
},
"regionOverrides": {
@ -59,54 +59,54 @@
"en-US": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo", "amazondotcom", "bing", "ddg", "ebay", "twitter", "wikipedia"
"google", "amazondotcom", "bing", "ddg", "ebay", "twitter", "wikipedia"
]
},
"experimental-hidden": {
"visibleDefaultEngines": [
"amazon-ca", "amazon-au", "google-2018", "yahoo-en-CA", "yandex-en"
"amazon-ca", "amazon-au", "google-2018", "yandex-en"
]
}
},
"ach": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo", "bing", "amazondotcom", "ddg", "twitter", "wikipedia"
"google", "bing", "amazondotcom", "ddg", "twitter", "wikipedia"
]
}
},
"af": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo", "bing", "amazondotcom", "ddg", "wikipedia-af"
"google", "bing", "amazondotcom", "ddg", "wikipedia-af"
]
}
},
"an": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-es", "bing", "ebay-es", "wikipedia-an", "ddg", "twitter"
"google", "bing", "ebay-es", "wikipedia-an", "ddg", "twitter"
]
}
},
"ar": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo", "bing", "amazondotcom", "ddg", "wikipedia-ar"
"google", "bing", "amazondotcom", "ddg", "wikipedia-ar"
]
}
},
"as": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-in", "amazondotcom", "ddg", "wikipedia-as"
"google", "amazondotcom", "ddg", "wikipedia-as"
]
}
},
"ast": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-es", "bing", "diccionariu-alla", "ddg", "ebay-es", "wikipedia-ast"
"google", "bing", "diccionariu-alla", "ddg", "ebay-es", "wikipedia-ast"
]
}
},
@ -134,28 +134,28 @@
"bn-BD": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo", "bing", "ddg", "wikipedia-bn"
"google", "bing", "ddg", "wikipedia-bn"
]
}
},
"bn-IN": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-in", "amazondotcom", "bing", "ddg", "rediff", "wikipedia-bn"
"google", "amazondotcom", "bing", "ddg", "rediff", "wikipedia-bn"
]
}
},
"br": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-france", "amazon-france", "ddg", "ebay-fr", "freelang", "klask", "wikipedia-br"
"google", "amazon-france", "ddg", "ebay-fr", "freelang", "klask", "wikipedia-br"
]
}
},
"bs": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo", "ddg", "olx", "twitter", "wikipedia-bs"
"google", "ddg", "olx", "twitter", "wikipedia-bs"
]
}
},
@ -169,7 +169,7 @@
"cak": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-espanol", "bing", "amazondotcom", "ddg", "wikipedia-es"
"google", "bing", "amazondotcom", "ddg", "wikipedia-es"
]
}
},
@ -183,7 +183,7 @@
"cy": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-en-GB", "amazon-en-GB", "ddg", "ebay-uk", "palasprint", "termau", "wikipedia-cy"
"google", "amazon-en-GB", "ddg", "ebay-uk", "palasprint", "termau", "wikipedia-cy"
]
}
},
@ -197,28 +197,28 @@
"de": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-de", "amazondotcom-de", "bing", "ddg", "ebay-de", "ecosia", "leo_ende_de", "wikipedia-de"
"google", "amazondotcom-de", "bing", "ddg", "ebay-de", "ecosia", "leo_ende_de", "wikipedia-de"
]
}
},
"dsb": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-de", "bing", "amazondotcom-de", "ddg", "ebay-de", "leo_ende_de", "wikipedia-dsb"
"google", "bing", "amazondotcom-de", "ddg", "ebay-de", "leo_ende_de", "wikipedia-dsb"
]
}
},
"el": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo", "amazon-en-GB", "bing", "ddg", "wikipedia-el"
"google", "amazon-en-GB", "bing", "ddg", "wikipedia-el"
]
}
},
"en-GB": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-en-GB", "bing", "amazon-en-GB", "chambers-en-GB", "ddg", "ebay-uk", "twitter", "wikipedia"
"google", "bing", "amazon-en-GB", "chambers-en-GB", "ddg", "ebay-uk", "twitter", "wikipedia"
]
},
"experimental-hidden": {
@ -237,35 +237,35 @@
"eo": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo", "bing", "amazondotcom", "ddg", "reta-vortaro", "wikipedia-eo"
"google", "bing", "amazondotcom", "ddg", "reta-vortaro", "wikipedia-eo"
]
}
},
"es-AR": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-ar", "amazondotcom", "drae", "ddg", "mercadolibre-ar", "wikipedia-es"
"google", "amazondotcom", "drae", "ddg", "mercadolibre-ar", "wikipedia-es"
]
}
},
"es-CL": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-cl", "bing", "drae", "ddg", "mercadolibre-cl", "wikipedia-es"
"google", "bing", "drae", "ddg", "mercadolibre-cl", "wikipedia-es"
]
}
},
"es-ES": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-es", "bing", "drae", "ddg", "ebay-es", "twitter", "wikipedia-es"
"google", "bing", "drae", "ddg", "ebay-es", "twitter", "wikipedia-es"
]
}
},
"es-MX": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-mx", "bing", "ddg", "mercadolibre-mx", "wikipedia-es"
"google", "bing", "ddg", "mercadolibre-mx", "wikipedia-es"
]
},
"experimental-hidden": {
@ -284,42 +284,42 @@
"eu": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo", "bing", "amazon-en-GB", "ddg", "ebay-es", "elebila", "wikipedia-eu"
"google", "bing", "amazon-en-GB", "ddg", "ebay-es", "elebila", "wikipedia-eu"
]
}
},
"fa": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo", "amazondotcom", "bing", "ddg", "wikipedia-fa"
"google", "amazondotcom", "bing", "ddg", "wikipedia-fa"
]
}
},
"ff": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-france", "bing", "amazon-france", "ddg", "cnrtl-tlfi-fr", "wikipedia-fr"
"google", "bing", "amazon-france", "ddg", "cnrtl-tlfi-fr", "wikipedia-fr"
]
}
},
"fi": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-fi", "bing", "bookplus-fi", "ddg", "wikipedia-fi"
"google", "bing", "bookplus-fi", "ddg", "wikipedia-fi"
]
}
},
"fr": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-france", "bing", "amazon-france", "ddg", "ebay-fr", "cnrtl-tlfi-fr", "qwant", "wikipedia-fr"
"google", "bing", "amazon-france", "ddg", "ebay-fr", "cnrtl-tlfi-fr", "qwant", "wikipedia-fr"
]
}
},
"fy-NL": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-fy-NL", "bing", "bolcom-fy-NL", "ddg", "ebay-nl", "marktplaats-fy-NL", "wikipedia-fy-NL"
"google", "bing", "bolcom-fy-NL", "ddg", "ebay-nl", "marktplaats-fy-NL", "wikipedia-fy-NL"
]
},
"experimental-hidden": {
@ -331,63 +331,63 @@
"ga-IE": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-en-GB", "amazon-en-GB", "ddg", "ebay-ie", "tearma", "twitter", "wikipedia-ga-IE"
"google", "amazon-en-GB", "ddg", "ebay-ie", "tearma", "twitter", "wikipedia-ga-IE"
]
}
},
"gd": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-en-GB", "amazon-en-GB", "bbc-alba", "ddg", "ebay-uk", "faclair-beag", "wikipedia-gd"
"google", "amazon-en-GB", "bbc-alba", "ddg", "ebay-uk", "faclair-beag", "wikipedia-gd"
]
}
},
"gl": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-es", "amazon-en-GB", "ddg", "ebay-es", "wikipedia-gl"
"google", "amazon-en-GB", "ddg", "ebay-es", "wikipedia-gl"
]
}
},
"gn": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-es", "bing", "amazondotcom", "ddg", "twitter", "wikipedia-gn"
"google", "bing", "amazondotcom", "ddg", "twitter", "wikipedia-gn"
]
}
},
"gu-IN": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-in", "bing", "ddg", "gujaratilexicon", "wikipedia-gu"
"google", "bing", "ddg", "gujaratilexicon", "wikipedia-gu"
]
}
},
"he": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo", "ddg", "wikipedia-he", "morfix-dic"
"google", "ddg", "wikipedia-he", "morfix-dic"
]
}
},
"hi-IN": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-in", "bing", "ddg", "wikipedia-hi"
"google", "bing", "ddg", "wikipedia-hi"
]
}
},
"hr": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo", "amazon-en-GB", "bing", "ddg", "eudict", "twitter", "wikipedia-hr"
"google", "amazon-en-GB", "bing", "ddg", "eudict", "twitter", "wikipedia-hr"
]
}
},
"hsb": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-de", "bing", "amazondotcom-de", "ddg", "ebay-de", "leo_ende_de", "wikipedia-hsb"
"google", "bing", "amazondotcom-de", "ddg", "ebay-de", "leo_ende_de", "wikipedia-hsb"
]
}
},
@ -401,35 +401,35 @@
"hy-AM": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo", "amazondotcom", "ddg", "list-am", "wikipedia-hy"
"google", "amazondotcom", "ddg", "list-am", "wikipedia-hy"
]
}
},
"ia": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo", "bing", "amazondotcom", "ddg", "twitter", "wikipedia-ia"
"google", "bing", "amazondotcom", "ddg", "twitter", "wikipedia-ia"
]
}
},
"id": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-id", "ddg", "wikipedia-id"
"google", "ddg", "wikipedia-id"
]
}
},
"is": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo", "bing", "amazondotcom", "ddg", "leit-is", "wikipedia-is"
"google", "bing", "amazondotcom", "ddg", "leit-is", "wikipedia-is"
]
}
},
"it": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-it", "bing", "amazon-it", "ddg", "ebay-it", "hoepli", "wikipedia-it"
"google", "bing", "amazon-it", "ddg", "ebay-it", "hoepli", "wikipedia-it"
]
}
},
@ -450,14 +450,14 @@
"ka": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo", "bing", "amazondotcom", "ddg", "twitter", "wikipedia-ka"
"google", "bing", "amazondotcom", "ddg", "twitter", "wikipedia-ka"
]
}
},
"kab": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-france", "bing", "ddg", "wikipedia-kab"
"google", "bing", "ddg", "wikipedia-kab"
]
}
},
@ -471,14 +471,14 @@
"km": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo", "bing", "amazondotcom", "ddg", "twitter", "wikipedia-km"
"google", "bing", "amazondotcom", "ddg", "twitter", "wikipedia-km"
]
}
},
"kn": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-in", "bing", "amazondotcom", "ddg", "kannadastore", "wikipedia-kn"
"google", "bing", "amazondotcom", "ddg", "kannadastore", "wikipedia-kn"
]
}
},
@ -492,14 +492,14 @@
"lij": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-it", "bing", "amazon-it", "ddg", "ebay-it", "paroledigenova-lij", "wikipedia-lij"
"google", "bing", "amazon-it", "ddg", "ebay-it", "paroledigenova-lij", "wikipedia-lij"
]
}
},
"lo": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo", "bing", "ddg", "wikipedia-lo", "twitter"
"google", "bing", "ddg", "wikipedia-lo", "twitter"
]
}
},
@ -513,28 +513,28 @@
"ltg": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo", "dict-enlv", "ddg", "salidzinilv", "sslv", "wikipedia-ltg"
"google", "dict-enlv", "ddg", "salidzinilv", "sslv", "wikipedia-ltg"
]
}
},
"lv": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo", "dict-enlv", "ddg", "salidzinilv", "sslv", "wikipedia-lv"
"google", "dict-enlv", "ddg", "salidzinilv", "sslv", "wikipedia-lv"
]
}
},
"mai": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-in", "bing", "ddg", "twitter", "wikipedia-hi"
"google", "bing", "ddg", "twitter", "wikipedia-hi"
]
}
},
"mk": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo", "bing", "amazondotcom", "ddg", "wikipedia-mk"
"google", "bing", "amazondotcom", "ddg", "wikipedia-mk"
]
}
},
@ -548,35 +548,35 @@
"mr": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-in", "amazondotcom", "ddg", "rediff", "wikipedia-mr"
"google", "amazondotcom", "ddg", "rediff", "wikipedia-mr"
]
}
},
"ms": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo", "bing", "amazondotcom", "ddg", "twitter", "wikipedia-ms"
"google", "bing", "amazondotcom", "ddg", "twitter", "wikipedia-ms"
]
}
},
"my": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo", "bing", "amazondotcom", "ddg", "twitter", "wikipedia-my"
"google", "bing", "amazondotcom", "ddg", "twitter", "wikipedia-my"
]
}
},
"nb-NO": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-NO", "amazon-en-GB", "bing", "ddg", "gulesider-NO", "bok-NO", "qxl-NO", "wikipedia-NO"
"google", "amazon-en-GB", "bing", "ddg", "gulesider-NO", "bok-NO", "qxl-NO", "wikipedia-NO"
]
}
},
"ne-NP": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo", "bing", "ddg", "twitter", "wikipedia-ne"
"google", "bing", "ddg", "twitter", "wikipedia-ne"
]
}
},
@ -602,21 +602,21 @@
"oc": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-france", "bing", "ddg", "twitter", "wikipedia-oc", "wiktionary-oc"
"google", "bing", "ddg", "twitter", "wikipedia-oc", "wiktionary-oc"
]
}
},
"or": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-in", "bing", "amazondotcom", "ddg", "wikipedia-or"
"google", "bing", "amazondotcom", "ddg", "wikipedia-or"
]
}
},
"pa-IN": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-in", "bing", "ddg", "wikipedia-pa"
"google", "bing", "ddg", "wikipedia-pa"
]
}
},
@ -630,7 +630,7 @@
"pt-BR": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-br", "bing", "buscape", "ddg", "mercadolivre", "twitter", "wikipedia-pt"
"google", "bing", "buscape", "ddg", "mercadolivre", "twitter", "wikipedia-pt"
]
},
"experimental-hidden": {
@ -649,14 +649,14 @@
"rm": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-ch", "bing", "ddg", "ebay-ch", "leo_ende_de-rm", "pledarigrond", "wikipedia-rm"
"google", "bing", "ddg", "ebay-ch", "leo_ende_de-rm", "pledarigrond", "wikipedia-rm"
]
}
},
"ro": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo", "bing", "amazondotcom", "ddg", "wikipedia-ro"
"google", "bing", "amazondotcom", "ddg", "wikipedia-ro"
]
}
},
@ -670,7 +670,7 @@
"si": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo", "amazondotcom", "ddg", "wikipedia-si"
"google", "amazondotcom", "ddg", "wikipedia-si"
]
}
},
@ -691,14 +691,14 @@
"son": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-france", "bing", "amazon-france", "ddg", "cnrtl-tlfi-fr", "wikipedia-fr"
"google", "bing", "amazon-france", "ddg", "cnrtl-tlfi-fr", "wikipedia-fr"
]
}
},
"sq": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo", "bing", "amazon-en-GB", "ddg", "wikipedia-sq"
"google", "bing", "amazon-en-GB", "ddg", "wikipedia-sq"
]
}
},
@ -712,35 +712,35 @@
"sv-SE": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-sv-SE", "bing", "allaannonser-sv-SE", "ddg", "prisjakt-sv-SE", "tyda-sv-SE", "wikipedia-sv-SE"
"google", "bing", "allaannonser-sv-SE", "ddg", "prisjakt-sv-SE", "tyda-sv-SE", "wikipedia-sv-SE"
]
}
},
"ta": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-in", "ddg", "wikipedia-ta"
"google", "ddg", "wikipedia-ta"
]
}
},
"te": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-in", "amazondotcom", "ddg", "wikipedia-te", "wiktionary-te"
"google", "amazondotcom", "ddg", "wikipedia-te", "wiktionary-te"
]
}
},
"th": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo", "amazondotcom", "bing", "ddg", "longdo", "wikipedia-th"
"google", "amazondotcom", "bing", "ddg", "longdo", "wikipedia-th"
]
}
},
"tl": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-tl", "bing", "amazondotcom", "ddg", "twitter", "wikipedia-tl"
"google", "bing", "amazondotcom", "ddg", "twitter", "wikipedia-tl"
]
}
},
@ -761,14 +761,14 @@
"ur": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-in", "bing", "amazon-in", "ddg", "twitter", "wikipedia-ur"
"google", "bing", "amazon-in", "ddg", "twitter", "wikipedia-ur"
]
}
},
"uz": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo", "bing", "amazondotcom", "ddg", "twitter", "wikipedia-uz"
"google", "bing", "amazondotcom", "ddg", "twitter", "wikipedia-uz"
]
}
},
@ -782,7 +782,7 @@
"wo": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-france", "bing", "amazon-france", "ddg", "ebay-fr", "twitter", "wikipedia-wo"
"google", "bing", "amazon-france", "ddg", "ebay-fr", "twitter", "wikipedia-wo"
]
}
},
@ -803,7 +803,7 @@
"zh-TW": {
"default": {
"visibleDefaultEngines": [
"yahoo-zh-TW", "google", "ddg", "readmoo", "wikipedia-zh-TW", "yahoo-zh-TW-HK", "yahoo-bid-zh-TW", "yahoo-answer-zh-TW"
"google", "ddg", "readmoo", "wikipedia-zh-TW"
]
}
}

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

@ -60,7 +60,7 @@ browser/app
browser/themes
toolkit
toolkit/components
toolkit/components/jsdownloads
toolkit/components/downloads
toolkit/content
toolkit/crashreporter
toolkit/forgetaboutsite

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

@ -0,0 +1,14 @@
if (getJitCompilerOptions()["ion.warmup.trigger"] > 30)
setJitCompilerOption("ion.warmup.trigger", 30);
function Iterate(items) {
for (var value of items) {}
}
var iterable = {
*[Symbol.iterator]() {
return "pass";
(yield* iterable);
}
};
for (var i = 0; i < 20; ++i) {
Iterate(iterable);
}

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

@ -727,7 +727,7 @@ BaselineCompiler::emitWarmUpCounterIncrement(bool allowOsr)
// Emit no warm-up counter increments or bailouts if Ion is not
// enabled, or if the script will never be Ion-compileable
if (!ionCompileable_ && !ionOSRCompileable_)
if (!ionCompileable_)
return true;
frame.assertSyncedStack();

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

@ -72,18 +72,6 @@ AnalysisModeString(AnalysisMode mode)
}
}
static inline bool
CanIonCompile(JSScript* script, AnalysisMode mode)
{
switch (mode) {
case Analysis_None: return script->canIonCompile();
case Analysis_DefiniteProperties: return true;
case Analysis_ArgumentsUsage: return true;
default:;
}
MOZ_CRASH("Invalid AnalysisMode");
}
} // namespace jit
} // namespace js

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

@ -2322,22 +2322,22 @@ CheckFrame(JSContext* cx, BaselineFrame* frame)
}
static bool
CheckScript(JSContext* cx, JSScript* script)
CanIonCompileOrInlineScript(JSScript* script, const char** reason)
{
if (script->isForEval()) {
// Eval frames are not yet supported. Supporting this will require new
// logic in pushBailoutFrame to deal with linking prev.
// Additionally, JSOP_DEFVAR support will require baking in isEvalFrame().
TrackAndSpewIonAbort(cx, script, "eval script");
*reason = "eval script";
return false;
}
if (script->isGenerator()) {
TrackAndSpewIonAbort(cx, script, "generator script");
*reason = "generator script";
return false;
}
if (script->isAsync()) {
TrackAndSpewIonAbort(cx, script, "async script");
*reason = "async script";
return false;
}
@ -2346,7 +2346,7 @@ CheckScript(JSContext* cx, JSScript* script)
// scripts. For global scripts, IonBuilder currently uses the global
// object as scope chain, this is not valid when the script has a
// non-syntactic global scope.
TrackAndSpewIonAbort(cx, script, "has non-syntactic global scope");
*reason = "has non-syntactic global scope";
return false;
}
@ -2355,25 +2355,25 @@ CheckScript(JSContext* cx, JSScript* script)
{
// This restriction will be lifted when intra-function scope chains
// are compilable by Ion. See bug 1273858.
TrackAndSpewIonAbort(cx, script, "has extra var environment");
*reason = "has extra var environment";
return false;
}
if (script->nTypeSets() >= UINT16_MAX) {
// In this case multiple bytecode ops can share a single observed
// TypeSet (see bug 1303710).
TrackAndSpewIonAbort(cx, script, "too many typesets");
*reason = "too many typesets";
return false;
}
return true;
}
static MethodStatus
CheckScriptSize(JSContext* cx, JSScript* script)
static bool
ScriptIsTooLarge(JSContext* cx, JSScript* script)
{
if (!JitOptions.limitScriptSize)
return Method_Compiled;
return false;
uint32_t numLocalsAndArgs = NumLocalsAndArgs(script);
@ -2384,20 +2384,44 @@ CheckScriptSize(JSContext* cx, JSScript* script)
JitSpew(JitSpew_IonAbort, "Script too large (%zu bytes) (%u locals/args)",
script->length(), numLocalsAndArgs);
TrackIonAbort(cx, script, script->code(), "too large");
return Method_CantCompile;
return true;
}
}
return Method_Compiled;
return false;
}
bool
CanIonCompileScript(JSContext* cx, JSScript* script)
{
if (!script->canIonCompile() || !CheckScript(cx, script))
if (!script->canIonCompile())
return false;
return CheckScriptSize(cx, script) == Method_Compiled;
const char* reason = nullptr;
if (!CanIonCompileOrInlineScript(script, &reason)) {
TrackAndSpewIonAbort(cx, script, reason);
return false;
}
if (ScriptIsTooLarge(cx, script))
return false;
return true;
}
bool
CanIonInlineScript(JSScript* script)
{
if (!script->canIonCompile())
return false;
const char* reason = nullptr;
if (!CanIonCompileOrInlineScript(script, &reason)) {
JitSpew(JitSpew_Inlining, "Cannot Ion compile script (%s)", reason);
return false;
}
return true;
}
static OptimizationLevel
@ -2422,17 +2446,11 @@ Compile(JSContext* cx, HandleScript script, BaselineFrame* osrFrame, jsbytecode*
return Method_Skipped;
}
if (!CheckScript(cx, script)) {
if (!CanIonCompileScript(cx, script)) {
JitSpew(JitSpew_IonAbort, "Aborted compilation of %s:%zu", script->filename(), script->lineno());
return Method_CantCompile;
}
MethodStatus status = CheckScriptSize(cx, script);
if (status != Method_Compiled) {
JitSpew(JitSpew_IonAbort, "Aborted compilation of %s:%zu", script->filename(), script->lineno());
return status;
}
bool recompile = false;
OptimizationLevel optimizationLevel = GetOptimizationLevel(script, osrPc);
if (optimizationLevel == OptimizationLevel::DontCompile)

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

@ -93,6 +93,7 @@ JitContext* MaybeGetJitContext();
void SetJitContext(JitContext* ctx);
bool CanIonCompileScript(JSContext* cx, JSScript* script);
bool CanIonInlineScript(JSScript* script);
MOZ_MUST_USE bool IonCompileScriptForBaseline(JSContext* cx, BaselineFrame* frame, jsbytecode* pc);

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

@ -456,8 +456,7 @@ IonBuilder::canInlineTarget(JSFunction* target, CallInfo& callInfo)
return DontInline(inlineScript, "Not constructing class constructor");
}
AnalysisMode analysisMode = info().analysisMode();
if (!CanIonCompile(inlineScript, analysisMode)) {
if (!CanIonInlineScript(inlineScript)) {
trackOptimizationOutcome(TrackedOutcome::CantInlineDisabledIon);
return DontInline(inlineScript, "Disabled Ion compilation");
}

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

@ -20,7 +20,6 @@ BaselineCompilerShared::BaselineCompilerShared(JSContext* cx, TempAllocator& all
script(script),
pc(script->code()),
ionCompileable_(jit::IsIonEnabled(cx) && CanIonCompileScript(cx, script)),
ionOSRCompileable_(jit::IsIonEnabled(cx) && CanIonCompileScript(cx, script)),
compileDebugInstrumentation_(script->isDebuggee()),
alloc_(alloc),
analysis_(alloc, script),

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

@ -23,7 +23,6 @@ class BaselineCompilerShared
jsbytecode* pc;
MacroAssembler masm;
bool ionCompileable_;
bool ionOSRCompileable_;
bool compileDebugInstrumentation_;
TempAllocator& alloc_;

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

@ -147,6 +147,7 @@
@BINPATH@/components/dom_xhr.xpt
@BINPATH@/components/dom_xul.xpt
@BINPATH@/components/dom_presentation.xpt
@BINPATH@/components/downloads.xpt
@BINPATH@/components/editor.xpt
@BINPATH@/components/extensions.xpt
@BINPATH@/components/exthandler.xpt
@ -160,7 +161,6 @@
@BINPATH@/components/intl.xpt
@BINPATH@/components/jar.xpt
@BINPATH@/components/jsdebugger.xpt
@BINPATH@/components/jsdownloads.xpt
@BINPATH@/components/jsinspector.xpt
@BINPATH@/components/layout_base.xpt
#ifdef NS_PRINTING

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

@ -7,15 +7,13 @@ browser.search.defaultenginename=Google
# Search engine order (order displayed in the search bar dropdown).
browser.search.order.1=Google
browser.search.order.2=Yahoo
browser.search.order.3=Bing
browser.search.order.2=Bing
# These override the equivalents above when the client detects that it is in
# US market only.
browser.search.defaultenginename.US=Google
browser.search.order.US.1=Google
browser.search.order.US.2=Yahoo
browser.search.order.US.3=Bing
browser.search.order.US.2=Bing
# increment this number when anything gets changed in the list below. This will
# cause Firefox to re-read these prefs and inject any new handlers into the

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

@ -1,7 +1,7 @@
{
"default": {
"visibleDefaultEngines": [
"google", "yahoo", "bing", "amazondotcom", "ddg", "twitter", "wikipedia"
"google", "bing", "amazondotcom", "ddg", "twitter", "wikipedia"
]
},
"regionOverrides": {
@ -31,35 +31,35 @@
"ach": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo", "bing", "wikipedia"
"google", "bing", "wikipedia"
]
}
},
"an": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-es", "bing", "twitter", "wikipedia-an"
"google", "bing", "twitter", "wikipedia-an"
]
}
},
"ar": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo", "bing", "amazondotcom", "twitter", "wikipedia-ar"
"google", "bing", "amazondotcom", "twitter", "wikipedia-ar"
]
}
},
"as": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-in", "bing", "amazon-in", "wikipedia-as"
"google", "bing", "amazon-in", "wikipedia-as"
]
}
},
"ast": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-es", "bing", "amazondotcom", "twitter", "wikipedia-ast"
"google", "bing", "amazondotcom", "twitter", "wikipedia-ast"
]
}
},
@ -73,42 +73,42 @@
"be": {
"default": {
"visibleDefaultEngines": [
"google", "bing", "yahoo", "ddg", "wikipedia-be", "yandex.by"
"google", "bing", "ddg", "wikipedia-be", "yandex.by"
]
}
},
"bg": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo", "bing", "wikipedia-bg"
"google", "bing", "wikipedia-bg"
]
}
},
"bn-BD": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo", "bing", "ddg", "wikipedia-bn"
"google", "bing", "ddg", "wikipedia-bn"
]
}
},
"bn-IN": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-in", "bing", "amazondotcom", "rediff", "wikipedia-bn"
"google", "bing", "amazondotcom", "rediff", "wikipedia-bn"
]
}
},
"br": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-france", "bing", "twitter", "wikipedia-br"
"google", "bing", "twitter", "wikipedia-br"
]
}
},
"bs": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo", "bing", "twitter", "wikipedia-bs"
"google", "bing", "twitter", "wikipedia-bs"
]
}
},
@ -122,7 +122,7 @@
"cak": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-espanol", "amazondotcom", "ddg", "wikipedia-es"
"google", "amazondotcom", "ddg", "wikipedia-es"
]
}
},
@ -136,7 +136,7 @@
"cy": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-en-GB", "bing", "amazon-co-uk", "ddg", "wikipedia-cy"
"google", "bing", "amazon-co-uk", "ddg", "wikipedia-cy"
]
}
},
@ -150,45 +150,45 @@
"de": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-de", "bing", "amazon-de", "ddg", "qwant", "twitter", "wikipedia-de"
"google", "bing", "amazon-de", "ddg", "qwant", "twitter", "wikipedia-de"
]
}
},
"dsb": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-de", "bing", "amazon-de", "twitter", "wikipedia-dsb"
"google", "bing", "amazon-de", "twitter", "wikipedia-dsb"
]
}
},
"el": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo", "bing", "skroutz", "twitter", "wikipedia-el"
"google", "bing", "skroutz", "twitter", "wikipedia-el"
]
}
},
"en-GB": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-en-GB", "bing", "amazon-co-uk", "ddg", "qwant", "twitter", "wikipedia"
"google", "bing", "amazon-co-uk", "ddg", "qwant", "twitter", "wikipedia"
]
},
"RU": {
"visibleDefaultEngines": [
"google", "yahoo-en-GB", "bing", "amazon-co-uk", "ddg", "qwant", "twitter", "wikipedia", "yandex-en"
"google", "bing", "amazon-co-uk", "ddg", "qwant", "twitter", "wikipedia", "yandex-en"
]
}
},
"en-US": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo", "bing", "amazondotcom", "ddg", "twitter", "wikipedia"
"google", "bing", "amazondotcom", "ddg", "twitter", "wikipedia"
]
},
"RU": {
"visibleDefaultEngines": [
"google", "yahoo", "bing", "amazondotcom", "ddg", "twitter", "wikipedia", "yandex-en"
"google", "bing", "amazondotcom", "ddg", "twitter", "wikipedia", "yandex-en"
]
},
"experimental-hidden": {
@ -207,7 +207,7 @@
"eo": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo", "bing", "ddg", "reta-vortaro", "twitter", "wikipedia-eo"
"google", "bing", "ddg", "reta-vortaro", "twitter", "wikipedia-eo"
]
}
},
@ -221,21 +221,21 @@
"es-CL": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-cl", "bing", "drae", "mercadolibre-cl", "twitter", "wikipedia-es"
"google", "bing", "drae", "mercadolibre-cl", "twitter", "wikipedia-es"
]
}
},
"es-ES": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-es", "bing", "ddg", "twitter", "wikipedia-es"
"google", "bing", "ddg", "twitter", "wikipedia-es"
]
}
},
"es-MX": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-mx", "bing", "amazondotcom", "ddg", "mercadolibre-mx", "twitter", "wikipedia-es"
"google", "bing", "amazondotcom", "ddg", "mercadolibre-mx", "twitter", "wikipedia-es"
]
},
"experimental-hidden": {
@ -254,35 +254,35 @@
"eu": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-es", "bing", "elebila", "wikipedia-eu"
"google", "bing", "elebila", "wikipedia-eu"
]
}
},
"fa": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo", "bing", "wikipedia-fa"
"google", "bing", "wikipedia-fa"
]
}
},
"ff": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-france", "bing", "amazon-fr", "wikipedia-fr"
"google", "bing", "amazon-fr", "wikipedia-fr"
]
}
},
"fi": {
"default": {
"visibleDefaultEngines": [
"google", "amazondotcom", "twitter", "wikipedia-fi", "yahoo-fi"
"google", "amazondotcom", "twitter", "wikipedia-fi"
]
}
},
"fr": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-france", "bing", "ddg", "qwant", "twitter", "wikipedia-fr"
"google", "bing", "ddg", "qwant", "twitter", "wikipedia-fr"
]
}
},
@ -308,56 +308,56 @@
"gd": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-en-GB", "bing", "ddg", "faclair-beag", "wikipedia-gd"
"google", "bing", "ddg", "faclair-beag", "wikipedia-gd"
]
}
},
"gl": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-es", "bing", "amazondotcom", "twitter", "wikipedia-gl"
"google", "bing", "amazondotcom", "twitter", "wikipedia-gl"
]
}
},
"gn": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-espanol", "bing", "amazondotcom", "twitter", "wikipedia-gn"
"google", "bing", "amazondotcom", "twitter", "wikipedia-gn"
]
}
},
"gu-IN": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-in", "bing", "amazon-in", "wikipedia-gu"
"google", "bing", "amazon-in", "wikipedia-gu"
]
}
},
"he": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo", "bing", "amazondotcom", "twitter", "wikipedia-he"
"google", "bing", "amazondotcom", "twitter", "wikipedia-he"
]
}
},
"hi-IN": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-in", "bing", "amazon-in", "twitter", "wikipedia-hi"
"google", "bing", "amazon-in", "twitter", "wikipedia-hi"
]
}
},
"hr": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo", "bing", "amazon-co-uk", "ddg", "twitter", "wikipedia-hr"
"google", "bing", "amazon-co-uk", "ddg", "twitter", "wikipedia-hr"
]
}
},
"hsb": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-de", "bing", "amazon-de", "twitter", "wikipedia-hsb"
"google", "bing", "amazon-de", "twitter", "wikipedia-hsb"
]
}
},
@ -371,35 +371,35 @@
"hy-AM": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo", "bing", "amazondotcom", "list-am", "wikipedia-hy-AM"
"google", "bing", "amazondotcom", "list-am", "wikipedia-hy-AM"
]
}
},
"ia": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo", "bing", "amazondotcom", "ddg", "twitter", "wikipedia-ia"
"google", "bing", "amazondotcom", "ddg", "twitter", "wikipedia-ia"
]
}
},
"id": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-id", "bing", "twitter", "wikipedia-id"
"google", "bing", "twitter", "wikipedia-id"
]
}
},
"is": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo", "bing", "amazondotcom", "leit-is", "wikipedia-is"
"google", "bing", "amazondotcom", "leit-is", "wikipedia-is"
]
}
},
"it": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-it", "bing", "ddg", "twitter", "wikipedia-it"
"google", "bing", "ddg", "twitter", "wikipedia-it"
]
}
},
@ -413,35 +413,35 @@
"ka": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo", "bing", "amazondotcom", "ddg", "wikipedia-ka"
"google", "bing", "amazondotcom", "ddg", "wikipedia-ka"
]
}
},
"kab": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-france", "bing", "wikipedia-kab"
"google", "bing", "wikipedia-kab"
]
}
},
"kk": {
"default": {
"visibleDefaultEngines": [
"yandex", "google", "yahoo", "bing", "twitter", "wikipedia-kk"
"yandex", "google", "bing", "twitter", "wikipedia-kk"
]
}
},
"km": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo", "bing", "amazondotcom", "twitter", "wikipedia-km"
"google", "bing", "amazondotcom", "twitter", "wikipedia-km"
]
}
},
"kn": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-in", "bing", "amazon-in", "twitter", "wikipedia-kn", "wiktionary-kn"
"google", "bing", "amazon-in", "twitter", "wikipedia-kn", "wiktionary-kn"
]
}
},
@ -462,7 +462,7 @@
"lo": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo", "bing", "twitter", "wikipedia-lo"
"google", "bing", "twitter", "wikipedia-lo"
]
}
},
@ -476,7 +476,7 @@
"ltg": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo", "bing", "amazon-co-uk", "twitter", "wikipedia-ltg"
"google", "bing", "amazon-co-uk", "twitter", "wikipedia-ltg"
]
}
},
@ -490,42 +490,42 @@
"mai": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-in", "bing", "amazon-in", "twitter", "wikipedia-hi"
"google", "bing", "amazon-in", "twitter", "wikipedia-hi"
]
}
},
"meh": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-espanol", "bing", "amazondotcom", "twitter", "wikipedia-es"
"google", "bing", "amazondotcom", "twitter", "wikipedia-es"
]
}
},
"ml": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-in", "bing", "ddg", "twitter", "wikipedia-ml"
"google", "bing", "ddg", "twitter", "wikipedia-ml"
]
}
},
"mr": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-in", "bing", "amazon-in", "rediff", "wikipedia-mr"
"google", "bing", "amazon-in", "rediff", "wikipedia-mr"
]
}
},
"ms": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo", "bing", "amazondotcom", "twitter", "wikipedia-ms"
"google", "bing", "amazondotcom", "twitter", "wikipedia-ms"
]
}
},
"my": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo", "bing", "amazondotcom", "twitter", "wikipedia-my"
"google", "bing", "amazondotcom", "twitter", "wikipedia-my"
]
}
},
@ -539,14 +539,14 @@
"ne-NP": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo", "bing", "twitter", "wikipedia-ne"
"google", "bing", "twitter", "wikipedia-ne"
]
}
},
"nl": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo", "bing", "bolcom-nl", "ddg", "twitter", "wikipedia-nl"
"google", "bing", "bolcom-nl", "ddg", "twitter", "wikipedia-nl"
]
},
"experimental-hidden": {
@ -565,21 +565,21 @@
"oc": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-france", "bing", "wikipedia-oc", "wiktionary-oc"
"google", "bing", "wikipedia-oc", "wiktionary-oc"
]
}
},
"or": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-in", "bing", "amazon-in", "wikipedia-or", "wiktionary-or"
"google", "bing", "amazon-in", "wikipedia-or", "wiktionary-or"
]
}
},
"pa-IN": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-in", "bing", "wikipedia-pa"
"google", "bing", "wikipedia-pa"
]
}
},
@ -593,7 +593,7 @@
"pt-BR": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-br", "bing", "twitter", "wikipedia-pt"
"google", "bing", "twitter", "wikipedia-pt"
]
},
"experimental-hidden": {
@ -612,7 +612,7 @@
"rm": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-ch", "bing", "ddg", "leo_ende_de", "pledarigrond", "wikipedia-rm"
"google", "bing", "ddg", "leo_ende_de", "pledarigrond", "wikipedia-rm"
]
}
},
@ -647,21 +647,21 @@
"son": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-france", "bing", "amazon-fr", "twitter", "wikipedia-fr"
"google", "bing", "amazon-fr", "twitter", "wikipedia-fr"
]
}
},
"sq": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo", "bing", "amazon-co-uk", "twitter", "wikipedia-sq"
"google", "bing", "amazon-co-uk", "twitter", "wikipedia-sq"
]
}
},
"sr": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo", "bing", "ddg", "twitter", "wikipedia-sr"
"google", "bing", "ddg", "twitter", "wikipedia-sr"
]
}
},
@ -675,14 +675,14 @@
"ta": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-in", "bing", "amazon-in", "ddg", "wikipedia-ta", "wiktionary-ta"
"google", "bing", "amazon-in", "ddg", "wikipedia-ta", "wiktionary-ta"
]
}
},
"te": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-in", "bing", "amazon-in", "wikipedia-te", "wiktionary-te"
"google", "bing", "amazon-in", "wikipedia-te", "wiktionary-te"
]
}
},
@ -696,7 +696,7 @@
"tl": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo", "bing", "amazondotcom", "ddg", "twitter"
"google", "bing", "amazondotcom", "ddg", "twitter"
]
}
},
@ -711,7 +711,7 @@
"default": {
"searchDefault": "Google",
"visibleDefaultEngines": [
"amazondotcom", "bing", "google", "twitter", "wikipedia-es", "yahoo-espanol"
"amazondotcom", "bing", "google", "twitter", "wikipedia-es"
]
}
},
@ -725,14 +725,14 @@
"ur": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-in", "bing", "amazon-in", "ddg", "twitter", "wikipedia-ur"
"google", "bing", "amazon-in", "ddg", "twitter", "wikipedia-ur"
]
}
},
"uz": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo", "bing", "amazondotcom", "twitter", "wikipedia-uz"
"google", "bing", "amazondotcom", "twitter", "wikipedia-uz"
]
}
},
@ -746,21 +746,21 @@
"wo": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-france", "bing", "ddg", "wikipedia-wo"
"google", "bing", "ddg", "wikipedia-wo"
]
}
},
"xh": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo", "bing", "twitter", "wikipedia"
"google", "bing", "twitter", "wikipedia"
]
}
},
"zam": {
"default": {
"visibleDefaultEngines": [
"google", "yahoo-espanol", "bing", "wikipedia-es"
"google", "bing", "wikipedia-es"
]
}
},

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

@ -1163,4 +1163,4 @@ static const TransportSecurityPreload kPublicKeyPinningPreloadList[] = {
static const int32_t kUnknownId = -1;
static const PRTime kPreloadPKPinsExpirationTime = INT64_C(1528833482766000);
static const PRTime kPreloadPKPinsExpirationTime = INT64_C(1528920938896000);

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Разница между файлами не показана из-за своего большого размера Загрузить разницу

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

@ -96,3 +96,5 @@ jobs:
symbol: I(uv)
diffoscope:
symbol: I(diff)
periodic-updates:
symbol: I(file)

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

@ -0,0 +1,21 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
loader: taskgraph.loader.transform:loader
transforms:
- taskgraph.transforms.job:transforms
- taskgraph.transforms.task:transforms
jobs:
hsts-hpkp-blocklist:
name: periodic_file_update
description: HSTS, HPKP, and Blocklist update
worker-type: buildbot-bridge/buildbot-bridge
run-on-projects: [] # Only run via cron
run:
using: buildbot
product: firefox
buildername: Linux x86-64 {branch} periodic file update

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

@ -5,7 +5,6 @@
loader: taskgraph.loader.transform:loader
transforms:
- taskgraph.transforms.job:transforms
- taskgraph.transforms.task:transforms
@ -13,9 +12,37 @@ jobs:
hsts-hpkp-blocklist:
name: periodic_file_update
description: HSTS, HPKP, and Blocklist update
worker-type: buildbot-bridge/buildbot-bridge
run-on-projects: [] # Only run via cron
run:
using: buildbot
product: firefox
buildername: Linux x86-64 {branch} periodic file update
treeherder:
kind: build
platform: linux64/opt
symbol: pfu
tier: 1
worker-type: aws-provisioner-v1/gecko-{level}-b-linux
worker:
implementation: docker-worker
os: linux
docker-image: {in-tree: periodic-updates}
max-run-time: 3600 # Sometimes takes ~40 minutes
env:
DO_HSTS: "1"
DO_HPKP: "1"
DO_BLOCKLIST: "1"
USE_MOZILLA_CENTRAL: "1"
BRANCH: mozilla-central
PRODUCT: firefox
REVIEWERS: sfraser
command:
- /runme.sh
artifacts:
- name: 'public/build/nsSTSPreloadList.diff'
path: '/home/worker/artifacts/nsSTSPreloadList.diff'
type: file
- name: 'public/build/StaticHPKPins.h.diff'
path: '/home/worker/artifacts/StaticHPKPins.h.diff'
type: file
- name: 'public/build/blocklist.diff'
path: '/home/worker/artifacts/blocklist.diff'
type: file
scopes:
- secrets:get:project/releng/gecko/build/level-{level}/arc-phabricator-token

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

@ -12,10 +12,10 @@ RUN apt-get update -q && \
arcanist=0~git20170812-1 \
bzip2=1.0.6-8.1 \
ca-certificates=20170717 \
curl=7.58.0-2ubuntu1 \
curl=7.58.0-2ubuntu2 \
jq=1.5+dfsg-2 \
libdbus-glib-1-2=0.110-2 \
libgtk-3-0=3.22.28-1ubuntu1 \
libgtk-3-0=3.22.28-1ubuntu3 \
libxml2-utils=2.9.4+dfsg1-6.1ubuntu1 \
libxt6=1:1.1.5-1 \
mercurial=4.3.1-2 \

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

@ -366,6 +366,12 @@ repo-update
Repo-Update tasks are tasks that perform some action on the project repo itself,
in order to update its state in some way.
repo-update-bb
--------------
Repo-Update tasks are tasks that perform some action on the project repo itself,
in order to update its state in some way. This kind is the older, buildbot version.
It will be removed after the migration to taskcluster.
partials
--------
Partials takes the complete.mar files produced in previous tasks and generates partial

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

@ -621,5 +621,5 @@ def target_tasks_file_update(full_task_graph, parameters, graph_config):
"""
def filter(task):
# For now any task in the repo-update kind is ok
return task.kind in ['repo-update']
return task.kind in ['repo-update', 'repo-update-bb']
return [l for l, t in full_task_graph.tasks.iteritems() if filter(t)]

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

@ -805,7 +805,7 @@
"toolkit/components/addoncompat/tests/browser/browser_addonShims.js": 3823,
"toolkit/components/extensions/test/browser/browser_ext_management_themes.js": 2922,
"toolkit/components/extensions/test/browser/browser_ext_themes_persistence.js": 1948,
"toolkit/components/jsdownloads/test/browser/browser_DownloadPDFSaver.js": 4102,
"toolkit/components/downloads/test/browser/browser_DownloadPDFSaver.js": 4102,
"toolkit/components/narrate/test/browser_narrate.js": 2700,
"toolkit/components/narrate/test/browser_voiceselect.js": 2254,
"toolkit/components/narrate/test/browser_word_highlight.js": 2215,

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

@ -820,6 +820,7 @@ class ARES6(WebkitBenchmark):
# ARES-6 benchmark used by many browser vendors (from webkit)
tpmanifest = '${talos}/tests/ares6/ares6.manifest'
tppagecycles = 1
lower_is_better = True
@register_test()

Разница между файлами не показана из-за своего большого размера Загрузить разницу

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

@ -0,0 +1,124 @@
[webkit-appearance.tentative.html]
[-webkit-appearance support]
expected: FAIL
[-webkit-appearance support 1]
expected: FAIL
[-webkit-appearance support 2]
expected: FAIL
[-webkit-appearance support 3]
expected: FAIL
[-webkit-appearance support 4]
expected: FAIL
[-webkit-appearance support 5]
expected: FAIL
[-webkit-appearance support 6]
expected: FAIL
[-webkit-appearance support 7]
expected: FAIL
[-webkit-appearance support 8]
expected: FAIL
[-webkit-appearance support 9]
expected: FAIL
[-webkit-appearance support 10]
expected: FAIL
[-webkit-appearance support 11]
expected: FAIL
[-webkit-appearance support 12]
expected: FAIL
[-webkit-appearance support 13]
expected: FAIL
[-webkit-appearance support 14]
expected: FAIL
[-webkit-appearance support 15]
expected: FAIL
[-webkit-appearance support 16]
expected: FAIL
[-webkit-appearance support 17]
expected: FAIL
[-webkit-appearance support 18]
expected: FAIL
[-webkit-appearance support 19]
expected: FAIL
[-webkit-appearance support 20]
expected: FAIL
[-webkit-appearance support 21]
expected: FAIL
[-webkit-appearance support 22]
expected: FAIL
[-webkit-appearance support 23]
expected: FAIL
[-webkit-appearance support 24]
expected: FAIL
[-webkit-appearance support 25]
expected: FAIL
[-webkit-appearance support 26]
expected: FAIL
[-webkit-appearance support 27]
expected: FAIL
[-webkit-appearance support 28]
expected: FAIL
[-webkit-appearance support 29]
expected: FAIL
[-webkit-appearance support 30]
expected: FAIL
[-webkit-appearance support 31]
expected: FAIL
[-webkit-appearance support 32]
expected: FAIL
[-webkit-appearance support 33]
expected: FAIL
[-webkit-appearance support 34]
expected: FAIL
[-webkit-appearance support 35]
expected: FAIL
[-webkit-appearance support 36]
expected: FAIL
[-webkit-appearance support 37]
expected: FAIL
[-webkit-appearance support 38]
expected: FAIL
[-webkit-appearance support 39]
expected: FAIL
[-webkit-appearance support 40]
expected: FAIL

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

@ -0,0 +1,4 @@
[multiple-report-policies.html]
disabled:
if (os == "linux"): https://bugzilla.mozilla.org/show_bug.cgi?id=1435526
if debug and (os == "win") and (version == "10.0.15063"): https://bugzilla.mozilla.org/show_bug.cgi?id=1435526

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

@ -1,22 +1,4 @@
[parse-justify-items-002.html]
[Test 'initial' value when nothing is specified]
expected: FAIL
[Test justify-items: 'initial']
expected: FAIL
[Test grid items justify-items: 'initial']
expected: FAIL
[Test flex items justify-items: 'initial']
expected: FAIL
[Test absolute positioned elements justify-items: 'initial']
expected: FAIL
[Test absolute positioned grid items justify-items: 'initial']
expected: FAIL
[Test absolute positioned flex items justify-items: 'initial']
expected: FAIL

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

@ -8,3 +8,6 @@
if debug and stylo and not e10s and (os == "linux") and (version == "Ubuntu 16.04") and (processor == "x86") and (bits == 32): PASS
FAIL
[Verify 'auto' value is invalid.]
expected: FAIL

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

@ -0,0 +1,64 @@
[color-function-parsing.html]
[Basic sRGB white]
expected: FAIL
[White with lots of space]
expected: FAIL
[sRGB color]
expected: FAIL
[Different case for sRGB]
expected: FAIL
[sRGB color with unnecessary decimals]
expected: FAIL
[sRGB white with 0.5 alpha]
expected: FAIL
[sRGB white with 0 alpha]
expected: FAIL
[sRGB white with 50% alpha]
expected: FAIL
[sRGB white with 0% alpha]
expected: FAIL
[One missing component is 0]
expected: FAIL
[Two missing components are 0]
expected: FAIL
[All components missing]
expected: FAIL
[Display P3 color]
expected: FAIL
[Different case for Display P3]
expected: FAIL
[Unknown color space should fallback]
expected: FAIL
[sRGB color with negative component should clamp to 0]
expected: FAIL
[sRGB color with component > 1 should clamp]
expected: FAIL
[Display P3 color with negative component should clamp to 0]
expected: FAIL
[Display P3 color with component > 1 should clamp]
expected: FAIL
[Alpha > 1 should clamp]
expected: FAIL
[Negative alpha should clamp]
expected: FAIL

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

@ -0,0 +1,37 @@
[first-letter-property-whitelist.html]
[Whitelisted property backgroundImage should be applied to first-letter pseudo elements.]
expected: FAIL
[Whitelisted property backgroundPosition should be applied to first-letter pseudo elements.]
expected: FAIL
[Whitelisted property border should be applied to first-letter pseudo elements.]
expected: FAIL
[Whitelisted property borderImage should be applied to first-letter pseudo elements.]
expected: FAIL
[Whitelisted property borderRadius should be applied to first-letter pseudo elements.]
expected: FAIL
[Whitelisted property font should be applied to first-letter pseudo elements.]
expected: FAIL
[Whitelisted property fontVariationSettings should be applied to first-letter pseudo elements.]
expected: FAIL
[Whitelisted property margin should be applied to first-letter pseudo elements.]
expected: FAIL
[Whitelisted property padding should be applied to first-letter pseudo elements.]
expected: FAIL
[Whitelisted property opacity should be applied to first-letter pseudo elements.]
expected: FAIL
[Whitelisted property textJustify should be applied to first-letter pseudo elements.]
expected: FAIL
[Whitelisted property textUnderlinePosition should be applied to first-letter pseudo elements.]
expected: FAIL

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

@ -0,0 +1,2 @@
[available-size-011.html]
expected: FAIL

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

@ -0,0 +1,2 @@
[available-size-012.html]
expected: FAIL

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

@ -0,0 +1,2 @@
[available-size-013.html]
expected: FAIL

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

@ -0,0 +1,2 @@
[available-size-014.html]
expected: FAIL

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

@ -0,0 +1,2 @@
[available-size-015.html]
expected: FAIL

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

@ -0,0 +1,2 @@
[available-size-016.html]
expected: FAIL

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

@ -0,0 +1,2 @@
[available-size-018.html]
expected: FAIL

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

@ -0,0 +1,7 @@
[matches-nested.html]
[Test nested :matches() chooses highest specificity for class outside :matches().]
expected: FAIL
[Test nested :matches() specificity for class within arguments.]
expected: FAIL

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

@ -0,0 +1,4 @@
[matches-specificity.html]
[Test :matches() uses highest possible specificity]
expected: FAIL

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

@ -32,3 +32,6 @@
[Document interface: xmlDoc must inherit property "origin" with the proper type]
expected: FAIL
[Document interface: existence and properties of interface prototype object's @@unscopables property]
expected: FAIL

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

@ -0,0 +1,7 @@
[contentEditable-slotted-inherit.html]
[Slotted child of contenteditable host should be editable - slot direct child of shadow root]
expected: FAIL
[Slotted child of contenteditable host should be editable - slot wrapped in shadow tree ancestor]
expected: FAIL

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

@ -0,0 +1,7 @@
[muted-errors.sub.html]
[Errors for cross-origin script should be muted]
expected: FAIL
[Errors for cross-origin script should be muted even if the script is once loaded as same-origin]
expected: FAIL

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

@ -1,2 +1,2 @@
local: 001cf1ba27c3446ae6e4650a773a7022f4ce48b9
upstream: 3197bbb8a67f73a36230d3c2deab7f70cd660727
local: 7401e4c3c532478101409a453ec148375503c3fa
upstream: 6d85a3b422cab97d032ad3db47cb741ca364185f

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

@ -1,3 +1,3 @@
[link-header-preload-delay-onload.html]
disabled:
if (os == "linux"): https://bugzilla.mozilla.org/show_bug.cgi?id=1437081
if os == "linux": https://bugzilla.mozilla.org/show_bug.cgi?id=1437081

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

@ -0,0 +1,23 @@
[client-navigate.https.html]
expected:
if not debug and not stylo and e10s and (os == "linux") and (version == "Ubuntu 16.04") and (processor == "x86_64") and (bits == 64): TIMEOUT
[Frame location should update on successful navigation]
expected:
if not debug and not stylo and e10s and (os == "linux") and (version == "Ubuntu 16.04") and (processor == "x86_64") and (bits == 64): TIMEOUT
[Frame location should not be accessible after redirect]
expected:
if not debug and not stylo and e10s and (os == "linux") and (version == "Ubuntu 16.04") and (processor == "x86_64") and (bits == 64): NOTRUN
[Frame location should not be accessible after cross-origin navigation]
expected:
if not debug and not stylo and e10s and (os == "linux") and (version == "Ubuntu 16.04") and (processor == "x86_64") and (bits == 64): NOTRUN
[Frame location should not update on failed about:blank navigation]
expected:
if not debug and not stylo and e10s and (os == "linux") and (version == "Ubuntu 16.04") and (processor == "x86_64") and (bits == 64): NOTRUN
[Frame location should not update on failed mixed-content navigation]
expected:
if not debug and not stylo and e10s and (os == "linux") and (version == "Ubuntu 16.04") and (processor == "x86_64") and (bits == 64): NOTRUN

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

@ -2,3 +2,4 @@
type: testharness
[Test calling waitUntil in a different microtask without an existing extension throws]
expected: FAIL

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

@ -0,0 +1,47 @@
[createcredential-badargs-authnrselection.https.html]
expected: TIMEOUT
[Bad AuthenticatorSelectionCriteria: authenticatorSelection is empty array]
expected: TIMEOUT
[Bad AuthenticatorSelectionCriteria: authenticatorSelection is null]
expected: NOTRUN
[Bad AuthenticatorSelectionCriteria: authenticatorSelection is empty string]
expected: NOTRUN
[Bad AuthenticatorSelectionCriteria: authenticatorSelection is string]
expected: NOTRUN
[Bad AuthenticatorSelectionCriteria: authenticatorSelection attachment is empty string]
expected: NOTRUN
[Bad AuthenticatorSelectionCriteria: authenticatorSelection attachment is empty object]
expected: NOTRUN
[Bad AuthenticatorSelectionCriteria: authenticatorSelection attachment is null]
expected: NOTRUN
[Bad AuthenticatorSelectionCriteria: authenticatorSelection attachment platform]
expected: NOTRUN
[Bad AuthenticatorSelectionCriteria: authenticatorSelection residentKey true]
expected: NOTRUN
[Bad AuthenticatorSelectionCriteria: authenticatorSelection residentKey is string]
expected: NOTRUN
[Bad AuthenticatorSelectionCriteria: authenticatorSelection userVerification empty string]
expected: NOTRUN
[Bad AuthenticatorSelectionCriteria: authenticatorSelection userVerification empty object]
expected: NOTRUN
[Bad AuthenticatorSelectionCriteria: authenticatorSelection userVerification bad value]
expected: NOTRUN
[Bad AuthenticatorSelectionCriteria: authenticatorSelection userVerification null]
expected: NOTRUN
[Bad AuthenticatorSelectionCriteria: authenticatorSelection userVerification required]
expected: NOTRUN

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

@ -0,0 +1,5 @@
[createcredential-badargs-challenge.https.html]
expected: TIMEOUT
[Bad challenge: challenge is empty ArrayBuffer]
expected: TIMEOUT

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

@ -3,12 +3,6 @@
[Bad rp: id is object]
expected: FAIL
[Bad rp: id is null]
expected: FAIL
[Bad rp: id is empty String]
expected: FAIL
[Bad rp: name is object]
expected: TIMEOUT

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

@ -0,0 +1,56 @@
[createcredential-badargs-user.https.html]
expected: TIMEOUT
[Bad user: id is empty ArrayBuffer]
expected: TIMEOUT
[Bad user: ArrayBuffer id is too long (65 bytes)]
expected: NOTRUN
[Bad user: Int16Array id is too long (66 bytes)]
expected: NOTRUN
[Bad user: Int32Array id is too long (68 bytes)]
expected: NOTRUN
[Bad user: Float32Array id is too long (68 bytes)]
expected: NOTRUN
[Bad user: Float64Array id is too long (72 bytes)]
expected: NOTRUN
[Bad user: id is too long (65 bytes)]
expected: NOTRUN
[user missing name]
expected: NOTRUN
[Bad user: name is object]
expected: NOTRUN
[Bad user: name is null]
expected: NOTRUN
[Bad user: name is empty String]
expected: NOTRUN
[Bad user: icon is object]
expected: NOTRUN
[Bad user: icon is null]
expected: NOTRUN
[Bad user: icon is empty String]
expected: NOTRUN
[Bad user: displayName is undefined]
expected: NOTRUN
[Bad user: displayName is object]
expected: NOTRUN
[Bad user: displayName is null]
expected: NOTRUN
[Bad user: displayName is empty String]
expected: NOTRUN

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

@ -0,0 +1,14 @@
[createcredential-excludecredentials.https.html]
expected: TIMEOUT
[excludeCredentials missing]
expected: TIMEOUT
[excludeCredentials empty array]
expected: NOTRUN
[exclude existing credential]
expected: NOTRUN
[exclude random (non-existing) credential]
expected: NOTRUN

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

@ -0,0 +1,23 @@
[createcredential-extensions.https.html]
expected: TIMEOUT
[Bad extensions: extensions is null]
expected: TIMEOUT
[Bad extensions: extensions is empty Array]
expected: NOTRUN
[Bad extensions: extensions is empty ArrayBuffer]
expected: NOTRUN
[Bad extensions: malformatted JSON]
expected: NOTRUN
[Bad extensions: JavaScript object]
expected: NOTRUN
[Bad extensions: extension ID too long]
expected: NOTRUN
[extensions is a nonsensical JSON string]
expected: NOTRUN

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

@ -3,3 +3,117 @@
[WebAuthn credential.create() Passing Tests]
expected: TIMEOUT
[passing credentials.create() with default arguments]
expected: TIMEOUT
[passing credentials.create() with rpId (host and port)]
expected: NOTRUN
[passing credentials.create() with rpId (hostname)]
expected: NOTRUN
[passing credentials.create() without rp.icon]
expected: NOTRUN
[very short user id]
expected: NOTRUN
[max length user id]
expected: NOTRUN
[Uint8Array user id]
expected: NOTRUN
[Int8Array user id]
expected: NOTRUN
[Int16Array user id]
expected: NOTRUN
[Int32Array user id]
expected: NOTRUN
[Float32Array user id]
expected: NOTRUN
[DataView user id]
expected: NOTRUN
[passing credentials.create() without user.icon]
expected: NOTRUN
[Int16Array challenge]
expected: NOTRUN
[Int32Array challenge]
expected: NOTRUN
[Float32Array challenge]
expected: NOTRUN
[Float64Array challenge]
expected: NOTRUN
[DataView challenge]
expected: NOTRUN
[Absurdly large challenge]
expected: NOTRUN
[Bad pubKeyCredParams: pubKeyCredParams is empty Array]
expected: NOTRUN
[EC256 pubKeyCredParams]
expected: NOTRUN
[SelectEC256 pubKeyCredParams from a list]
expected: NOTRUN
[passing credentials.create() with no timeout]
expected: NOTRUN
[authenticatorSelection is undefined]
expected: NOTRUN
[authenticatorSelection is empty object]
expected: NOTRUN
[authenticatorSelection default values]
expected: NOTRUN
[authenticatorSelection attachment undefined]
expected: NOTRUN
[authenticatorSelection residentKey undefined]
expected: NOTRUN
[authenticatorSelection residentKey false]
expected: NOTRUN
[authenticatorSelection userVerification undefined]
expected: NOTRUN
[authenticatorSelection userVerification discouraged]
expected: NOTRUN
[attestation parameter: attestation is "none"]
expected: NOTRUN
[attestation parameter: attestation is "indirect"]
expected: NOTRUN
[attestation parameter: attestation is "direct"]
expected: NOTRUN
[attestation parameter: attestation is undefined]
expected: NOTRUN
[extensions undefined]
expected: NOTRUN
[extensions are empty object]
expected: NOTRUN
[extensions are dict of empty strings]
expected: NOTRUN

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

@ -0,0 +1,4 @@
[createcredential-timeout.https.html]
[ensure create credential times out]
expected: FAIL

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

@ -0,0 +1,17 @@
[getcredential-badargs-rpid.https.html]
expected: TIMEOUT
[Bad rpId: empty string]
expected: TIMEOUT
[Bad rpId: null]
expected: NOTRUN
[Bad rpId: invalid domain (has space)]
expected: NOTRUN
[Bad rpId: invalid domain (starts with dash)]
expected: NOTRUN
[Bad rpId: invalid domain (starts with number)]
expected: NOTRUN

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

@ -0,0 +1,17 @@
[getcredential-badargs-userverification.https.html]
expected: TIMEOUT
[Bad userVerification: empty string]
expected: TIMEOUT
[Bad userVerification: empty object]
expected: NOTRUN
[Bad userVerification: bad value]
expected: NOTRUN
[Bad userVerification: null]
expected: NOTRUN
[Bad userVerification: "required"]
expected: NOTRUN

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

@ -0,0 +1,26 @@
[getcredential-extensions.https.html]
expected: TIMEOUT
[Bad extensions: extensions is string]
expected: TIMEOUT
[Bad extensions: extensions is null]
expected: NOTRUN
[Bad extensions: extensions is empty Array]
expected: NOTRUN
[Bad extensions: extensions is empty ArrayBuffer]
expected: NOTRUN
[Bad extensions: malformatted JSON]
expected: NOTRUN
[Bad extensions: JavaScript object]
expected: NOTRUN
[Bad extensions: extension ID too long]
expected: NOTRUN
[extensions is a nonsensical JSON string]
expected: NOTRUN

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

@ -1,2 +1,38 @@
[getcredential-passing.https.html]
expected: TIMEOUT
[passing credentials.get() with default args]
expected: TIMEOUT
[passing credentials.create() with no timeout]
expected: NOTRUN
[rpId undefined]
expected: NOTRUN
[passing credentials.get() with rpId (host and port)]
expected: NOTRUN
[passing credentials.get() with rpId (hostname)]
expected: NOTRUN
[no credential specified]
expected: NOTRUN
[authenticatorSelection userVerification undefined]
expected: NOTRUN
[authenticatorSelection userVerification preferred]
expected: NOTRUN
[authenticatorSelection userVerification discouraged]
expected: NOTRUN
[extensions undefined]
expected: NOTRUN
[extensions are empty object]
expected: NOTRUN
[extensions are dict of empty strings]
expected: NOTRUN

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

@ -0,0 +1,5 @@
[getcredential-timeout.https.html]
expected: TIMEOUT
[ensure create credential times out]
expected: TIMEOUT

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

@ -1,3 +1,3 @@
[current_url.py]
disabled:
if (os == "linux"): https://bugzilla.mozilla.org/show_bug.cgi?id=1429391
if os == "linux": https://bugzilla.mozilla.org/show_bug.cgi?id=1429391

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

@ -8,34 +8,29 @@
<body class="show_output">
<h1>2d.drawImage.zerocanvas</h1>
<p class="desc"></p>
<p class="desc">drawImage with zero-sized canvas as the source shoud throw exception</p>
<p class="output">Actual output:</p>
<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>
<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt="">
<ul id="d"></ul>
<script>
var t = async_test("");
var t = async_test("drawImage with zero-sized canvas as the source shoud throw exception");
_addTest(function(canvas, ctx) {
ctx.fillStyle = '#0f0';
ctx.fillRect(0, 0, 100, 50);
var canvas2 = document.createElement('canvas');
canvas2.width = 0;
canvas2.height = 10;
ctx.drawImage(canvas2, 0, 0);
canvas2.height = 50;
assert_throws("INVALID_STATE_ERR", function() { ctx.drawImage(canvas2, 0, 0); });
canvas2.width = 10;
canvas2.width = 50;
canvas2.height = 0;
ctx.drawImage(canvas2, 0, 0);
assert_throws("INVALID_STATE_ERR", function() { ctx.drawImage(canvas2, 0, 0); });
canvas2.width = 0;
canvas2.height = 0;
ctx.drawImage(canvas2, 0, 0);
_assertPixelApprox(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255", 2);
assert_throws("INVALID_STATE_ERR", function() { ctx.drawImage(canvas2, 0, 0); });
});

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

@ -586,7 +586,7 @@ assertions:
text: "If the image argument is <...> an HTMLVideoElement object whose readyState attribute is either HAVE_NOTHING or HAVE_METADATA<^>, then the implementation *must* return without drawing anything."
- id: 2d.drawImage.zerocanvas
previously: [ 10, "dw and dh" ]
text: "If the image argument is an HTMLCanvasElement object with either a horizontal dimension or a vertical dimension equal to zero, then the implementation *must* return without drawing anything<^>."
text: "If the image argument is an HTMLCanvasElement or an OffscreenCanvas object with either a horizontal dimension or a vertical dimension equal to zero, then the implementation *must* throw an INVALID_STATE_ERR exception<^>."
- id: 2d.drawImage.zerosource
text: "If one of the sw or sh arguments is zero<^>, the implementation *must* return without drawing anything."
- id: 2d.drawImage.paint

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

@ -9002,27 +9002,22 @@
expected: green
- name: 2d.drawImage.zerocanvas
desc: drawImage with zero-sized canvas as the source shoud throw exception
testing:
- 2d.drawImage.zerocanvas
code: |
ctx.fillStyle = '#0f0';
ctx.fillRect(0, 0, 100, 50);
var canvas2 = document.createElement('canvas');
canvas2.width = 0;
canvas2.height = 10;
ctx.drawImage(canvas2, 0, 0);
canvas2.height = 50;
@assert throws INVALID_STATE_ERR ctx.drawImage(canvas2, 0, 0);
canvas2.width = 10;
canvas2.width = 50;
canvas2.height = 0;
ctx.drawImage(canvas2, 0, 0);
@assert throws INVALID_STATE_ERR ctx.drawImage(canvas2, 0, 0);
canvas2.width = 0;
canvas2.height = 0;
ctx.drawImage(canvas2, 0, 0);
@assert pixel 50,25 ==~ 0,255,0,255;
expected: green
@assert throws INVALID_STATE_ERR ctx.drawImage(canvas2, 0, 0);
- name: 2d.drawImage.svg
desc: drawImage() of an SVG image

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

@ -1,12 +1,5 @@
<!doctype html>
<meta charset="utf-8">
<meta name="timeout" content="long">
<title>IndexedDB: Interleaved iteration of multiple cursors</title>
<link rel="author" href="pwnall@chromium.org" title="Victor Costan">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="support-promises.js"></script>
<script>
// Infrastructure shared by interleaved-cursors-{small,large}.html
// Number of objects that each iterator goes over.
const itemCount = 10;
@ -169,7 +162,7 @@ function interleaveCursors(testCase, store, cursorCount) {
});
}
for (let cursorCount of [1, 10, 100, 500]) {
function cursorTest(cursorCount) {
promise_test(testCase => {
return createDatabase(testCase, (database, transaction) => {
const store = database.createObjectStore('cache',
@ -193,4 +186,3 @@ for (let cursorCount of [1, 10, 100, 500]) {
});
}, `${cursorCount} cursors`);
}
</script>

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

@ -0,0 +1,12 @@
<!doctype html>
<meta charset="utf-8">
<meta name="timeout" content="long">
<title>IndexedDB: Interleaved iteration of multiple cursors</title>
<link rel="author" href="pwnall@chromium.org" title="Victor Costan">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="support-promises.js"></script>
<script src="interleaved-cursors-common.js"></script>
<script>
cursorTest(250);
</script>

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

@ -0,0 +1,14 @@
<!doctype html>
<meta charset="utf-8">
<meta name="timeout" content="long">
<title>IndexedDB: Interleaved iteration of multiple cursors</title>
<link rel="author" href="pwnall@chromium.org" title="Victor Costan">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="support-promises.js"></script>
<script src="interleaved-cursors-common.js"></script>
<script>
cursorTest(1);
cursorTest(10);
cursorTest(100);
</script>

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

@ -1,12 +1,12 @@
// To make sure that we take the snapshot at the right time, we do double
// requestAnimationFrame. In the second frame, we take a screenshot, that makes
// sure that we already have a full frame.
function importPaintWorkletAndTerminateTestAfterAsyncPaint(code) {
if (typeof CSS.paintWorklet == "undefined") {
function importWorkletAndTerminateTestAfterAsyncPaint(worklet, code) {
if (typeof worklet == "undefined") {
takeScreenshot();
} else {
var blob = new Blob([code], {type: 'text/javascript'});
CSS.paintWorklet.addModule(URL.createObjectURL(blob)).then(function() {
worklet.addModule(URL.createObjectURL(blob)).then(function() {
requestAnimationFrame(function() {
requestAnimationFrame(function() {
takeScreenshot();

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

@ -0,0 +1,65 @@
<!DOCTYPE html>
<title>-webkit-appearance support</title>
<!-- There is no spec for -webkit-appearance. It is supported in Opera, Safari,
Chrome, and Edge. Firefox has expressed intent to support it. -->
<link rel="help" href="https://github.com/whatwg/compat/issues/6">
<meta name="assert" content="This test checks for support of the -webkit-appearance CSS attribute." />
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="tester"></div>
<script>
const WEBKIT_APPEARANCE_VALUES = [
'none',
'checkbox',
'radio',
'push-button',
'square-button',
'button',
'button-bevel',
'inner-spin-button',
'listbox',
'listitem',
'media-enter-fullscreen-button',
'media-exit-fullscreen-button',
'media-mute-button',
'media-play-button',
'media-overlay-play-button',
'media-toggle-closed-captions-button',
'media-slider',
'media-sliderthumb',
'media-volume-slider-container',
'media-volume-slider',
'media-volume-sliderthumb',
'media-controls-background',
'media-controls-fullscreen-background',
'media-current-time-display',
'media-time-remaining-display',
'menulist',
'menulist-button',
'menulist-text',
'menulist-textfield',
'meter',
'progress-bar',
'progress-bar-value',
'slider-horizontal',
'slider-vertical',
'sliderthumb-horizontal',
'sliderthumb-vertical',
'caret',
'searchfield',
'searchfield-cancel-button',
'textfield',
'textarea',
];
for (const appearance_value of WEBKIT_APPEARANCE_VALUES) {
test(() => {
const div = document.getElementById('tester');
div.style = `-webkit-appearance: ${appearance_value}`;
assert_equals(getComputedStyle(div).webkitAppearance, appearance_value);
});
}
</script>

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

@ -0,0 +1,12 @@
<!DOCTYPE html>
<title>Collapse bottom margin from previous sibling through zero height block to next sibling</title>
<link rel="author" title="Morten Stenshorne" href="mstensho@chromium.org">
<link rel="help" href="https://www.w3.org/TR/CSS22/box.html#collapsing-margins" title="8.3.1 Collapsing margins">
<link rel="match" href="../../reference/ref-filled-green-200px-square.html">
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div style="overflow:hidden; width:200px; height:400px; background:green;">
<div style="margin-bottom:200px;"></div>
<div style="height:0;"></div>
<div style="height:200px; margin-top:100px; background:white;"></div>
<div style="height:200px; background:red;"></div>
</div>

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

@ -47,6 +47,12 @@
checkInvalidValues("start auto")
}, "Verify 'auto' values are invalid");
test(function() {
checkInvalidValues("self-start")
checkInvalidValues("center self-end")
checkInvalidValues("self-end start")
}, "Verify self-position values are invalid");
test(function() {
checkInvalidValues("")
}, "Verify empty declaration is invalid");

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

@ -19,39 +19,39 @@ document.body.appendChild(container);
test(function() {
element = document.createElement("div");
document.body.appendChild(element);
checkValues(element, "justifyItems", "justify-items", "", "legacy");
checkValues(element, "justifyItems", "justify-items", "", "normal");
}, "Test 'initial' value when nothing is specified");
test(function() {
container.style.display = "";
checkInitialValues(element, "justifyItems", "justify-items", "center", "legacy");
checkInitialValues(element, "justifyItems", "justify-items", "center", "normal");
}, "Test justify-items: 'initial'");
test(function() {
container.style.display = "grid";
checkInitialValues(element, "justifyItems", "justify-items", "safe start", "legacy");
checkInitialValues(element, "justifyItems", "justify-items", "safe start", "normal");
}, "Test grid items justify-items: 'initial'");
test(function() {
container.style.display = "flex";
checkInitialValues(element, "justifyItems", "justify-items", "unsafe end", "legacy");
checkInitialValues(element, "justifyItems", "justify-items", "unsafe end", "normal");
}, "Test flex items justify-items: 'initial'");
test(function() {
container.style.display = "";
element.style.position = "absolute";
checkInitialValues(element, "justifyItems", "justify-items", "start", "legacy");
checkInitialValues(element, "justifyItems", "justify-items", "start", "normal");
}, "Test absolute positioned elements justify-items: 'initial'");
test(function() {
container.style.display = "grid";
element.style.position = "absolute";
checkInitialValues(element, "justifyItems", "justify-items", "end", "legacy");
checkInitialValues(element, "justifyItems", "justify-items", "end", "normal");
}, "Test absolute positioned grid items justify-items: 'initial'");
test(function() {
container.style.display = "flex";
element.style.position = "absolute";
checkInitialValues(element, "justifyItems", "justify-items", "end", "legacy");
checkInitialValues(element, "justifyItems", "justify-items", "end", "normal");
}, "Test absolute positioned flex items justify-items: 'initial'");
</script>

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

@ -37,7 +37,18 @@
checkInvalidValues("auto")
checkInvalidValues("auto right")
checkInvalidValues("auto auto")
}, "Verify 'auto' value is invalid as first longhand value.");
checkInvalidValues("center auto")
}, "Verify 'auto' value is invalid.");
test(function() {
checkInvalidValues("legacy")
checkInvalidValues("legacy start")
checkInvalidValues("end legacy")
checkInvalidValues("legacy left")
checkInvalidValues("center legacy")
checkInvalidValues("start legacy center")
}, "Verify 'legacy' value is invalid.");
test(function() {
checkInvalidValues("")

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

@ -0,0 +1,53 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Color 4: color() parsing</title>
<link rel="help" href="https://drafts.csswg.org/css-color-4/#color-function">
<meta name="assert" content="Tests basic parsing of the color function">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="test"></div>
<script>
const div = document.querySelector("#test");
function testColorFunction(description, rule, expectedValue) {
test(function() {
div.style.color = "black";
div.style.color = rule;
assert_equals(getComputedStyle(div).color, expectedValue);
}, description);
}
testColorFunction("Basic sRGB white", "color(srgb 1 1 1)", "color(srgb 1 1 1)");
testColorFunction("White with lots of space", "color( srgb 1 1 1 )", "color(srgb 1 1 1)");
testColorFunction("sRGB color", "color(srgb 0.25 0.5 0.75)", "color(srgb 0.25 0.5 0.75)");
testColorFunction("Different case for sRGB", "color(SrGb 0.25 0.5 0.75)", "color(srgb 0.25 0.5 0.75)");
testColorFunction("sRGB color with unnecessary decimals", "color(srgb 1.00000 0.500000 0.20)", "color(srgb 1 0.5 0.2)");
testColorFunction("sRGB white with 0.5 alpha", "color(srgb 1 1 1 / 0.5)", "color(srgb 1 1 1 / 0.5)");
testColorFunction("sRGB white with 0 alpha", "color(srgb 1 1 1 / 0)", "color(srgb 1 1 1 / 0)");
testColorFunction("sRGB white with 50% alpha", "color(srgb 1 1 1 / 50%)", "color(srgb 1 1 1 / 0.5)");
testColorFunction("sRGB white with 0% alpha", "color(srgb 1 1 1 / 0%)", "color(srgb 1 1 1 / 0)");
testColorFunction("One missing component is 0", "color(srgb 1 1)", "color(srgb 1 1 0)");
testColorFunction("Two missing components are 0", "color(srgb 1)", "color(srgb 1 0 0)");
testColorFunction("All components missing", "color(srgb)", "color(srgb 0 0 0)");
testColorFunction("Display P3 color", "color(display-p3 0.6 0.7 0.8)", "color(display-p3 0.6 0.7 0.8)");
testColorFunction("Different case for Display P3", "color(dIspLaY-P3 0.6 0.7 0.8)", "color(display-p3 0.6 0.7 0.8)");
testColorFunction("Unknown color space should fallback", "color(unknown 1 2 3, red)", "color(unknown 1 2 3, red)");
testColorFunction("sRGB color with negative component should clamp to 0", "color(srgb -0.25 0.5 0.75)", "color(srgb 0 0.5 0.75)");
testColorFunction("sRGB color with component > 1 should clamp", "color(srgb 0.25 1.5 0.75)", "color(srgb 0.25 1 0.75)");
testColorFunction("Display P3 color with negative component should clamp to 0", "color(display-p3 0.5 -199 0.75)", "color(display-p3 0.5 0 0.75)");
testColorFunction("Display P3 color with component > 1 should clamp", "color(display-p3 184 1.00001 2347329746587)", "color(display-p3 1 1 1)");
testColorFunction("Alpha > 1 should clamp", "color(srgb 0.1 0.2 0.3 / 1.9)", "color(srgb 0.1 0.2 0.3)");
testColorFunction("Negative alpha should clamp", "color(srgb 1 1 1 / -0.2)", "color(srgb 1 1 1 / 0)");
// Invalid properties
testColorFunction("Empty", "color()", "rgb(0, 0, 0)");
testColorFunction("Bad color space", "color(banana 1 1 1)", "rgb(0, 0, 0)");
testColorFunction("Bad Display P3 color space", "color(displayp3 1 1 1)", "rgb(0, 0, 0)");
testColorFunction("No color space", "color(1 1 1)", "rgb(0, 0, 0)");
testColorFunction("Too many parameters", "color(srgb 1 1 1 1)", "rgb(0, 0, 0)");
testColorFunction("Way too many parameters", "color(srgb 1 1 1 1 1)", "rgb(0, 0, 0)");
testColorFunction("Bad parameters", "color(srgb 1 eggs 1)", "rgb(0, 0, 0)");
testColorFunction("Bad alpha", "color(srgb 1 1 1 / bacon)", "rgb(0, 0, 0)");
testColorFunction("Junk after alpha", "color(srgb 1 1 1 / 1 cucumber)", "rgb(0, 0, 0)");
</script>

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

@ -21,7 +21,7 @@
}
</style>
<script src="/common/reftest-wait.js"></script>
<script src="/common/css-paint-tests.js"></script>
<script src="/common/worklet-reftest.js"></script>
<body>
<div id="background">
<div id="canvas-opaque" class="container"></div>
@ -49,7 +49,7 @@ registerPaint('nonOpaque', class {
</script>
<script>
importPaintWorkletAndTerminateTestAfterAsyncPaint(document.getElementById('code').textContent);
importWorkletAndTerminateTestAfterAsyncPaint(CSS.paintWorklet, document.getElementById('code').textContent);
</script>
</body>
</html>

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

@ -9,7 +9,7 @@
}
</style>
<script src="/common/reftest-wait.js"></script>
<script src="/common/css-paint-tests.js"></script>
<script src="/common/worklet-reftest.js"></script>
<body>
<div id="output"></div>
@ -27,7 +27,7 @@ for (let i = 0; i < 3; i++) {
</script>
<script>
importPaintWorkletAndTerminateTestAfterAsyncPaint(document.getElementById('code').textContent);
importWorkletAndTerminateTestAfterAsyncPaint(CSS.paintWorklet, document.getElementById('code').textContent);
</script>
</body>
</html>

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

@ -21,7 +21,7 @@
}
</style>
<script src="/common/reftest-wait.js"></script>
<script src="/common/css-paint-tests.js"></script>
<script src="/common/worklet-reftest.js"></script>
<body>
<div id="one"></div>
<div id="two"></div>
@ -38,7 +38,7 @@ registerPaint('ellipse', class {
</script>
<script>
importPaintWorkletAndTerminateTestAfterAsyncPaint(document.getElementById('code').textContent);
importWorkletAndTerminateTestAfterAsyncPaint(CSS.paintWorklet, document.getElementById('code').textContent);
</script>
</body>
</html>

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

@ -13,7 +13,7 @@ html, body { margin: 0; padding: 0; }
}
</style>
<script src="/common/reftest-wait.js"></script>
<script src="/common/css-paint-tests.js"></script>
<script src="/common/worklet-reftest.js"></script>
<body>
<div id="canvas-geometry" class="container"></div>
@ -28,7 +28,7 @@ registerPaint('geometry', class {
</script>
<script>
importPaintWorkletAndTerminateTestAfterAsyncPaint(document.getElementById('code').textContent);
importWorkletAndTerminateTestAfterAsyncPaint(CSS.paintWorklet, document.getElementById('code').textContent);
</script>
</body>
</html>

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

@ -13,7 +13,7 @@ html, body { margin: 0; padding: 0; }
}
</style>
<script src="/common/reftest-wait.js"></script>
<script src="/common/css-paint-tests.js"></script>
<script src="/common/worklet-reftest.js"></script>
<body>
<div id="canvas-geometry" class="container"></div>
@ -28,7 +28,7 @@ registerPaint('geometry', class {
</script>
<script>
importPaintWorkletAndTerminateTestAfterAsyncPaint(document.getElementById('code').textContent);
importWorkletAndTerminateTestAfterAsyncPaint(CSS.paintWorklet, document.getElementById('code').textContent);
</script>
</body>
</html>

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

@ -14,7 +14,7 @@ html, body { margin: 0; padding: 0; }
}
</style>
<script src="/common/reftest-wait.js"></script>
<script src="/common/css-paint-tests.js"></script>
<script src="/common/worklet-reftest.js"></script>
<body>
<div id="canvas-geometry" class="container"></div>
@ -30,7 +30,7 @@ registerPaint('geometry', class {
</script>
<script>
importPaintWorkletAndTerminateTestAfterAsyncPaint(document.getElementById('code').textContent);
importWorkletAndTerminateTestAfterAsyncPaint(CSS.paintWorklet, document.getElementById('code').textContent);
</script>
</body>
</html>

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

@ -14,7 +14,7 @@ html, body { margin: 0; padding: 0; }
}
</style>
<script src="/common/reftest-wait.js"></script>
<script src="/common/css-paint-tests.js"></script>
<script src="/common/worklet-reftest.js"></script>
<body>
<div id="canvas-geometry" class="container"></div>
@ -29,7 +29,7 @@ registerPaint('geometry', class {
</script>
<script>
importPaintWorkletAndTerminateTestAfterAsyncPaint(document.getElementById('code').textContent);
importWorkletAndTerminateTestAfterAsyncPaint(CSS.paintWorklet, document.getElementById('code').textContent);
</script>
</body>
</html>

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

@ -14,7 +14,7 @@ html, body { margin: 0; padding: 0; }
}
</style>
<script src="/common/reftest-wait.js"></script>
<script src="/common/css-paint-tests.js"></script>
<script src="/common/worklet-reftest.js"></script>
<body>
<div id="canvas-geometry" class="container"></div>
@ -29,7 +29,7 @@ registerPaint('geometry', class {
</script>
<script>
importPaintWorkletAndTerminateTestAfterAsyncPaint(document.getElementById('code').textContent);
importWorkletAndTerminateTestAfterAsyncPaint(CSS.paintWorklet, document.getElementById('code').textContent);
</script>
</body>
</html>

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

@ -15,7 +15,7 @@ html, body { margin: 0; padding: 0; }
}
</style>
<script src="/common/reftest-wait.js"></script>
<script src="/common/css-paint-tests.js"></script>
<script src="/common/worklet-reftest.js"></script>
<body>
<div id="canvas-geometry" class="container"></div>
@ -34,7 +34,7 @@ registerPaint('geometry', class {
<script>
document.getElementById('canvas-geometry').style.borderWidth = '10px';
importPaintWorkletAndTerminateTestAfterAsyncPaint(document.getElementById('code').textContent);
importWorkletAndTerminateTestAfterAsyncPaint(CSS.paintWorklet, document.getElementById('code').textContent);
</script>
</body>
</html>

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

@ -15,7 +15,7 @@ html, body { margin: 0; padding: 0; }
}
</style>
<script src="/common/reftest-wait.js"></script>
<script src="/common/css-paint-tests.js"></script>
<script src="/common/worklet-reftest.js"></script>
<body>
<div id="canvas-geometry" class="container"></div>
@ -34,7 +34,7 @@ registerPaint('geometry', class {
<script>
document.getElementById('canvas-geometry').style.borderImageOutset = '20px';
importPaintWorkletAndTerminateTestAfterAsyncPaint(document.getElementById('code').textContent);
importWorkletAndTerminateTestAfterAsyncPaint(CSS.paintWorklet, document.getElementById('code').textContent);
</script>
</body>
</html>

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

@ -15,7 +15,7 @@ html, body { margin: 0; padding: 0; }
}
</style>
<script src="/common/reftest-wait.js"></script>
<script src="/common/css-paint-tests.js"></script>
<script src="/common/worklet-reftest.js"></script>
<body>
<div id="canvas-geometry" class="container"></div>
@ -34,7 +34,7 @@ registerPaint('geometry', class {
<script>
document.getElementById('canvas-geometry').style.borderImageOutset = '10px';
importPaintWorkletAndTerminateTestAfterAsyncPaint(document.getElementById('code').textContent);
importWorkletAndTerminateTestAfterAsyncPaint(CSS.paintWorklet, document.getElementById('code').textContent);
</script>
</body>
</html>

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

@ -15,7 +15,7 @@ html, body { margin: 0; padding: 0; }
}
</style>
<script src="/common/reftest-wait.js"></script>
<script src="/common/css-paint-tests.js"></script>
<script src="/common/worklet-reftest.js"></script>
<body>
<div id="canvas-geometry" class="container"></div>
@ -35,7 +35,7 @@ registerPaint('geometry', class {
<script>
document.getElementById('canvas-geometry').style.borderWidth = '10px';
document.getElementById('canvas-geometry').style.borderImageOutset = '10px';
importPaintWorkletAndTerminateTestAfterAsyncPaint(document.getElementById('code').textContent);
importWorkletAndTerminateTestAfterAsyncPaint(CSS.paintWorklet, document.getElementById('code').textContent);
</script>
</body>
</html>

Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше