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

182 Коммитов

Автор SHA1 Сообщение Дата
Simon Giesecke e3c223da3e Bug 1648010 - Fix uses of NS_LITERAL_STRING with C string literals. r=geckoview-reviewers,agi,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D80861
2020-07-01 08:34:12 +00:00
Simon Giesecke cd8b8939b9 Bug 1648010 - Replace uses of NS_LITERAL_STRING/NS_LITERAL_CSTRING macros by _ns literals. r=geckoview-reviewers,jgilbert,agi,hsivonen,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D80860
2020-07-01 08:29:29 +00:00
Kris Maglione 6aa06b33a7 Bug 1645510: Part 2 - Avoid using the unprivileged junk scope where possible. r=bholley
Differential Revision: https://phabricator.services.mozilla.com/D79720
2020-06-27 03:06:28 +00:00
Simon Giesecke 82dc9b2271 Bug 1642949 - Replace uses of RemoveElementAt by RemoveLastElement/PopLastElement where possible. r=necko-reviewers,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D78027
2020-06-10 10:46:14 +00:00
Butkovits Atila e3dce68834 Backed out 3 changesets (bug 1643289, bug 1642949) for causing failure at test_headless_screenshot.html. CLOSED TREE
Backed out changeset 98c420f73380 (bug 1643289)
Backed out changeset 9447ea8910aa (bug 1643289)
Backed out changeset 0c827da9d847 (bug 1642949)
2020-06-10 10:07:23 +03:00
Simon Giesecke d419f0ff08 Bug 1642949 - Replace uses of RemoveElementAt by RemoveLastElement/PopLastElement where possible. r=necko-reviewers,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D78027
2020-06-10 05:49:28 +00:00
Simon Giesecke 191a830575 Bug 1628715 - Part 7: Add MOZ_NONNULL_RETURN to infallible nsTArray::AppendElements. r=xpcom-reviewers,necko-reviewers,nika,valentin
Differential Revision: https://phabricator.services.mozilla.com/D70831
2020-04-24 13:31:14 +00:00
Andreas Farre 63e21eec70 Bug 1620594 - Part 1: Rework NS_ReleaseOnMainThreadSystemGroup. r=nika
To be able to remove SystemGroup, NS_ReleaseOnMainThreadSystemGroup
needs to have its dependency on SystemGroup removed. Since all
releases using SystemGroup would've released on the main thread anyway
we can safely replace NS_ReleaseOnMainThreadSystemGroup with
NS_ReleaseOnMainThread.

Depends on D64390

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

--HG--
extra : moz-landing-system : lando
2020-04-07 15:16:23 +00:00
nemesisBR 279a7bf54a Bug 1624233 : Removed else after return statement. r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D68167

--HG--
extra : moz-landing-system : lando
2020-04-02 17:34:09 +00:00
Andrea Marchesini 108ccd5e61 Bug 1625854 - Avoid crashing when console is unabled to serialize the message, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D68794

--HG--
extra : moz-landing-system : lando
2020-03-30 20:37:41 +00:00
Jon Coppeard c1e3671c97 Bug 1624810 - Set the multi-zone JS holder flag on appropriate cycle collected classes r=mccr8
Set the flag on the affected classes, which are:
 - CallbackTimeoutHandler
 - nsJSArgArray
 - CallbackObject
 - Console
 - MessageEvent
 - IDBIndexCursor
 - ExtendableMessageEvent
 - JSPurpleBuffer

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

--HG--
extra : moz-landing-system : lando
2020-03-26 10:49:06 +00:00
Karl Tomlinson 3c6e2c84d6 Bug 1492011 assert that ConsoleStructuredCloneData::mGlobal is cleared before ConsoleRunnable destruction r=baku
Depends on D68000

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

--HG--
extra : moz-landing-system : lando
2020-03-24 10:02:10 +00:00
Karl Tomlinson 701025e896 Bug 1492011 make ConsoleCallData::mRefCnt thread-safe r=baku
so that references can be released from the main thread and there is no need
to send a message to Console thread.

Depends on D67999

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

--HG--
extra : moz-landing-system : lando
2020-03-24 10:02:07 +00:00
Karl Tomlinson 8000fcef11 Bug 1492011 introduce a separate class to hold main-thread data associated with each Console r=baku
This provides that ConsoleRunnable no longer has a reference to Console, which
previously needed to be released through a message to the console thread.

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

--HG--
extra : moz-landing-system : lando
2020-03-25 01:06:16 +00:00
Karl Tomlinson 7a8ede2509 Bug 1492011 provide ID and Prefix on ConsoleCallData r=baku
to remove Console instance access from
PopulateConsoleNotificationInTheTargetScope().

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

--HG--
extra : moz-landing-system : lando
2020-03-25 00:22:34 +00:00
Karl Tomlinson 876034cbe8 Bug 1492011 change CreateStartTimerValue and CreateLogOrEndTimerValue from instance to class method r=baku
Differential Revision: https://phabricator.services.mozilla.com/D67997

--HG--
extra : moz-landing-system : lando
2020-03-25 00:51:50 +00:00
Karl Tomlinson 42e23b8bed Bug 1492011 change CreateCounterOrResetCounterValue from instance method to nonmember function with internal linkage r=baku
Depends on D67995

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

--HG--
extra : moz-landing-system : lando
2020-03-24 09:55:53 +00:00
Karl Tomlinson 74303d90fd Bug 1492011 change ProcessArguments from instance method to nonmember function with internal linkage r=baku
Depends on D67994

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

--HG--
extra : moz-landing-system : lando
2020-03-24 09:55:41 +00:00
Karl Tomlinson 08d7ab99aa Bug 1492011 provide group stack parameter to PopulateConsoleNotificationInTheTargetScope() r=baku
This will support removal of Console class usage from main thread.

Depends on D67993

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

--HG--
extra : moz-landing-system : lando
2020-03-24 09:04:00 +00:00
Karl Tomlinson 15ee47208b Bug 1492011 replace ArgumentsToValueList instance method with nsTArray::AppendElements() r=baku
Depends on D67992

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

--HG--
extra : moz-landing-system : lando
2020-03-24 09:02:16 +00:00
Karl Tomlinson 3ec04c339f Bug 1492011 change ShouldIncludeStackTrace from instance to class method r=baku
Depends on D67991

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

--HG--
extra : moz-landing-system : lando
2020-03-24 09:01:04 +00:00
Karl Tomlinson 36c19455ab Bug 1492011 Remove now-unused Console::mStatus r=baku
Depends on D67990

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

--HG--
extra : moz-landing-system : lando
2020-03-24 09:00:49 +00:00
Karl Tomlinson 2f45248784 Bug 1492011 Remove Console::mCallDataStoragePending r=baku
Now that ConsoleCallData has nothing to trace, mCallDataStoragePending has no
purpose.

Depends on D67989

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

--HG--
extra : moz-landing-system : lando
2020-03-24 08:58:51 +00:00
Karl Tomlinson ddd9e31d2f Bug 1492011 store raw JS arguments on Console separately from ConsoleCallData r=baku
so that all ConsoleCallData members can be destroyed on either thread.

ArgumentData::mArguments hold the same references that
ConsoleCallData::mCopiedArguments held previously.  The name change is because
the references are merely stored rather than any deep copy of objects.

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

--HG--
extra : moz-landing-system : lando
2020-03-25 00:47:15 +00:00
Karl Tomlinson f49d456f4a Bug 1492011 consolidate StoreProfileData and StoreConsoleData into a single method with arguments parameter r=baku
This removes a dependency on JS objects on ConsoleCallData, and a reference to
the arguments on ConsoleProfileWorkerRunnable.

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

--HG--
extra : moz-landing-system : lando
2020-03-24 08:31:48 +00:00
Andrea Marchesini 61c6fff328 Bug 1623385 - Console API must support the logging of SharedArrayBuffers, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D67494

--HG--
extra : moz-landing-system : lando
2020-03-19 16:32:56 +00:00
Kris Maglione c31aa68fb4 Bug 1535617: Part 2 - Clear weak references for most cycle collected objects on unlink. r=mccr8
This covers most cycle collected objects which support weak references, but
not the ones which inherit from a cycle collected class and don't do any cycle
collection on their own.

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

--HG--
extra : moz-landing-system : lando
2020-02-25 19:44:39 +00:00
Andrea Marchesini 79a7598f57 Bug 1613147 - Console API on worker dispatches messages to the main-thread behind prefs, r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D61578

--HG--
extra : moz-landing-system : lando
2020-02-04 16:04:08 +00:00
Andrea Marchesini c4cb10712a Bug 1609990 - AgentCluster comparison in MessagePort and BroadcastChannel - part 3 - CloneDataPolicy, r=smaug,sfink,lth
Differential Revision: https://phabricator.services.mozilla.com/D60485

--HG--
extra : moz-landing-system : lando
2020-01-24 16:31:21 +00:00
Noemi Erli e4b712dcb8 Backed out 4 changesets (bug 1609990) for causing Spidermonkey rust bustage CLOSED TREE
Backed out changeset 81a77bb3772c (bug 1609990)
Backed out changeset d4524885cb97 (bug 1609990)
Backed out changeset c95aac908332 (bug 1609990)
Backed out changeset bae3e50ab64d (bug 1609990)
2020-01-24 18:13:24 +02:00
Andrea Marchesini ac6024f408 Bug 1609990 - AgentCluster comparison in MessagePort and BroadcastChannel - part 3 - CloneDataPolicy, r=smaug,sfink,lth
Differential Revision: https://phabricator.services.mozilla.com/D60485

--HG--
extra : moz-landing-system : lando
2020-01-24 15:25:24 +00:00
Andrea Marchesini 0077863f8e Bug 1605566 - MessagePort + wasm - part 2 - implement JS::StructuredCloneScope::UnknownDestination, r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D59613

--HG--
extra : moz-landing-system : lando
2020-01-24 07:57:56 +00:00
Narcis Beleuzu cb54b0227b Backed out 5 changesets (bug 1605566) for wpt failures on shared.html . CLOSED TREE
Backed out changeset 622939cef438 (bug 1605566)
Backed out changeset ab98304e6c84 (bug 1605566)
Backed out changeset 7eab8fd2b62e (bug 1605566)
Backed out changeset 99f61f25ed86 (bug 1605566)
Backed out changeset 77bdf4f86052 (bug 1605566)
2020-01-22 12:58:13 +02:00
Andrea Marchesini 14b6fd8572 Bug 1605566 - MessagePort + wasm - part 2 - implement JS::StructuredCloneScope::UnknownDestination, r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D59613

--HG--
extra : moz-landing-system : lando
2020-01-22 09:32:48 +00:00
Andrea Marchesini ce6465d9ea Bug 1607791 - Get rid of IDBMutableFile.getFile() - part 1, r=asuth,janv
Differential Revision: https://phabricator.services.mozilla.com/D59140

--HG--
extra : moz-landing-system : lando
2020-01-15 12:02:21 +00:00
Mihai Alexandru Michis 4345a38d0d Backed out 9 changesets (bug 1607791, bug 1605566) for causing multiple wpt failures.
CLOSED TREE

Backed out changeset 39f34852842e (bug 1605566)
Backed out changeset 3427a92445c8 (bug 1605566)
Backed out changeset 36631ec96f1f (bug 1605566)
Backed out changeset 554b2bdce66c (bug 1605566)
Backed out changeset 37026beadbd8 (bug 1605566)
Backed out changeset f15835338319 (bug 1607791)
Backed out changeset 4c92f506cf62 (bug 1607791)
Backed out changeset 80707bcc8427 (bug 1607791)
Backed out changeset 75bc7533c899 (bug 1607791)
2020-01-15 13:45:33 +02:00
Andrea Marchesini c5b0781d9f Bug 1605566 - MessagePort + wasm - part 2 - implement JS::StructuredCloneScope::UnknownDestination, r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D59613

--HG--
extra : moz-landing-system : lando
2020-01-15 10:00:59 +00:00
Andrea Marchesini 6c05c922e3 Bug 1607791 - Get rid of IDBMutableFile.getFile() - part 1, r=asuth,janv
Differential Revision: https://phabricator.services.mozilla.com/D59140

--HG--
extra : moz-landing-system : lando
2020-01-15 09:58:39 +00:00
Jeff Walden 62a130ba0a Bug 1602882 - Move array operations to a new js/Array.h header. r=sfink,bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D56595

--HG--
extra : moz-landing-system : lando
2019-12-11 06:17:44 +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
Boris Zbarsky 75124bdd98 Bug 1517588. Use nsIPrincipal::IsSystemPrincipal instead of nsContentUtils::IsSystemPrincipal r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D53067

--HG--
extra : moz-landing-system : lando
2019-12-05 04:44:32 +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
Andrea Marchesini e33beb2556 Bug 1599386 - Better string formatting for console events, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D54892

--HG--
extra : moz-landing-system : lando
2019-11-28 07:29:40 +00:00
Andrea Marchesini 410cb724a7 Bug 1585284 - Force global in Blob CTOR, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D49629

--HG--
extra : moz-landing-system : lando
2019-10-21 05:33:19 +00:00
Andrea Marchesini 6797e45278 Bug 1585284 - Use nsIGlobalObject in any Blob/File CTOR, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D49392

--HG--
extra : moz-landing-system : lando
2019-10-21 05:33:33 +00:00
Andrea Marchesini 79809a6a9e Bug 1589361 - Wrong use of ConsoleStructuredCloneData in Console on workers, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D49598

--HG--
extra : moz-landing-system : lando
2019-10-17 13:28:00 +00:00
Gabriele Svelto 10d41866a5 Bug 1585156 - Remove useless inclusions of nsIDOMWindow.h and nsIDOMWindowUtils.h r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D47678

--HG--
extra : moz-landing-system : lando
2019-09-30 22:06:47 +00:00
Karl Tomlinson 17b569260a Bug 1578623 move principal-related data from LoadInfo to WorkletImpl r=baku
The principals used in worklet scripts derive from the relevant settings object
of the main thread Worklet object, rather than the network loads of the scripts.
Moving the data off LoadInfo removes any implication that the principals might
depend on script module loads.

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

--HG--
extra : moz-landing-system : lando
2019-09-09 00:42:05 +00:00
Noemi Erli d988a687b9 Backed out 9 changesets (bug 1578623) for causing Windows build bustages CLOSED TREE
Backed out changeset 52a86c60c866 (bug 1578623)
Backed out changeset e4fddd3d24b4 (bug 1578623)
Backed out changeset 65a7c4daec27 (bug 1578623)
Backed out changeset 3badf9215788 (bug 1578623)
Backed out changeset 71e58ee8f684 (bug 1578623)
Backed out changeset 0128e12a910f (bug 1578623)
Backed out changeset 8242877392bd (bug 1578623)
Backed out changeset 6d7be8a22f8b (bug 1578623)
Backed out changeset 3be609a9be36 (bug 1578623)

--HG--
extra : amend_source : b76d374926d247982773b58d12cb26e33d9972e8
2019-09-09 03:37:09 +03:00