Граф коммитов

203 Коммитов

Автор SHA1 Сообщение Дата
Paul Adenot 4e60c5edf0 Bug 1631713 - Align the maximum memory usage of worklets on workers. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D71966
2020-04-23 05:17:04 +00:00
Karl Tomlinson b73b39f7a4 Bug 1628842 reject Worklet#addModule() promise with DOM UnknownError on failure to create global r=baku
The UnknownError is chosen based on
https://heycam.github.io/webidl/#unknownerror and suspected OOM.

Differential Revision: https://phabricator.services.mozilla.com/D71256
2020-04-17 06:02:16 +00:00
Andrea Marchesini 3a6775ecf7 Bug 1630947 - Update Reporting API - part 1 - ReportingObserver in workers, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D71317
2020-04-18 12:25:57 +00:00
Cosmin Sabou 948e626a26 Backed out 2 changesets (bug 1630947) for causing build bustages on ReportingObserver.cpp. CLOSED TREE
Backed out changeset 18c357daf0f7 (bug 1630947)
Backed out changeset 6bfed9f2487d (bug 1630947)
2020-04-17 23:16:58 +03:00
Andrea Marchesini aaa72f6ebb Bug 1630947 - Update Reporting API - part 1 - ReportingObserver in workers, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D71317
2020-04-17 19:55:28 +00:00
Ryan Hunt 6209b9c4eb Bug 1624524 - Remove uses of wasmTextToBinary in non-JS shell tests. r=bbouvier
There are not many uses of wasmTextToBinary in the non-JS shell tests, and so
the easiest path to resolving the build size regression from using the 'wat'
crate is to just conditionally compile it in the JS shell. This commit takes
the few cases of wasmTextToBinary in non-JS shell tests and precompiles them
to binary.

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

--HG--
extra : moz-landing-system : lando
2020-04-10 21:28:19 +00:00
Tom Schuster fae4303276 Bug 1626100 - Introduce an ExceptionStack class and StealPendingExceptionStack. r=sfink,mccr8
See also the bug for a more detailed description.

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

--HG--
extra : moz-landing-system : lando
2020-04-09 12:35:29 +00:00
Karl Tomlinson c6f307b7eb Bug 1616723 restrict Worklet and AudioParamMap to secure contexts r=baku
Differential Revision: https://phabricator.services.mozilla.com/D68774

--HG--
extra : moz-landing-system : lando
2020-03-30 20:55:07 +00:00
Karl Tomlinson 9199513a35 Bug 1625446 revert test_audioWorklet_WASM.html and test_audioWorklet_options.html to disabled on beta r=baku
This reverts some of the changes made in
https://hg.mozilla.org/mozilla-central/rev/02f562ee1c81#l3.6

dom.postMessage.sharedArrayBuffer.bypassCOOP_COEP.insecure.enabled is locked to false on beta
https://searchfox.org/mozilla-central/rev/9c6e7500c0015a2c60be7b1b888261d95095ce27/modules/libpref/init/all.js#4973

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

--HG--
extra : moz-landing-system : lando
2020-03-30 08:45:04 +00:00
Paul Adenot 28cbf5bab3 Bug 1565464 - Update test_audioWorkletGlobalScopeRegisterProcessor.html with new error messages and error type. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D67326

--HG--
extra : moz-landing-system : lando
2020-03-27 10:51:05 +00:00
Karl Tomlinson d13eef7aff Bug 1581896 allow AudioWorklet on release-or-beta behind a pref r=smaug
AudioWorklets are now functional for most use cases, and so it's time to allow
people to experiment.

PaintWorklets are not ready.

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

--HG--
extra : moz-landing-system : lando
2020-03-27 03:09:06 +00:00
Ryan Hunt e50c835e32 Bug 1612534 - Manually fix wasm/ jit-tests. r=lth
This commit includes all the manual changes needed to get 'wasm/' jit-tests
passing.

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

--HG--
extra : moz-landing-system : lando
2020-03-23 16:31:21 +00:00
Andrea Marchesini 6e5bd2d254 Bug 1402784 - Use nsIContentPolicy::TYPE_INTERNAL_AUDIOWORKLET and nsIContentPolicy::TYPE_INTERNAL_PAINTWORKLET in Worklet code, r=smaug
Depends on D67105

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

--HG--
extra : moz-landing-system : lando
2020-03-17 22:24:39 +00:00
Simon Giesecke d152e69887 Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/worklet. r=smaug
Depends on D66033

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

--HG--
extra : moz-landing-system : lando
2020-03-09 14:51:58 +00:00
Mark Banner 15cfe23b88 Bug 1620542 - Automatically fix ESLint errors in .eslintrc.js files. r=mossop
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2020-03-07 10:09:44 +00:00
Boris Zbarsky 8e25df76a8 Bug 1618011 part 10. Use a BindingCallContext for initializing AudioParamDescriptors. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D64891

--HG--
extra : moz-landing-system : lando
2020-03-06 23:05:17 +00:00
Boris Zbarsky 0082f55dee Bug 1618011 part 7. Switch most error messages used in bindings to having a method name prefix. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D64888

--HG--
extra : moz-landing-system : lando
2020-03-06 23:05:16 +00:00
Arthur Iakab 14247fb057 Backed out 11 changesets (bug 1618011)for Linting failure.
CLOSED TREE

Backed out changeset 8b11ddd8999f (bug 1618011)
Backed out changeset 11df2f359473 (bug 1618011)
Backed out changeset c50121035d50 (bug 1618011)
Backed out changeset 8b8c4c60c34b (bug 1618011)
Backed out changeset b01f8c66110b (bug 1618011)
Backed out changeset 433fdf04058c (bug 1618011)
Backed out changeset 29a9227d08ac (bug 1618011)
Backed out changeset b2dfa2e66d24 (bug 1618011)
Backed out changeset 85650ee945c4 (bug 1618011)
Backed out changeset 278a213e5304 (bug 1618011)
Backed out changeset 9119aeb72ea4 (bug 1618011)
2020-03-07 00:15:57 +02:00
Boris Zbarsky eaa46a9a55 Bug 1618011 part 10. Use a BindingCallContext for initializing AudioParamDescriptors. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D64891

--HG--
extra : moz-landing-system : lando
2020-03-06 20:39:50 +00:00
Boris Zbarsky bc068d0e54 Bug 1618011 part 7. Switch most error messages used in bindings to having a method name prefix. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D64888

--HG--
extra : moz-landing-system : lando
2020-03-06 20:39:10 +00:00
Simon Giesecke aaf6cb4e75 Bug 1617628 - Hide nsBaseHashtable Put overloads in nsRefPtrHashtable subclass. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D63899

--HG--
extra : moz-landing-system : lando
2020-02-25 17:03:36 +00:00
Boris Zbarsky 6c66fa85a4 Bug 1615022 part 2. Require an rvalue reference to reject a Promise with an ErrorResult. r=farre,kvark
The rejection process consumes the ErrorResult, so an rvalue reference is the honest thing here.

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

--HG--
extra : moz-landing-system : lando
2020-02-14 15:42:30 +00:00
Simon Giesecke b50347f917 Bug 1611415 - Prefer using std::move over forget. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D60980

--HG--
extra : moz-landing-system : lando
2020-02-13 14:38:48 +00:00
shindli 91aa0518dd Backed out changeset 0c982bc69cb3 (bug 1611415) for causing build bustages in /builds/worker/workspace/build/src/obj-firefox/dist/include/nsCOMPtr CLOSED TREE 2020-02-12 20:13:29 +02:00
Simon Giesecke f604a47fa5 Bug 1611415 - Applied FixItHints from mozilla-non-std-move. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D60980

--HG--
extra : moz-landing-system : lando
2020-02-12 17:24:41 +00:00
Andrea Marchesini acbbf5b903 Bug 1614899 - Support WASM + SAB in AudioWorkletNode processOptions, r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D62598

--HG--
extra : moz-landing-system : lando
2020-02-12 16:16:23 +00:00
Andrea Marchesini 3efc616139 Bug 1613909 - Enable shared-memory for SAP + postMessage() tests, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D62036

--HG--
extra : moz-landing-system : lando
2020-02-07 16:08:05 +00:00
Boris Zbarsky 1395be1f23 Bug 1613013 part 3. Annotate TypeErrors and RangeErrors from WebIDL implementations with the method they come from. r=peterv
Please review the changes to Errors.msg very carefully.  I caught a number of
mistakes there in self-review (e.g. not renumbering replacement markers
correctly when I added {0} to the beginnings of strings), and my confidence
that I caught them all is only middling.

A few lines (MSG_USELESS_SETTIMEOUT, MSG_TYPEDARRAY_IS_DETACHED,
MSG_NOT_SUBMIT_BUTTON) were removed from Errors.msg either because they were
already unused or because they either were single-user constant strings or
became such in the new setup and we could just use the string version of
ThrowTypeError.

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

--HG--
extra : moz-landing-system : lando
2020-02-06 21:22:32 +00:00
Boris Zbarsky 747a4d9f0a Bug 1613013 part 1. Annotate DOMExceptions from WebIDL implementations with the method they come from. r=peterv
This adds the name of the interface and method to the beginning of the exception
string when reporting the exception from Web IDL codegen, so it's clearer what
was called.

Some existing error messages are adjusted to not duplicate the information
about which method was called.

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

--HG--
extra : moz-landing-system : lando
2020-02-06 21:16:10 +00:00
Andrea Marchesini c0a0edd822 Bug 1612570 - Add promise support to worklet, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D61406

--HG--
extra : moz-landing-system : lando
2020-02-06 13:54:19 +00:00
Andrea Marchesini 1edd5d228f Bug 1611855 - Worklet must be part of the same parent's agentCluster - part 7 - nsIGlobalObject::IsSharedMemoryAllowed(), r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D61277

--HG--
extra : moz-landing-system : lando
2020-02-06 13:50:11 +00:00
Andrea Marchesini 3ea0389cd5 Bug 1611855 - Worklet must be part of the same parent's agentCluster - part 4 - tests, r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D61137

--HG--
extra : moz-landing-system : lando
2020-02-06 13:47:47 +00:00
Andrea Marchesini 175bac3a30 Bug 1611855 - Worklet must be part of the same parent's agentCluster - part 1, r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D61136

--HG--
extra : moz-landing-system : lando
2020-02-06 13:45:47 +00:00
Narcis Beleuzu f7c0c56918 Backed out changeset 5d69fddf45db (bug 1612570) for failing dom/worklet/tests/test_promise.html after bug 1611855 got backed out. CLOSED TREE
--HG--
extra : amend_source : acbba0ec52bc1fe7a262380dc790ff8f3c4bc838
2020-02-06 14:37:36 +02:00
Narcis Beleuzu d259fe38d8 Backed out 13 changesets (bug 1611855) for wpt failures on /audioworklet-postmessage-sharedarraybuffer.https.html . CLOSED TREE
Backed out changeset 2b661d588f96 (bug 1611855)
Backed out changeset 16094fc92bc9 (bug 1611855)
Backed out changeset 3f89bbcaff92 (bug 1611855)
Backed out changeset a906501b6d92 (bug 1611855)
Backed out changeset 54738b88425d (bug 1611855)
Backed out changeset d27de910a6c0 (bug 1611855)
Backed out changeset 261902f6336d (bug 1611855)
Backed out changeset 380d83b61e62 (bug 1611855)
Backed out changeset 39aac60ebf5e (bug 1611855)
Backed out changeset 5ea099787376 (bug 1611855)
Backed out changeset d0f58871f838 (bug 1611855)
Backed out changeset e1be102310a9 (bug 1611855)
Backed out changeset 633357835540 (bug 1611855)

--HG--
rename : dom/base/test/test_postMessages_workers.html => dom/base/test/test_postMessages.html
2020-02-06 12:31:36 +02:00
Andrea Marchesini 7a5ddf5fb4 Bug 1612570 - Add promise support to worklet, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D61406

--HG--
extra : moz-landing-system : lando
2020-02-05 22:16:21 +00:00
Andrea Marchesini db7085724d Bug 1611855 - Worklet must be part of the same parent's agentCluster - part 7 - nsIGlobalObject::IsSharedMemoryAllowed(), r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D61277

--HG--
extra : moz-landing-system : lando
2020-02-05 22:09:44 +00:00
Andrea Marchesini f8ed0cd543 Bug 1611855 - Worklet must be part of the same parent's agentCluster - part 4 - tests, r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D61137

--HG--
extra : moz-landing-system : lando
2020-02-05 22:08:41 +00:00
Andrea Marchesini 2106c7dcda Bug 1611855 - Worklet must be part of the same parent's agentCluster - part 1, r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D61136

--HG--
extra : moz-landing-system : lando
2020-02-05 22:07:04 +00:00
Arthur Iakab 897885fdb0 Backed out changeset 7dddff2d1120 (bug 1612570) for causing mochitest failures on test_promise.html.
CLOSED TREE
2020-02-03 10:27:47 +02:00
Andrea Marchesini 7ca32b64c3 Bug 1612570 - Add promise support to worklet, r=smaug
Depends on D61307

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

--HG--
extra : moz-landing-system : lando
2020-02-03 07:26:43 +00:00
Karl Tomlinson 2c2df90273 Bug 1594632 remove mExitLoop assertion, which is invalid when thread creation fails r=baku
Depends on D52614

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

--HG--
extra : moz-landing-system : lando
2019-12-06 01:40:49 +00:00
Karl Tomlinson 3402bd7ae6 Bug 1594632 acquire ownership of already_AddRefed runnable parameter with RefPtr r=baku
which will release the runnable on failure.

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

--HG--
extra : moz-landing-system : lando
2019-12-06 01:40:49 +00:00
Karl Tomlinson e026e88f35 Bug 1558526 remove check for callable process() in registerProcessor() r=bzbarsky
Since https://github.com/WebAudio/web-audio-api/pull/2104

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

--HG--
extra : moz-landing-system : lando
2020-01-10 02:31:13 +00:00
Olli Pettay 03c717bd41 Bug 1608093 - Remove support for multiple CycleCollectedJSContexts per CycleCollectedJSRuntime, r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D59338

--HG--
extra : moz-landing-system : lando
2020-01-09 17:27:10 +00:00
Paul Bone 8b4c7c407f Bug 1584892 - Remove CycleCollectedJSContext::Initialize's nursery size param r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D47873

--HG--
extra : moz-landing-system : lando
2019-12-16 04:14:55 +00:00
Paul Bone 89a1b3056a Bug 1584892 - Use the default max nursery size for workers r=baku,karlt
This patch updates this for workers and worklets.

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

--HG--
extra : moz-landing-system : lando
2019-12-16 03:55:24 +00:00
Gabriele Svelto ace6d1063f Bug 1600545 - Remove useless inclusions of header files generated from IDL files in dom/ r=Ehsan
The inclusions were removed with the following very crude script and the
resulting breakage was fixed up by hand. The manual fixups did either
revert the changes done by the script, replace a generic header with a more
specific one or replace a header with a forward declaration.

find . -name "*.idl" | grep -v web-platform | grep -v third_party | while read path; do
    interfaces=$(grep "^\(class\|interface\).*:.*" "$path" | cut -d' ' -f2)
    if [ -n "$interfaces" ]; then
        if [[ "$interfaces" == *$'\n'* ]]; then
          regexp="\("
          for i in $interfaces; do regexp="$regexp$i\|"; done
          regexp="${regexp%%\\\|}\)"
        else
          regexp="$interfaces"
        fi
        interface=$(basename "$path")
        rg -l "#include.*${interface%%.idl}.h" . | while read path2; do
            hits=$(grep -v "#include.*${interface%%.idl}.h" "$path2" | grep -c "$regexp" )
            if [ $hits -eq 0 ]; then
                echo "Removing ${interface} from ${path2}"
                grep -v "#include.*${interface%%.idl}.h" "$path2" > "$path2".tmp
                mv -f "$path2".tmp "$path2"
            fi
        done
    fi
done

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

--HG--
extra : moz-landing-system : lando
2019-12-06 09:24:56 +00:00
Dorel Luca a381d5c96d Backed out changeset f6e53d1c6518 (bug 1600545) for Android build bustage. CLOSED TREE 2019-12-04 17:32:27 +02:00
Gabriele Svelto bc9290f767 Bug 1600545 - Remove useless inclusions of header files generated from IDL files in dom/ r=Ehsan
The inclusions were removed with the following very crude script and the
resulting breakage was fixed up by hand. The manual fixups did either
revert the changes done by the script, replace a generic header with a more
specific one or replace a header with a forward declaration.

find . -name "*.idl" | grep -v web-platform | grep -v third_party | while read path; do
    interfaces=$(grep "^\(class\|interface\).*:.*" "$path" | cut -d' ' -f2)
    if [ -n "$interfaces" ]; then
        if [[ "$interfaces" == *$'\n'* ]]; then
          regexp="\("
          for i in $interfaces; do regexp="$regexp$i\|"; done
          regexp="${regexp%%\\\|}\)"
        else
          regexp="$interfaces"
        fi
        interface=$(basename "$path")
        rg -l "#include.*${interface%%.idl}.h" . | while read path2; do
            hits=$(grep -v "#include.*${interface%%.idl}.h" "$path2" | grep -c "$regexp" )
            if [ $hits -eq 0 ]; then
                echo "Removing ${interface} from ${path2}"
                grep -v "#include.*${interface%%.idl}.h" "$path2" > "$path2".tmp
                mv -f "$path2".tmp "$path2"
            fi
        done
    fi
done

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

--HG--
extra : moz-landing-system : lando
2019-12-04 15:01:19 +00:00