From 9ca9d9aa745a2d9efce2ad44ec58896d161382f8 Mon Sep 17 00:00:00 2001 From: roytam1 Date: Wed, 30 Jun 2021 09:44:01 +0800 Subject: [PATCH] import changes from `dev' branch of rmottola/Arctic-Fox: - Bug 1218999 - Update mtimes when building a GENERATED_FILES target, even when contents don't change. r=glandium (53e8658ae) - partial of Bug 927388 - Produce and upload GeckoView AAR during packaging. (5b9f2edb1) - Bug 927388 - Follow-up: fix bustage on a CLOSED TREE. (5deab1ae5) - part of Bug 1174757 - Pre: Don't archive geckoview resources when not necessary (41da631ef) - goanna->gecko (d2f6f223e) - goanna->gecko (af5de4b01) - reapply Bug 927388 - Produce and upload GeckoView AAR (2f33b51b4) - Bug 1189459 - Allow generating geckoview AAR files when MOZ_APP_NAME is not 'fennec'. r=gps (dad480948) - Bug 1181965. Remove uses of mozRequestAnimationFrame from dom and parser tests. r=bkelly (ed3c653ce) --- dom/base/crashtests/706283-1.html | 2 +- dom/base/crashtests/709384.html | 4 +- dom/base/nsDocument.h | 4 +- dom/base/test/test_bug647518.html | 8 +- dom/base/test/test_bug675121.html | 2 +- dom/base/test/test_bug704063.html | 36 ++-- .../BrowserElementPanningAPZDisabled.js | 6 +- dom/canvas/test/reftest/webgl-utils.js | 2 +- dom/events/test/test_bug607464.html | 4 +- dom/plugins/test/crashtests/626602-1.html | 4 +- .../tests/reftest/frame599320-1.html | 2 +- python/jsmin/jsmin/test.py | 2 +- .../mozbuild/mozbuild/action/file_generate.py | 9 + .../mozbuild/action/package_geckolibs_aar.py | 175 +++++++++++++++--- .../mozbuild/backend/android_eclipse.py | 8 +- .../mozbuild/mozbuild/backend/cpp_eclipse.py | 8 +- .../action/data/valid-zh-CN/region.properties | 14 +- python/mozbuild/mozbuild/test/test_testing.py | 12 +- .../win/src/sandboxbroker/sandboxBroker.cpp | 2 +- testing/config/mozharness/marionette.py | 4 +- .../marionette_driver/goannainstance.py | 26 +-- testing/marionette/mach_commands.py | 6 +- .../marionette_transport/transport.py | 2 +- .../marionette/update-smoketests/smoketest.py | 6 +- testing/mochitest/runtests.py | 2 +- .../tests/MochiKit-1.4.2/MochiKit/Sortable.js | 6 +- testing/mozbase/docs/mozrunner.rst | 26 +-- testing/mozbase/docs/mozversion.rst | 2 +- testing/mozbase/mozcrash/mozcrash/mozcrash.py | 4 +- testing/mozbase/mozcrash/tests/test.py | 2 +- .../mozversion/mozversion/mozversion.py | 14 +- testing/mozharness/README.txt | 2 +- .../configs/b2g/desktop_macosx64.py | 8 +- .../configs/b2g/gaia_unit_test_config.py | 2 +- .../mozharness/configs/b2g_bumper/master.py | 26 +-- testing/mozharness/configs/b2g_bumper/v2.0.py | 18 +- testing/mozharness/configs/b2g_bumper/v2.1.py | 20 +- .../mozharness/configs/b2g_bumper/v2.1s.py | 22 +-- testing/mozharness/configs/b2g_bumper/v2.2.py | 24 +-- testing/mozharness/configs/vcs_sync/beagle.py | 52 +++--- .../vcs_sync/{goanna-git.py => gecko-git.py} | 72 +++---- testing/mozharness/configs/vcs_sync/l10n.py | 32 ++-- .../configs/vcs_sync/project-branches.py | 6 +- .../mozilla/building/buildb2gbase.py | 140 +++++++------- testing/mozharness/scripts/b2g_build.py | 130 ++++++------- testing/mozharness/scripts/b2g_bumper.py | 34 ++-- .../scripts/b2g_desktop_multilocale.py | 36 ++-- .../scripts/b2g_desktop_unittest.py | 4 +- .../scripts/b2g_emulator_unittest.py | 10 +- .../mozharness/scripts/firefox_ui_updates.py | 18 +- testing/mozharness/scripts/hazard_build.py | 14 +- testing/mozharness/scripts/marionette.py | 26 +-- .../mozharness/scripts/merge_day/b2g_tag.py | 40 ++-- ...goanna_migration.py => gecko_migration.py} | 34 ++-- .../mozharness/scripts/release/antivirus.py | 2 +- .../mozharness/scripts/spidermonkey/build.b2g | 2 +- .../mozharness/scripts/spidermonkey_build.py | 8 +- .../mozharness/scripts/vcs-sync/vcs_sync.py | 20 +- testing/taskcluster/README.md | 4 +- .../taskcluster/scripts/builder/gaia_props.py | 12 +- .../scripts/builder/install-packages.sh | 14 +- .../taskcluster/scripts/builder/pull-gaia.sh | 6 +- .../tasks/branches/alder/job_flags.yml | 4 +- .../tasks/branches/cedar/job_flags.yml | 4 +- testing/web-platform/README.md | 2 +- testing/web-platform/mozilla/README | 4 +- testing/web-platform/update/update.py | 2 +- testing/web-platform/update/upstream.py | 8 +- testing/xpcshell/runtestsb2g.py | 16 +- toolkit/commonjs/sdk/tabs/observer.js | 2 +- toolkit/commonjs/sdk/windows/tabs-firefox.js | 4 +- toolkit/devtools/server/actors/device.js | 4 +- .../server/tests/mochitest/test_device.html | 4 +- toolkit/forgetaboutsite/ForgetAboutSite.jsm | 2 +- toolkit/locales/compare-locales.pl | 8 +- toolkit/mozapps/installer/upload-files.mk | 31 +++- .../update/tests/data/xpcshellUtilsAUS.js | 2 +- .../update_smoketest_ota_same_version.js | 4 +- .../tests/marionette/update_test_status.js | 6 +- tools/docs/Vagrantfile | 2 +- tools/profiler/GeckoProfilerImpl.h | 2 +- tools/profiler/ProfilerMarkers.h | 2 +- tools/profiler/platform.cpp | 2 +- uriloader/exthandler/nsHandlerService.js | 4 +- uriloader/exthandler/nsWebHandlerApp.js | 2 +- .../tests/unit/test_handlerService.js | 2 +- view/nsView.h | 2 +- xpcom/build/IOInterposer.cpp | 2 +- xpcom/components/ManifestParser.cpp | 6 +- xpcom/io/nsBinaryStream.cpp | 4 +- xpcom/reflect/xptinfo/ShimInterfaceInfo.cpp | 10 +- xpcom/system/nsIXULAppInfo.idl | 2 +- xpcom/tests/gtest/TestStrings.cpp | 4 +- 93 files changed, 770 insertions(+), 625 deletions(-) rename testing/mozharness/configs/vcs_sync/{goanna-git.py => gecko-git.py} (84%) rename testing/mozharness/scripts/merge_day/{goanna_migration.py => gecko_migration.py} (97%) diff --git a/dom/base/crashtests/706283-1.html b/dom/base/crashtests/706283-1.html index 41e413178f..67b618e7fe 100644 --- a/dom/base/crashtests/706283-1.html +++ b/dom/base/crashtests/706283-1.html @@ -1,6 +1,6 @@ diff --git a/dom/base/crashtests/709384.html b/dom/base/crashtests/709384.html index 9f268a17d7..5e99e9c3c6 100644 --- a/dom/base/crashtests/709384.html +++ b/dom/base/crashtests/709384.html @@ -1,5 +1,5 @@ diff --git a/dom/base/nsDocument.h b/dom/base/nsDocument.h index 0ec58e40c8..cfd02fcc58 100644 --- a/dom/base/nsDocument.h +++ b/dom/base/nsDocument.h @@ -1751,10 +1751,10 @@ private: void EnableStyleSheetsForSetInternal(const nsAString& aSheetSet, bool aUpdateCSSLoader); - // Revoke any pending notifications due to mozRequestAnimationFrame calls + // Revoke any pending notifications due to requestAnimationFrame calls void RevokeAnimationFrameNotifications(); // Reschedule any notifications we need to handle - // mozRequestAnimationFrame, if it's OK to do so. + // requestAnimationFrame, if it's OK to do so. void MaybeRescheduleAnimationFrameNotifications(); // These are not implemented and not supported. diff --git a/dom/base/test/test_bug647518.html b/dom/base/test/test_bug647518.html index 29030d36f7..bb5a6a02a2 100644 --- a/dom/base/test/test_bug647518.html +++ b/dom/base/test/test_bug647518.html @@ -22,7 +22,7 @@ SimpleTest.waitForExplicitFinish(); var counter = 3; var called = false; -var handle1 = window.mozRequestAnimationFrame(function() { +var handle1 = window.requestAnimationFrame(function() { called = true; }); ok(handle1 > 0, "Should get back a nonzero handle"); @@ -33,11 +33,11 @@ function checker() { is(called, false, "Canceled callback should not have been called"); SimpleTest.finish(); } else { - window.mozRequestAnimationFrame(checker); + window.requestAnimationFrame(checker); } } -window.mozRequestAnimationFrame(checker); -window.mozCancelAnimationFrame(handle1); +window.requestAnimationFrame(checker); +window.cancelAnimationFrame(handle1); diff --git a/dom/base/test/test_bug675121.html b/dom/base/test/test_bug675121.html index 2f9638c70b..a48fea935e 100644 --- a/dom/base/test/test_bug675121.html +++ b/dom/base/test/test_bug675121.html @@ -27,7 +27,7 @@ function f() { } } -window.mozRequestAnimationFrame(f); +window.requestAnimationFrame(f); var xhr = new XMLHttpRequest(); xhr.open("GET", "file_bug675121.sjs", false); xhrInProgress = true; diff --git a/dom/base/test/test_bug704063.html b/dom/base/test/test_bug704063.html index 5c966c6b67..39759f1543 100644 --- a/dom/base/test/test_bug704063.html +++ b/dom/base/test/test_bug704063.html @@ -12,34 +12,34 @@ https://bugzilla.mozilla.org/show_bug.cgi?id= /** Test for Bug **/ SimpleTest.waitForExplicitFinish(); - var unprefixedRan = false; - var prefixedRan = false; - function unprefixed(time) { - is(prefixedRan, true, "We were called second"); - unprefixedRan = true; + var firstRan = false; + var secondRan = false; + function second(time) { + is(firstRan, true, "We were called second"); + secondRan = true; ok(Math.abs(time - performance.now()) < 3600000, "An hour really shouldn't have passed here"); ok(Math.abs(time - Date.now()) > 3600000, "More than an hour should have passed since 1970"); } - function prefixed(time) { - is(unprefixedRan, false, "Prefixed was called first"); - prefixedRan = true; - ok(Math.abs(time - Date.now()) < 3600000, - "Our time should be comparable to Date.now()"); - ok(Math.abs(time - performance.now()) > 3600000, - "Our time should not be comparable to performance.now()"); + function first(time) { + is(secondRan, false, "second() was called first"); + firstRan = true; + ok(Math.abs(time - performance.now()) < 3600000, + "An hour really shouldn't have passed here either"); + ok(Math.abs(time - Date.now()) > 3600000, + "More than an hour should have passed since 1970 here either"); } - function prefixed2() { - ok(prefixedRan, "We should be after the other prefixed call"); - ok(unprefixedRan, "We should be after the unprefixed call"); + function third() { + ok(firstRan, "We should be after the first call"); + ok(secondRan, "We should be after the second call"); SimpleTest.finish(); } window.onload = function() { - window.mozRequestAnimationFrame(prefixed); - window.requestAnimationFrame(unprefixed); - window.mozRequestAnimationFrame(prefixed2); + window.requestAnimationFrame(first); + window.requestAnimationFrame(second); + window.requestAnimationFrame(third); } diff --git a/dom/browser-element/BrowserElementPanningAPZDisabled.js b/dom/browser-element/BrowserElementPanningAPZDisabled.js index 26d5af92fb..d19757210a 100644 --- a/dom/browser-element/BrowserElementPanningAPZDisabled.js +++ b/dom/browser-element/BrowserElementPanningAPZDisabled.js @@ -622,7 +622,7 @@ const KineticPanning = { v.y * Math.exp(-t / c) * -c + a.y * t * t + v.y * c); } - let startTime = content.mozAnimationStartTime; + let startTime = content.performance.now(); let elapsedTime = 0, targetedTime = 0, averageTime = 0; let velocity = this._velocity; @@ -667,9 +667,9 @@ const KineticPanning = { return; } - content.mozRequestAnimationFrame(callback); + content.requestAnimationFrame(callback); }).bind(this); - content.mozRequestAnimationFrame(callback); + content.requestAnimationFrame(callback); } }; diff --git a/dom/canvas/test/reftest/webgl-utils.js b/dom/canvas/test/reftest/webgl-utils.js index a736cc5b36..06f34ca915 100644 --- a/dom/canvas/test/reftest/webgl-utils.js +++ b/dom/canvas/test/reftest/webgl-utils.js @@ -62,7 +62,7 @@ function initGL(canvas) { } function rAF(func) { - var raf = window.requestAnimationFrame || window.mozRequestAnimationFrame; + var raf = window.requestAnimationFrame; raf(func); } diff --git a/dom/events/test/test_bug607464.html b/dom/events/test/test_bug607464.html index 9460d68c50..9e22e57afc 100644 --- a/dom/events/test/test_bug607464.html +++ b/dom/events/test/test_bug607464.html @@ -55,10 +55,10 @@ function runTest() { scrollDown15PxWithPixelScrolling(scrollbox); // wait for the next refresh driver run - win.mozRequestAnimationFrame(function() { + win.requestAnimationFrame(function() { // actually, wait for the next one before checking results, since // scrolling might not be flushed until after this code has run - win.mozRequestAnimationFrame(function() { + win.requestAnimationFrame(function() { is(scrollbox.scrollTop, scrollTopBefore + 15, "Pixel scrolling should have finished after one refresh driver iteration. " + "We shouldn't be scrolling smoothly, even though the pref is set."); diff --git a/dom/plugins/test/crashtests/626602-1.html b/dom/plugins/test/crashtests/626602-1.html index 1802cf77f8..0a878bbd1d 100644 --- a/dom/plugins/test/crashtests/626602-1.html +++ b/dom/plugins/test/crashtests/626602-1.html @@ -35,7 +35,7 @@ function start() { canvas = document.getElementById("two"); paintCanvas(); - mozRequestAnimationFrame(moveSomething); + requestAnimationFrame(moveSomething); } function paintCanvas() { @@ -52,7 +52,7 @@ function moveSomething() { return finish(); } - mozRequestAnimationFrame(moveSomething); + requestAnimationFrame(moveSomething); } function finish() { diff --git a/parser/htmlparser/tests/reftest/frame599320-1.html b/parser/htmlparser/tests/reftest/frame599320-1.html index 2b5b338369..145ee94ba8 100644 --- a/parser/htmlparser/tests/reftest/frame599320-1.html +++ b/parser/htmlparser/tests/reftest/frame599320-1.html @@ -1082,7 +1082,7 @@

Euro sign: €