Bug 1479935 - Enable async clipboard readText and writeText APIs by default, r=nika

MozReview-Commit-ID: LpdRgQCnMNN

Differential Revision: https://phabricator.services.mozilla.com/D2858

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Anny Gakhokidze 2018-08-07 20:39:32 +00:00
Родитель d20f605a33
Коммит b502cdad85
2 изменённых файлов: 5 добавлений и 2 удалений

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

@ -207,6 +207,8 @@ var interfaceNamesInGlobalScope =
{name: "CharacterData", insecureContext: true},
// IMPORTANT: Do not change this list without review from a DOM peer!
{name: "ChromeNodeList", insecureContext: true, xbl: true},
// IMPORTANT: Do not change this list without review from a DOM peer!
{name: "Clipboard"},
// IMPORTANT: Do not change this list without review from a DOM peer!
{name: "ClipboardEvent", insecureContext: true},
// IMPORTANT: Do not change this list without review from a DOM peer!

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

@ -5895,8 +5895,9 @@ pref("browser.fastblock.enabled", false);
// after this timeout will be canceled.
pref("browser.fastblock.timeout", 5000);
// Disables clipboard reads and writes by default.
pref("dom.events.asyncClipboard", false);
// Enable clipboard readText() and writeText() by default
pref("dom.events.asyncClipboard", true);
// Disable clipboard read() and write() by default
pref("dom.events.asyncClipboard.dataTransfer", false);
// Should only be enabled in tests
pref("dom.events.testing.asyncClipboard", false);