Commit Graph

5099 Commits

Author SHA1 Message Date
Jonathan Watt
1f58b22c60 Bug 177957, part 3 - Make the WebIDL code generator support the [SecureContext] extended attribute. r=bz
MozReview-Commit-ID: 3O3V4MTgLuR
2016-05-16 10:04:38 +01:00
Bob Owen
e809e9f918 Bug 1035125 Part 9: Link Chromium sandbox into firefox.exe instead of having a separate DLL. r=aklotz,glandium
MozReview-Commit-ID: 1vgDPjpcwz3

--HG--
extra : rebase_source : 40966d98ca6c37f30884639d648907b4760ae240
2016-05-15 16:41:40 +01:00
Bob Owen
2447fbb7fa Bug 1035125 Part 1: Back out changeset 1910714b56c6 and associated subsequent changes. r=bsmedberg
The original changeset that is being backed out had comment:
Bug 1023941 - Part 5: Loader hook to redirect the missing import.

The changes made in bug 1023941 were to work around the fact that with VS2013, msvcr120.dll imports kernel32!GetLogicalProcessorInformation, which is not available on Windows XP SP2.
In VS2015, the GetLogicalProcessorInformation requirement has moved into concrt140.dll (concurrency runtime), which we don't use.
So, now that our build infra is building with VS2015, we can remove the hooking and static runtime linking required to get the VS2013 fix to work.

In addition we need to do that to be able us to link the Chromium sandbox code into firefox.exe and get it to build and run with both VS2015 and VS2013.

MozReview-Commit-ID: 1tlXaYJ8dHH

--HG--
extra : rebase_source : 49b216e34fc5c77af96df1f67ee44c46d5368bfe
2016-05-15 16:23:56 +01:00
Chris Peterson
8a9e2d2bd4 Bug 1272513 - Part 2: Remove redundant -Wshadow CXXFLAGS from moz.build files. r=glandium 2016-05-14 00:54:55 -07:00
Chris Peterson
353ee65255 Bug 1272513 - Part 1: Suppress -Wshadow warnings-as-errors in some directories. r=glandium 2016-05-11 00:00:01 -07:00
Terrence Cole
f452b33559 Bug 1257387 - Annotate OOM allocation sizes where possible; r=jonco
--HG--
extra : rebase_source : 91d74e18238554d71452498bd25860e78993c7a0
2016-04-22 11:55:34 -07:00
Jim Mathies
c6cf890ec2 Bug 1271978 - Record js slow script notification delay for content in telemetry. r=billm
MozReview-Commit-ID: 9RUrqfwn7Wh
2016-05-12 07:28:48 -05:00
Boris Zbarsky
20a2c90769 Bug 1268845. Make sure to set up an XPCWrappedNativeScope for SimpleGlobalObject globals on the main thread. r=bholley,ttaubert,ejpbruel 2016-05-10 20:57:29 -04:00
Peter Van der Beken
5c9bb43e9d Bug 1267186 - Split lookup of WebIDL DOM class names from lookup of DOMCI DOM class names. r=bz.
--HG--
extra : rebase_source : 073ec0857b63df3e2ecef43ef3b982f2e1be2d24
2016-05-09 17:08:31 +02:00
Carsten "Tomcat" Book
98f0a3271a Backed out changeset d385df62c0e7 (bug 1267186) for hazard failures 2016-05-09 13:40:01 +02:00
Peter Van der Beken
b6c1e074c2 Bug 1267186 - Split lookup of WebIDL DOM class names from lookup of DOMCI DOM class names. r=bz.
--HG--
extra : rebase_source : 324cf124544c0ffe2ad2ceccbed397d5069d1435
2016-03-09 15:48:12 +01:00
Tim Huang
5facb5e7d0 Bug 1260917 - Add a 'userContextId' in the sandbox options, and sandbox will reference this when creating from string url. r=bholley 2016-05-04 20:54:00 +02:00
Nick Fitzgerald
42225056cf Bug 1211723 and 1260570 - Share JS source text between JSRuntimes; r=jimb
This commit adds `SharedImmutableStringsCache` which allows for de-duplication
and sharing of immutable strings between threads and JSRuntimes.

Each JSRuntime gets a SharedImmutableStringsCache member, but the accessor
always returns the parent runtime's cache. The caches in child JSRuntime's are
not wasting space, however, as initialization and allocation of the table
happens lazily within SharedImmutableStringsCache.

Furthermore, this commit removes `js::ScriptSource::Parent` and the
`CompressedSourceSet`. They are unnecessary because source text is always shared
via the parent runtime's `SharedImmutableStringsCache` now.
2016-05-06 16:53:45 -07:00
Sebastian Hengst
faffe478f6 Backed out changeset f9d3ea58c195 (bug 1267186) for static bustage in WebIDLGlobalNameHash.cpp. r=backout 2016-05-06 18:11:03 +02:00
Peter Van der Beken
827ee394ba Bug 1267186 - Split lookup of WebIDL DOM class names from lookup of DOMCI DOM class names. r=bz.
--HG--
extra : rebase_source : 5578057666186f58e434767af84fbfeac0cbdc3c
2016-03-09 15:48:12 +01:00
Wes Kocher
a3ae137c11 Backed out 2 changesets (bug 1261106) for frequent-yet-intermittent xpcshell failures in test_browserGlue_bookmarkshtml.js CLOSED TREE
Backed out changeset bbc385c27e0e (bug 1261106)
Backed out changeset 07b0959c9c35 (bug 1261106)
2016-05-04 13:33:01 -07:00
Nick Fitzgerald
73666b05dd Bug 1261106 - Null check GetWrappedJSClassMap in ~nsXPCWrappedJSClass; r=mrbkap 2016-05-04 09:01:30 -07:00
Nicholas Nethercote
27327f8bea Bug 1268772 (part 2) - Make infallible nsVariant methods return |void| instead of |nsresult|. r=erahm.
This makes things clearer and removes some unnecessary nsresult checks.

The patch also:
- removes some unnecessary |new| and moz_xmalloc() checks;
- adds MOZ_MUST_USE to some fallible nsVariant methods.

--HG--
extra : rebase_source : fd0bd0c55c22ebf194246ec9997fe971cf282e69
2016-04-29 13:47:44 +10:00
Aryeh Gregor
585263dafa Bug 1193762 part 4 - Avoid nsCOMPtr in ternary operator; r=froydnj 2016-05-01 21:29:22 +03:00
Terrence Cole
8e2294b2b6 Bug 1267699 - Move some public types to the right namespace; r=sfink
--HG--
extra : rebase_source : f79f7d86aab708b86a65e6f2426baeb8488f47e5
2016-04-26 09:18:48 -07:00
Jeff Walden
80f0832949 Bug 1264896 - Kill off nsIRemoteTagService and do what it does, in its sole caller, in far-faster C++. r=billm
--HG--
extra : rebase_source : 4ab4985b1e6731a6caa523d7802a6292454cbc55
2016-04-21 21:51:16 -07:00
Jeff Walden
56d59777fd Bug 888969 - Make the getPrototypeOf/setPrototypeOf traps scriptable. r=efaust, r=bholley
--HG--
extra : rebase_source : 4a19f3a59e9a5935f8a41f2928b74c0af3947942
2016-02-23 13:42:30 -08:00
Yoshi Huang
ba1bb72568 Bug 1263496 - Part 3: fix for nsNullPrincipal::Create
This fixed the locations listed by
http://searchfox.org/mozilla-central/search?q=nsNullPrincipal::Create(&redirect=true
that needs to inherit origin attributes.
2016-04-27 18:38:07 +08:00
Nicholas Nethercote
fbb397a1bf Bug 1266639 - Don't separately heap-allocate PLDHashTables within XPCMaps. r=mrbkap.
Most of the XPCMap classes contain a |PLDHashTable*|. This can be changed to a
|PLDHashTable|, which avoids some malloc/free calls, removes the needs for
explicit destructors, and removes "can this pointer be null?" questions.

The patch also cleans up the iterators provided by XPCMap classes a little.

MozReview-Commit-ID: K0VdJdZSM7z

--HG--
extra : rebase_source : 9991c6510b86ef39d21009faa37c51a3f37e623d
2016-04-22 15:19:51 +10:00
Kyle Huey
c73656947b Bug 1265927: Move nsRunnable to mozilla::Runnable, CancelableRunnable to mozilla::CancelableRunnable. r=froydnj 2016-04-25 17:23:21 -07:00
Kris Maglione
bd8adfebce Bug 1254194: Add XPCOMUtils.defineLazyPreferenceGetter. r=billm
MozReview-Commit-ID: JBVelZ0Xg2H

--HG--
extra : rebase_source : 3909e75aa6b24ed2a1d2663c11be69c27f4de1e7
2016-04-14 16:37:30 -07:00
Nicholas Nethercote
d3a0dd609f Bug 1266630 - Make fallible the orphan node table used during memory reporting. r=mccr8.
This fixes some OOM crashes.

MozReview-Commit-ID: LqWlpIzYTGM

--HG--
extra : rebase_source : aab0e9a2a59d5a914d46766f40d557bbd1da7291
2016-04-22 14:03:54 +10:00
Kit Cambridge
3dc35814a4 Bug 1247685 - WebIDL and DOM implementation changes for app server keys. r=mt,baku
MozReview-Commit-ID: 1xYjSuLMnV4

--HG--
extra : rebase_source : 6bcb2e662cfa9a0d942731e8914a9df2e3dee197
2016-03-22 13:38:03 -07:00
Tooru Fujisawa
ce425d9132 Bug 1263558 - Part 1: Self-host Array generics. r=till,bholley 2016-04-15 12:32:36 +09:00
Nicholas Nethercote
d84e6264da Bug 1265035 - Make ~WorkerJSRuntime() handle Initialize() failure better. r=khuey.
--HG--
extra : rebase_source : 4b2cb2ef8192f314a28556826044f010a52b90b4
2016-04-19 14:04:32 +10:00
Olli Pettay
cc6d1d9827 Bug 1257096, don't try to report about unusual unhandled rejected Promises, r=bz,waldo
--HG--
extra : rebase_source : a53d6853feeae3c54f307cef71edcdba4f771803
2016-04-20 02:29:21 +03:00
Nicholas Nethercote
5bb2e1ae86 Bug 1132502 (part 2) - Don't call AddClassInfo() for BaseShapes. r=jandem.
It appears to cause crashes, and the effects of not calling on memory reporting
accuracy are minor. The code should be able to be re-enabled once
heap-allocated js::Class instances no longer occur.

--HG--
extra : rebase_source : 6dcf36aa21ade45b0397b3df531aaaa8f754af49
2016-04-19 10:21:00 +10:00
Wes Kocher
656b901828 Merge inbound to central, a=merge
MozReview-Commit-ID: BpCN8N6VSVt
2016-04-15 14:31:31 -07:00
Wes Kocher
59d9a1b8ae Backed out 4 changesets (bug 1263558) for jit OOM crashes a=backout
Backed out changeset 7fcc62dda4e3 (bug 1263558)
Backed out changeset faa055e3ace8 (bug 1263558)
Backed out changeset 94805cd19c15 (bug 1263558)
Backed out changeset ad22cb06de5d (bug 1263558)

MozReview-Commit-ID: JkWyfHDBf1E
2016-04-15 10:21:35 -07:00
Nicholas Nethercote
6dd45df6bb Bug 1264778 - Merge some XPConnect js::Class instances. r=mrbkap.
XPC_WN_WithCall_ObjectOps and XPC_WN_NoCall_ObjectOps are both equal to
JS_NULL_OBJECT_OPS.

As a result, XPC_WN_ModsAllowed_{With,No}Call_Proto_JSClass are identical, as
are XPC_WN_NoMods_{With,No}Call_Proto_JSClass. (In both cases, modulo the class
name.)

This patch merges those identical-except-for-their-name pairs, resulting in
XPC_WN_ModsAllowed_Proto_JSClass and XPC_WN_NoMods_Proto_JSClass.

--HG--
extra : rebase_source : 64c5990fa5dd09418466ee25a24300bb9cfd3596
2016-04-04 16:25:21 +10:00
Tooru Fujisawa
8d58721548 Bug 1263558 - Part 1: Self-host Array generics. r=till,bholley 2016-04-15 12:32:36 +09:00
Boris Zbarsky
911713a99f Bug 1264377. Get rid of some unnecessary custom JSClass hook functions in xpconnect sandboxes and DOM simple globals. r=bholley 2016-04-14 14:54:01 -04:00
Jeff Walden
7a694921d3 Bug 888969 - Make XPCJSID instanceof comparisons work correctly when [[GetPrototypeOf]] on the [[Prototype]] chain of the instance being tested throws an exception. r=bz
--HG--
extra : rebase_source : 20bcd4f23114762afa4ad708085c3accbbbe5d64
2016-04-13 14:30:16 -07:00
Nicholas Nethercote
60dcde7875 Bug 1261723 (part 2) - Separate class ops from js::Class. code=njn,h4writer. r=efaust,bz.
js::Class op are often all null. And when they're not all null, they're often
duplicated among classes. By pulling them out into their own struct, and using a
(possibly null) pointer in js::Class, we can save 114 KiB per process on
64-bit, and half that on 32-bit.
* * *
imported patch separate-ClassOps-2

--HG--
extra : rebase_source : bd751bf247e9491c1966a123dbeffa573657dfb1
2016-04-01 11:00:01 +11:00
Nicholas Nethercote
754dc0bd49 Bug 1261723 (part 1) - Rename js::Class::ops as oOps. r=efaust.
|oOps| is short for "objectOps", which will contrast with the |cOps| "classOps"
field that the next patch will introduce.

--HG--
extra : rebase_source : 920662674e1f672d923cb9060de23c85dfc903bf
2016-04-01 10:59:59 +11:00
Jonathan Watt
fb7bb15e68 Bug 1263782 - Kill off the deprecated nsINode::IsInDoc(). r=baku 2016-03-31 11:58:25 +01:00
Brad Lassey
41992def18 bug 1264651 - remove dom.max_child_script_run_time pref r=billm 2016-04-14 11:23:03 -04:00
Boris Zbarsky
1998448029 Bug 1256376. Fix forEach on typed arrays to work over Xrays from web extension sandboxes. r=till 2016-03-22 13:49:58 -04:00
Bill McCloskey
8b6c0ca54e Bug 1260945 - Add missing isSystem check (r=bholley) 2016-04-07 17:15:25 -07:00
Tooru Fujisawa
dd2692b0e2 Bug 887016 - Part 13: Implement RegExp.prototype[@@split] and call it from String.prototype.split. r=h4writer,till 2015-09-05 22:01:43 +09:00
Tooru Fujisawa
c06f3481c2 Bug 887016 - Part 12: Implement RegExp[@@species] getter. r=evilpie,bholley 2015-10-25 02:19:03 +09:00
Tooru Fujisawa
7d12904dfe Bug 887016 - Part 11: Implement RegExp.prototype[@@replace] and call it from String.prototype.replace. r=h4writer,till 2015-09-05 22:01:41 +09:00
Tooru Fujisawa
78e5236cee Bug 887016 - Part 10: Implement RegExp.prototype[@@search] and call it from String.prototype.search. r=till 2015-09-05 22:01:40 +09:00
Tooru Fujisawa
4d74d76aa9 Bug 887016 - Part 9: Implement RegExp.prototype[@@match] and call it from String.prototype.match. r=till 2015-09-05 21:55:06 +09:00
Tooru Fujisawa
886ad96018 Bug 1165052 - Part 1: Implement Array[@@species] getter. r=efaust,bholley 2015-08-07 07:53:32 +09:00