Commit Graph

6379 Commits

Author SHA1 Message Date
Peter Van der Beken
b1be86e036 Bug 1453011 - Remove some unused nsIXPCScriptable flags. r=bz.
--HG--
extra : rebase_source : d3f5d9b6d994bbcf55976b3a1aed404d273415f3
2018-03-22 10:37:43 +01:00
Peter Van der Beken
3cb241cae0 Bug 1453011 - Remove nsXPCClassInfo. r=bz.
--HG--
extra : rebase_source : fd26480b3a4c8f56ae47fa2e4031fd0bebd1cd88
2018-03-22 09:42:21 +01:00
Peter Van der Beken
79663afa7d Bug 1452981 - Remove qsObjectHelper. r=bz.
--HG--
extra : rebase_source : 931b915a05d026d826ceb5ec919c3909f9bae053
2018-03-01 09:01:00 +01:00
Peter Van der Beken
58eabcfc19 Bug 1146316 - Remove nsWrapperCache::SetIsNotDOMBinding and IsDOMBinding(). r=bz.
--HG--
extra : rebase_source : e79d52f75c4e73ba65fa88d8b21111e0cbf29634
2018-04-05 17:22:41 +02:00
Peter Van der Beken
f2ba86d2a9 Bug 1146316 - Preserve the wrapper of sandboxes, so that we never try to call WrapObject on them. r=bz.
--HG--
extra : rebase_source : a520fe62e7831c4a73f0ee4365c55f93965e14b6
2018-04-11 11:52:13 +02:00
Kris Maglione
219ed0cc06 Bug 1454813: Part 2b - Rename SpawnTask.js to AddTask.js. r=florian
The old name no longer makes sense, since it no longer exports an spawn_task
symbol, and add_task is what we really care about.

MozReview-Commit-ID: IE7B8Czv8DH

--HG--
rename : testing/mochitest/tests/SimpleTest/SpawnTask.js => testing/mochitest/tests/SimpleTest/AddTask.js
extra : rebase_source : 03bca5aa69a7625a49b4455a6c96ce4c59de3a5a
2018-04-18 11:43:45 -07:00
Nika Layzell
e5f31c03d8 Bug 1444991 - Part 4: Handle DOM Objects in XPConnect, r=mccr8
This patch goes through the XPConnect conversion methods, and adds cases for
T_DOMOBJECT which call the Wrap, Unwrap, and Cleanup methods from the
nsXPTDOMObjectInfo objects created in the last part.

For consistency with normal interface pointers, and because it wasn't too
complex, I also added support for including T_DOMOBJECTs in XPCOM arrays.
2018-04-17 19:21:03 -04:00
Nika Layzell
14da321a67 Bug 1444745 - Part 5: Update consumers of nsIInterfaceInfo to use the nsXPTInterfaceInfo directly, r=mccr8
Due to the decision to keep the old API on nsXPTInterfaceInfo in part 4, this is
a fairly straightforward patch.

1. I had to change a couple of consumers of `IsRetval()` due to the movement of
that flag.
2. I changed all code which held a nsIInterfaceInfo to hold an `const
nsXPTInterfaceInfo*` instead.
3. I changed code which used the nsIInterfaceInfoManager to instead call the
static methods on nsXPTInterfaceInfo.
2018-04-17 19:20:56 -04:00
Nika Layzell
f5f86c989e Bug 1444745 - Part 1: Clear out xptinfo and typelib to make way for the this patch, r=mccr8
Unfortunately, I wasn't able to figure out a way to make firefox build & run in
the intermediate stages of these commits. Because of this, I am going to just
delete most of the code which I am deleting in the first patch, as I figure that
those are somewhat uninteresting changes, and then make the other changes in the
following patches.

In total, the following things are deleted:
1. All of xpcom/typelib, except for `xpt/tools` - this directory is being
subsumed entirely into xpcom/reflect/xptinfo.
2. Most of the code in xpcom/reflect/xptinfo, it is being rewritten to avoid
allocating and contain all of the necessary data structures.
3. idl-parser's typelib.py XPT generator, as it will be replaced.
4. Most includes of files which have been deleted.

NOTE: xpcom/typelib/xpt/tools/xpt.py was not removed, as it is used by bundling
code & bundling tests, which we don't want to remove yet.
2018-04-17 19:20:50 -04:00
Benjamin Bouvier
2d70c0b1e0 Bug 1445272: Add a pref to enable wasm gc in the browser/shell; r=luke
And a builtin function to test if wasm gc is enabled or not, to make testing
easier.

--HG--
extra : rebase_source : 0e608756d0c5f0231ba31af482c5e343a7119465
2018-03-21 14:32:47 +01:00
Sebastian Hengst
0819f35e51 Backed out 4 changesets (bug 525063) on request from Andi. a=backout
Backed out changeset 516c4fb1e4b8 (bug 525063)
Backed out changeset 6ff8aaef2866 (bug 525063)
Backed out changeset bf13e4103150 (bug 525063)
Backed out changeset d7d2f08e051c (bug 525063)
2018-04-13 16:01:28 +03:00
Jan de Mooij
0ea16094d3 Bug 1452982 part 6 - Remove ZoneGroup. r=jonco 2018-04-13 08:45:13 +02:00
Henrik Skupin
3846d5fb06 Bug 1453647 - [xpcshell] Enforce utf-8 for evaluating injected script via -e argument. r=bz
MozReview-Commit-ID: 2sLmBHqbFSx

--HG--
extra : rebase_source : 50949fadd321a1fc4f6591bd55cb8002587b3959
2018-04-12 15:49:19 +02:00
Margareta Eliza Balazs
1c0306e497 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-04-12 12:45:41 +03:00
Karl Tomlinson
3481a11d87 bug 1328964 add CycleCollectedJSContext::IsSystemCaller() to make ThreadsafeIsSystemCaller() safe for worklets r=baku
MozReview-Commit-ID: Cg4OBbm5CwA

--HG--
extra : rebase_source : 9a113cf0f945bd48207e81f9fa08bcba1f35303c
2018-04-06 18:53:25 +12:00
Boris Zbarsky
a730b3a9ad Bug 1453053 part 1. Remove useless QIs to nsIDOMNode. r=qdot
MozReview-Commit-ID: GokPD2buxzN
2018-04-12 00:06:25 -04:00
Boris Zbarsky
ed3406b369 Bug 1452786 part 2. Stop using a generated chromeonly isInstance method. r=qdot
This changes semantics in all sorts of ways (e.g. now we get the right proto
from our |this| value instead of it being baked into the function).  But if all
our chrome callers are well-behaved this should be ok.

We _could_ bake the proto id and depth into the function itself by using
js::NewFunctionWithReserved if it were not for Xrays.  Those already need the
reserved slots on functions we Xray.

MozReview-Commit-ID: 1bYrKWWIc1P
2018-04-12 00:06:07 -04:00
Tristan Bourvon
a3a77c0312 Bug 525063 - Initialize uninitialized class attributes in m-c. r=ehsan 2018-04-10 21:11:02 +02:00
Nika Layzell
0c3ba13e4c Bug 1437167 - Part 1: Stop using PRIntervalTime as the argument to CondVar::Wait and Monitor::Wait, r=mstange, r=froydnj 2018-04-10 17:49:47 -04:00
Karl Tomlinson
2405fe930c bug 1328964 use nsContentUtils::GetCurrentJSContext() on all threads r=smaug
nsContentUtils::GetCurrentJSContextForThread() originally needed to use
workers::GetCurrentThreadJSContext() in
https://hg.mozilla.org/mozilla-central/rev/366a45b41539#l2.18
because CycleCollectedJS*()->Context() did not exist until
https://hg.mozilla.org/mozilla-central/rev/1a0cd542e1e9#l7.12

nsContentUtils::GetCurrentJSContext() is thread-safe since these changes:
https://hg.mozilla.org/mozilla-central/rev/e636c7186286#l3.12
https://hg.mozilla.org/mozilla-central/rev/c8029c072776#l2.12

MozReview-Commit-ID: 2f1eGS9uBBO

--HG--
extra : rebase_source : dad1d2084a63413c3975f9e7c66c6b06857c9f23
2018-04-09 12:11:18 +12:00
Andreea Pavel
26f640b36b Backed out 4 changesets (bug 1366808) for Windows GPU leakchecks on a CLOSED TREE
Backed out changeset 23f60e5acaa2 (bug 1366808)
Backed out changeset bf2262b6aca8 (bug 1366808)
Backed out changeset 1fc82af3a155 (bug 1366808)
Backed out changeset 0649f0d9884b (bug 1366808)
2018-04-10 05:11:36 +03:00
Stephen A Pohl
b40a23754c Bug 1366808: Properly detect buildID mismatches between parent and child processes and display about:restartrequired to prompt the user to restart Firefox before proceeding. r=jimm,felipe,bz 2018-04-09 20:16:31 -04:00
Boris Zbarsky
5171e626a4 Bug 1452235 part 3. Stop using nsIDOMSerializer from JS. r=qdot
MozReview-Commit-ID: JbWGcfbmM4b
2018-04-09 16:30:32 -04:00
Brindusan Cristian
9adcf6af5a Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-04-07 13:00:30 +03:00
Boris Zbarsky
9b3d37b936 Bug 1452010 part 1. Remove uses of nsIDOMDOMException. r=qdot
MozReview-Commit-ID: K5zUjh25WJG
2018-04-06 23:27:56 -04:00
Adrian Wielgosik
2837c659de Bug 1170771 - Remove now-empty nsDOMClassInfo. r=bz
MozReview-Commit-ID: 7XsiPD1kTt9

--HG--
extra : rebase_source : 2935c0fe1a51083f37e113c3e0599760f40829e2
2018-04-05 14:20:44 +02:00
Adrian Wielgosik
2bd02cd742 Bug 1170771 - Remove ThisTranslator and support code. r=bz
MozReview-Commit-ID: Fv0F4RLCnkL

--HG--
extra : rebase_source : 24c3746ebde37b2bf4ab383cee781dd3bceb93b2
2018-04-05 12:49:24 +02:00
Tom Schuster
2ec273bf6e Bug 1450574 - Remove DeprecatedLanguageExtension telemetry code. r=jandem
--HG--
extra : rebase_source : a5651c0aebdc0f6cc1128e11645b90069e7c6b92
extra : histedit_source : 4e2ec3872ef64a0d43b9379666ea274c008110f9
2018-04-04 20:41:07 +02:00
Bobby Holley
7068793c78 Bug 1437998 - Remove SimpleGestureEvent and OfflineResourceList from kInterfaceShims. r=bz
MozReview-Commit-ID: HRQ2rux6tcT
2018-04-04 14:57:04 -07:00
Honza Bambas
31c173ca8a Bug 1443892 - Add -MOZ_LOG and -MOZ_LOG_FILE command line arguments. r=erahm, r=nfroyd 2018-04-03 11:32:00 -04:00
Andrew McCreight
e80864c94c Bug 1438688, part 3 - Remove XPT files from the packaging process. r=glandium
Now that XPT files are not loaded from files at runtime, code for
packaging XPT files can be removed.

This means that a couple of test XPIDL interfaces will get shipped in
builds to users that weren't before, but I don't think that matters
much.

This also puts XPT files into the local objdir for the XPIDL makefile,
instead of dist/bin, because they are no longer part of the
distribution.

MozReview-Commit-ID: 7gWj8KWUun3

--HG--
extra : rebase_source : 65bac47c2cd1a20b3c675a01b44a25a1d2d3ab7a
2018-03-05 14:27:29 -08:00
Dorel Luca
f24505d99e Backed out 7 changesets (bug 1438688) for android xpcshell failures on builds/worker/workspace/build/tests/bin/components/test_necko.xpt
Backed out changeset 8786eabb61a4 (bug 1438688)
Backed out changeset e05ec1e08b46 (bug 1438688)
Backed out changeset 4c437ba9d984 (bug 1438688)
Backed out changeset 2f243bca1af3 (bug 1438688)
Backed out changeset 4da0e1839353 (bug 1438688)
Backed out changeset 186f916dcc7a (bug 1438688)
Backed out changeset 08b1a5f904e4 (bug 1438688)
2018-04-03 02:30:53 +03:00
Andrew McCreight
fc09560f06 Bug 1438688, part 3 - Remove XPT files from the packaging process. r=glandium
Now that XPT files are not loaded from files at runtime, code for
packaging XPT files can be removed.

This means that a couple of test XPIDL interfaces will get shipped in
builds to users that weren't before, but I don't think that matters
much.

This also puts XPT files into the local objdir for the XPIDL makefile,
instead of dist/bin, because they are no longer part of the
distribution.

MozReview-Commit-ID: 7gWj8KWUun3

--HG--
extra : rebase_source : 6f7d4fd1d6cdea2c14866705a2dc972eb5f43382
2018-03-05 14:27:29 -08:00
Felipe Gomes
7d1da2c7e5 Bug 1429178 - Policy: Implement website blocklist/allowlist. r=mixedpuppy
MozReview-Commit-ID: EAX0VwxlggK

--HG--
extra : rebase_source : d795b96a0318e7b2bb21bf24c15413111628aa73
2018-03-28 09:29:17 -05:00
Tom Schuster
72acf485fb Bug 1255800 - Make computeThis return a boolean for easier error handling. r=jorendorff
--HG--
extra : rebase_source : 1b4d227aba2fd0e1a458849addb634df9d72111c
extra : histedit_source : 29e8c520ae4d3644131b05794a447a0e7a32796f
2018-03-23 13:09:04 +01:00
Boris Zbarsky
6c499a3613 Bug 1448414. Remove the DOM_OBJECT classinfo bit. r=kmag 2018-03-28 22:46:23 -04:00
Boris Zbarsky
448fab1f17 Bug 1389581 part 2. Remove the now-unused getComponentsForScope API. r=kmag 2018-03-28 22:46:23 -04:00
Boris Zbarsky
50af44ded2 Bug 1389581 part 1. Remove the DOM_OBJECT flag from various Components classinfo. r=kmag
Components and friends should not be exposed to content anyway.

MozReview-Commit-ID: 4kCeBcIf9nt
2018-03-28 22:46:22 -04:00
Coroiu Cristina
94b06cd525 Backed out changeset 4d4d373e1619 (bug 1389581) mochitest failures Permission denied to create wrapper for object of class XPCComponents_Interfaces on a CLOSED TREE 2018-03-29 12:21:52 +03:00
Coroiu Cristina
4fbfa44b5b Backed out changeset 9349d1b031c9 (bug 1389581) for mochitest failures Permission denied to create wrapper for object of class XPCComponents_Interfaces on a CLOSED TREE 2018-03-29 12:21:28 +03:00
Coroiu Cristina
29fa060fbe Backed out changeset 9e41e9c653f2 (bug 1448414) for mochitest failures Permission denied to create wrapper for object of class XPCComponents_Interfaces on a CLOSED TREE 2018-03-29 12:21:00 +03:00
Boris Zbarsky
05346e7ec6 Bug 1448414. Remove the DOM_OBJECT classinfo bit. r=kmag 2018-03-28 22:46:23 -04:00
Boris Zbarsky
c14bfdc5d9 Bug 1389581 part 2. Remove the now-unused getComponentsForScope API. r=kmag 2018-03-28 22:46:23 -04:00
Boris Zbarsky
78682d0160 Bug 1389581 part 1. Remove the DOM_OBJECT flag from various Components classinfo. r=kmag
Components and friends should not be exposed to content anyway.

MozReview-Commit-ID: 4kCeBcIf9nt
2018-03-28 22:46:22 -04:00
Gurzau Raul
8d268c6ce7 Merge mozilla-central to inbound. a=merge CLOSED TREE
--HG--
rename : toolkit/components/extensions/ext-permissions.js => toolkit/components/extensions/parent/ext-permissions.js
2018-03-29 01:00:42 +03:00
Tom Ritter
449237fc51 Bug 1378552 - Reduce the liklihood of inadvertently misusing NullPrincipal::Create(). r=ckerschb
NullPrincipal::Create() (will null OA) may cause an OriginAttributes bypass.
We change Create() so OriginAttributes is no longer optional, and rename
Create() with no arguments to make it more explicit about what the caller is doing.

MozReview-Commit-ID: 7DQGlgh1tgJ
2018-03-22 13:36:20 -05:00
Cosmin Sabou
6e054fe297 Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-03-28 12:52:57 +03:00
Jan Henning
8404f212bd Bug 1449254 - Use vsnprintf for formatting DebugDump() output on Windows, too. r=mrbkap
Since VS2015, vsnprintf is supposed to be C99-compliant on Windows, too and will
especially always null-terminate the string written into the given buffer.

In addition, the build define we were using was misspelled and therefore not
working anyway, so might we as well remove it now.

MozReview-Commit-ID: 44ERI6TUz1B

--HG--
extra : rebase_source : cdbcf6e20033fd94fb96319c7dc35f4aabce5b3f
2018-03-27 19:26:04 +02:00
Jan Henning
380d398020 Bug 1448693 - Make DumpJSStack() output appear somewhere visible on Android. r=mrbkap
... by additionally writing it to the logcat.

MozReview-Commit-ID: CvaUOhlNFQ1

--HG--
extra : rebase_source : aae760f7730b148fba12d3a97777568a47adc707
2018-03-25 19:37:58 +02:00
Xidorn Quan
1962625a79 Bug 1448728 part 1 - Make popular headers not include nsWindowSizes.h. r=njn
MozReview-Commit-ID: EC5J9Im3gfu

--HG--
extra : source : 9fa9209aeeb00009143c5c21f21210c93184e61f
2018-03-28 10:44:49 +11:00