Simon Giesecke
ee949b8e10
Bug 1678374 - Reduce dependencies on js, in particular on jsfriendapi.h. r=jandem
...
Differential Revision: https://phabricator.services.mozilla.com/D97617
Depends on D97616
2020-11-23 16:12:19 +00:00
Simon Giesecke
dd80614fa0
Bug 1678062 - Remove unnecessary includes. r=andi
...
Differential Revision: https://phabricator.services.mozilla.com/D97467
Depends on D96561
2020-11-23 16:12:02 +00:00
Simon Giesecke
971b645fe3
Bug 1660470 - Add missing include directives/forward declarations. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D87865
2020-11-23 16:21:38 +00:00
Jon Coppeard
7cf55278e0
Bug 1425450 - Ensure that we call Drop/HoldJSObjects when a preserved wrapper is changed for one in a different zone r=mccr8
...
So that we can update the holders table correctly we will need to remove the wrapper from its original vector and add it to the one associated with the new zone.
I tried to make SetPreservingWrapper private but there's still a use in layout/style/Rule.cpp that I couldn't see an obvious fix for.
Differential Revision: https://phabricator.services.mozilla.com/D68521
2020-04-20 17:08:14 +00:00
Andrew McCreight
ca427d70af
Bug 1425450 - Pass zone information through when preserving wrappers r=mccr8
...
This is bascially the same as your original patch.
Differential Revision: https://phabricator.services.mozilla.com/D68520
2020-04-20 17:07:58 +00:00
Bogdan Tara
eddea671e7
Backed out 6 changesets (bug 1425450) for hazard failure complaining about nsWrapperCacheInlines CLOSED TREE
...
Backed out changeset c57ac2e125e8 (bug 1425450)
Backed out changeset 4238c59af7bb (bug 1425450)
Backed out changeset 2a00272e72ba (bug 1425450)
Backed out changeset 3e4a52d596bb (bug 1425450)
Backed out changeset 5da68de67491 (bug 1425450)
Backed out changeset efac091a3ba4 (bug 1425450)
2020-04-06 21:22:51 +03:00
Jon Coppeard
eff4a09dd5
Bug 1425450 - Ensure that we call Drop/HoldJSObjects when a preserved wrapper is changed for one in a different zone r=mccr8
...
So that we can update the holders table correctly we will need to remove the wrapper from its original vector and add it to the one associated with the new zone.
I tried to make SetPreservingWrapper private but there's still a use in layout/style/Rule.cpp that I couldn't see an obvious fix for.
Differential Revision: https://phabricator.services.mozilla.com/D68521
--HG--
extra : moz-landing-system : lando
2020-04-06 16:13:51 +00:00
Andrew McCreight
081d4ec773
Bug 1425450 - Pass zone information through when preserving wrappers r=mccr8
...
This is bascially the same as your original patch.
Differential Revision: https://phabricator.services.mozilla.com/D68520
--HG--
extra : moz-landing-system : lando
2020-04-06 16:13:17 +00:00
Kris Maglione
64a2c8bb8f
Bug 1535617: Part 1 - Add macros to clear weak references on unlink. r=mccr8
...
Differential Revision: https://phabricator.services.mozilla.com/D63961
--HG--
extra : moz-landing-system : lando
2020-02-25 19:44:27 +00:00
Jon Coppeard
58e4c9be34
Bug 1587378 - Remove TraceCallbacks method that takes raw JSObject pointers r=mccr8
...
This method turned out to only be used for tracing wrapper cached things. The wrapper cache has its own way of implementing barriers and contains a raw JSObject pointer. Changing this trace method to take an nsWrapperCache pointer (effectively a JSObjct**) enforces correct use of Heap<T> for other TraceCallbacks callers.
Differential Revision: https://phabricator.services.mozilla.com/D48693
--HG--
extra : moz-landing-system : lando
2019-10-09 14:34:16 +00:00
Sylvestre Ledru
f12b9fa5c3
Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
...
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D47737
--HG--
extra : moz-landing-system : lando
2019-10-06 18:29:55 +00:00
Brian Hackett
091f2992d2
Bug 1573938 - Never collect wrapper JSObjects when recording/replaying, r=mccr8.
...
Differential Revision: https://phabricator.services.mozilla.com/D42011
--HG--
extra : moz-landing-system : lando
2019-08-16 20:51:12 +00:00
Jon Coppeard
8b73371be0
Bug 1407593 - Report embedding leaks of JS GC things r=sfink,sfink?
...
Patch to report JS GC things that are live at shutdown as leaks by calling MOZ_LOG_CTOR for them. The JS engine now clears any remaining roots to prevent dangling pointers to freed memory after shutdown. I made XPCJSRuntime::Shutdown keep the weak pointer update callbacks as sometimes these tables have entries remaining at shutdown (if there are leaks) and we need the callbacks to update them.
This is looking more green on try now.
Differential Revision: https://phabricator.services.mozilla.com/D40449
--HG--
extra : moz-landing-system : lando
2019-08-13 08:31:49 +00:00
Ryan Hunt
d6509bb237
Bug 1534395 - Rename TabChild to BrowserChild. r=nika
...
This commit renames TabChild to BrowserChild.
Differential Revision: https://phabricator.services.mozilla.com/D28135
--HG--
rename : dom/base/InProcessTabChildMessageManager.cpp => dom/base/InProcessBrowserChildMessageManager.cpp
rename : dom/base/InProcessTabChildMessageManager.h => dom/base/InProcessBrowserChildMessageManager.h
rename : dom/ipc/TabChild.cpp => dom/ipc/BrowserChild.cpp
rename : dom/ipc/TabChild.h => dom/ipc/BrowserChild.h
extra : rebase_source : e7fcfb845a971a2760e73d517e24da18ce2551b5
extra : histedit_source : d1991334ccb107fe56e478865f22fd97b041a317
2019-04-09 17:39:01 -05:00
Cosmin Sabou
7ccc9d8b0b
Merge mozilla-inbound to mozilla-central. a=merge
2019-01-19 11:57:49 +02:00
Andrew McCreight
9e451b1da0
Bug 1517611 - Cycle collect WebAuthnManager and U2F more. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D17026
--HG--
extra : moz-landing-system : lando
2019-01-18 23:21:46 +00:00
Ehsan Akhgari
e5e885ae31
Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre
...
# ignore-this-changeset
--HG--
extra : amend_source : 7221c8d15a765df71171099468e7c7faa648f37c
extra : histedit_source : a0cce6015636202bff09e35a13f72e03257a7695
2019-01-18 10:16:18 +01:00
Sylvestre Ledru
265e672179
Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
...
# ignore-this-changeset
--HG--
extra : amend_source : 4d301d3b0b8711c4692392aa76088ba7fd7d1022
2018-11-30 11:46:48 +01:00
Kris Maglione
f84c2cf454
Bug 1480244: Part 1c - Rename TabChildGlobal to TabChildMessageManager. r=bz
...
MozReview-Commit-ID: ECtFjFV7dZa
--HG--
extra : rebase_source : 50e64fa4da1099ca2bd9e14c8679bb87c354015e
2018-08-10 14:04:23 -07:00
Kris Maglione
6b594aefe4
Bug 1480244: Part 1b - Rename nsInProcessTabChildGlobal to InProcessTabChildMessageManager. r=bz
...
MozReview-Commit-ID: GgleVt1tXTG
--HG--
rename : dom/base/nsInProcessTabChildGlobal.cpp => dom/base/InProcessTabChildMessageManager.cpp
rename : dom/base/nsInProcessTabChildGlobal.h => dom/base/InProcessTabChildMessageManager.h
extra : rebase_source : c0a595cb31c98952e9586830c8d1cee9f9d4c62b
2018-08-10 14:08:07 -07:00
Kris Maglione
ee36f9afd8
Bug 1480244: Part 1a - Rename ProcessGlobal to ContentProcessMessageManager. r=bz
...
After these patches, these objects will no longer be globals, which would make
their current names misleading. Parts 1a-1c give more appropriate names to the
bindings which will cease to be globals.
MozReview-Commit-ID: L8GolQaHnO5
--HG--
rename : dom/base/ProcessGlobal.cpp => dom/base/ContentProcessMessageManager.cpp
rename : dom/base/ProcessGlobal.h => dom/base/ContentProcessMessageManager.h
extra : rebase_source : c5db43ff4f56bc27c869a8051c8d2c000b3fe287
2018-08-02 15:03:50 -07:00
Brian Hackett
52b33afe4e
Bug 1207696 Part 7 - Ensure deterministic interaction of GC with CC and object references, r=smaug.
...
--HG--
extra : rebase_source : 5d9e7ebd1dc242ca648193ed1f27ae91d19006de
2018-07-23 14:46:37 +00:00
Emilio Cobos Álvarez
b83020421f
Bug 1473844 - Use a clearer constant for wrappercache flags. r=bzbarsky
...
Differential Revision: https://phabricator.services.mozilla.com/D1997
--HG--
extra : moz-landing-system : lando
2018-07-06 22:38:54 +00:00
Peter Van der Beken
0a2e4b8cb7
Bug 1146316 - Remove nsWrapperCache::SetIsNotDOMBinding and IsDOMBinding(). r=bz.
...
--HG--
extra : rebase_source : cd36e7afb4f6ebcd042ea40d9403546a683375ad
2018-04-05 17:22:41 +02:00
Boris Zbarsky
aa63116f80
Bug 1085062 followup. Actually address the review comments. r=peterv
2018-04-04 14:43:41 -04:00
Boris Zbarsky
fe15e92e6b
Bug 1085062. Remove hasXPConnectImpls support from bindings codegen. r=peterv
2018-04-04 14:39:52 -04:00
Peter Van der Beken
e673e5f508
Bug 888600 - Move ContentFrameMessageManager to WebIDL. Part 5: Convert MessageManager globals to WebIDL. r=bz.
...
The change in browser_net_view-source-debugger.js is needed because we now use WebIDL callbacks for MessageListener, and they add async creation stack frames.
--HG--
extra : rebase_source : 0adb349b40a0c51bb3d8f4b9b7d98106a3929cbd
extra : source : a88d94ec010a12c1d829708aaf59a85609478477
2017-07-19 14:59:02 +02:00
Sebastian Hengst
3a10644021
Backed out 6 changesets (bug 888600) for beta simulation failures: build bustage on Linux and Windows opt (bug 1442036) and devtools failure browser_net_view-source-debugger.js (bug 1441961). a=backout
...
Backed out changeset 83c87140dc3d (bug 888600)
Backed out changeset 2efb9b1753f6 (bug 888600)
Backed out changeset af5303781961 (bug 888600)
Backed out changeset 79ef59047e63 (bug 888600)
Backed out changeset 30d568d628dd (bug 888600)
Backed out changeset c7bd4c6c9741 (bug 888600)
--HG--
extra : histedit_source : 791b22f6770f4fead2f909478a93d65d85829fe0%2Cbb387309e90f53e1dde45dcf8cf4ebedcc6e5c5e
2018-03-01 11:51:09 +02:00
Peter Van der Beken
fc804325a9
Bug 888600 - Move ContentFrameMessageManager to WebIDL. Part 5: Convert MessageManager globals to WebIDL. r=bz.
...
The change in browser_net_view-source-debugger.js is needed because we now use WebIDL callbacks for MessageListener, and they add async creation stack frames.
--HG--
extra : rebase_source : d7c026d8a77634ef2566feba78168beb8a66a552
2017-07-19 14:59:02 +02:00
Jon Coppeard
eb728b65cf
Bug 1414279 - Expose wrappers when they are preserved r=smaug a=dveditz
2017-11-07 11:46:31 +00:00
Bobby Holley
7210bd7226
Bug 1383332 - Track the restyle root and use it to do less work during the traversal. r=emilio
...
MozReview-Commit-ID: A8O3JOpsv4E
2017-08-22 21:19:24 -07:00
Petr Sumbera
ac723ae99f
Bug 1376277 - nsWrapperCache.h: add support for 64bits sparc build. r=glandium
2017-06-27 01:33:49 -07:00
Jim Chen
6ed039fa49
Bug 1360321 - 11. Include AArch64 in nsWrapperCache 64-bit check; r=me
...
Include AArch64 in the 64-bit architecture check in nsWrapperCache.h.
Otherwise AArch64 builds fail with a build error. r=me for trivial
patch.
MozReview-Commit-ID: 60CXTNBbS2x
2017-05-17 13:06:23 -04:00
Bobby Holley
de6dd624ed
Bug 1363375 - Pack nsINode better on 64-bit and stop conditionally compiling mServoData. r=smaug
2017-05-11 13:51:28 +02:00
Jon Coppeard
eb3c9870bf
Bug 1352430 - Add barrier to wrapper cache to clear dying objects that have not yet been finalized r=bz r=sfink
...
* * *
Code review followup
--HG--
extra : rebase_source : 10c1fd603c2dd1ac2ff5770ae9aec2e9131681ce
2017-04-26 11:18:39 +01:00
Boris Zbarsky
28dabea2ec
Bug 1332322 part 3. Rename nsWrapperCache::IsBlackAndDoesNotNeedTracing to nsWrapperCache::HasKnownLiveWrapperAndDoesNotNeedTracing. r=mccr8
2017-01-24 20:39:37 -05:00
Boris Zbarsky
cce1668e68
Bug 1332322 part 2. Rename nsWrapperCache::IsBlack to nsWrapperCache::HasKnownLiveWrapper. r=mccr8
2017-01-24 20:38:58 -05:00
Boris Zbarsky
b39cdf67a8
Bug 1332322 part 1. Add an nsWrapperCache function to mark the wrapper as 'live' for GC purposes. r=mccr8
2017-01-24 20:33:54 -05:00
Boris Zbarsky
bbf09020fb
Bug 851892 part 19. Convert CSSCounterStyleRule to WebIDL. r=peterv,heycam
2017-01-13 10:41:04 -05:00
Boris Zbarsky
b7f22f88b0
Bug 851892 part 18. Convert CSSKeyframesRule to WebIDL. r=peterv,heycam
2017-01-13 10:41:04 -05:00
Boris Zbarsky
fa5fe536da
Bug 851892 part 17. Convert CSSKeyframeRule to WebIDL. r=peterv,heycam
2017-01-13 10:41:04 -05:00
Boris Zbarsky
284cc54462
Bug 851892 part 16. Convert CSSFontFeatureValuesRule to WebIDL. r=peterv,heycam
2017-01-13 10:41:04 -05:00
Boris Zbarsky
5398bc5f13
Bug 851892 part 15. Convert CSSFontFaceRule to WebIDL. r=peterv,heycam
2017-01-13 10:41:04 -05:00
Boris Zbarsky
b1b80495aa
Bug 851892 part 14. Convert CSSPageRule to WebIDL. r=peterv,heycam
...
The PutForwards bit is a new feature, but easy enough to implement here.
2017-01-13 10:41:04 -05:00
Boris Zbarsky
4ce77bc3a3
Bug 851892 part 13. Convert media, supports, and moz-document rules to WebIDL. r=peterv,heycam
2017-01-13 10:41:03 -05:00
Boris Zbarsky
2daa8920fe
Bug 851892 part 12. Convert CSSStyleRule to WebIDL. r=peterv,heycam,mccr8
...
The .style PutForwards bit is coming along for the ride; I did check that Chrome
already implements this, so we're not the only ones.
2017-01-13 10:41:03 -05:00
Boris Zbarsky
d274f30b35
Bug 851892 part 11. Convert CSSImportRule to WebIDL. r=peterv,heycam,mccr8
...
Note that the .media PutForwards is a new feature coming along for the ride now
that we're using the spec IDL.
2017-01-13 10:41:03 -05:00
Boris Zbarsky
03dbb8c08b
Bug 851892 part 10. Convert CSSNamespaceRule to WebIDL. r=peterv,heycam
2017-01-13 10:41:03 -05:00
Boris Zbarsky
637e48e6e3
Bug 851892 part 4. Make css::Rule wrappercached. r=heycam,peterv,smaug
...
Note that this increases the size of css::Rule by three words, unfortunately.
2017-01-13 10:41:02 -05:00
Boris Zbarsky
65f894384a
Bug 851892 part 1. Make all CSS rules cycle-collected. r=heycam,smaug
2016-11-30 18:18:14 -05:00