Bug 1485643 - Use pref dom.datatransfer.mozAtAPIs instead of truncated name. r=nika a=RyanVM
authorSebastian Hengst <archaeopteryx@coole-files.de>
Thu, 23 Aug 2018 16:44:33 +0300
changeset 432993 038a3a9da10fb8f1f0721dd57adc91dfb6b01283
parent 432992 22e0f5646bde4d96395d94c64c801bd58e35df42
child 433029 7b78aeca32ed9b21e11e7ff76be8743aced52408
push id34497
push userarchaeopteryx@coole-files.de
push dateThu, 23 Aug 2018 16:37:12 +0000
treeherdermozilla-central@038a3a9da10f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnika, RyanVM
bugs1485643
milestone63.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1485643 - Use pref dom.datatransfer.mozAtAPIs instead of truncated name. r=nika a=RyanVM Reviewers: nika Tags: #secure-revision Bug #: 1485643 Differential Revision: https://phabricator.services.mozilla.com/D4075
dom/tests/mochitest/general/test_datatransfer_disallowed.html
--- a/dom/tests/mochitest/general/test_datatransfer_disallowed.html
+++ b/dom/tests/mochitest/general/test_datatransfer_disallowed.html
@@ -6,17 +6,17 @@
   <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
 </head>
 <body>
 <script>
 function run_test()
 {
   SpecialPowers.pushPrefEnv({"set": [
-    ["dom.datatransfer.moz", false],
+    ["dom.datatransfer.mozAtAPIs", false],
   ]}, function() {
     let hiddenMethods = ["mozTypesAt", "mozClearDataAt", "mozGetDataAt", "mozSetDataAt", "mozItemCount"];
     let exposedMethods = Object.getOwnPropertyNames(DataTransfer.prototype);
     for (var idx in hiddenMethods) {
       if (exposedMethods.includes(hiddenMethods[idx])) {
         ok(false, hiddenMethods[idx] + " should not be exposed");
       } else {
         ok(true, hiddenMethods[idx] + " was not exposed");