Commit Graph

5116 Commits

Author SHA1 Message Date
Jan de Mooij
847b10eeb0 Bug 1274922 part 5 - Remove JSEXN_NONE and add JSEXN_WARN. r=jorendorff 2016-05-31 08:07:00 +02:00
Carsten "Tomcat" Book
81eb193787 Backed out changeset e8af287d0d10 (bug 1276112) for causing windows gl crashes 2016-05-30 10:29:44 +02:00
Carsten "Tomcat" Book
4d8513fed6 Backed out changeset 3bb683963f98 (bug 1276112) 2016-05-30 10:29:11 +02:00
Boris Zbarsky
39e803ff41 Bug 1276112 followup. Reinstate a null-check that got lost. r=mccr8 2016-05-27 15:00:13 -04:00
Boris Zbarsky
74ebb7940f Bug 1276112. Stop using GetScriptContextFromJSContext in CycleCollectedJSRuntime::UsefulToMergeZones. r=mccr8 2016-05-27 13:28:26 -04:00
Boris Zbarsky
260d626f13 Bug 1276231. Remove the unused return value of XPCJSContextStack::Pop. r=mrbkap 2016-05-27 13:28:01 -04:00
Boris Zbarsky
71c48ddac9 Bug 1276135. Remove XPCCallContext::GetDefaultJSContext. r=bholley 2016-05-27 09:54:19 -04:00
Boris Zbarsky
e9c3b988dd Bug 1275999 part 4. Change XPCJSContextStack::Push to return void. r=bholley 2016-05-27 09:53:32 -04:00
Boris Zbarsky
c4994333a5 Bug 1275999 part 3. Remove the totally unused XPCJSContextStack::HasJSContext function. r=bholley 2016-05-27 09:53:32 -04:00
Boris Zbarsky
eb9c30dc03 Bug 1275999 part 2. Change XPCJSContextStack to just store JSContext*. r=bholley 2016-05-27 09:53:20 -04:00
Boris Zbarsky
77a2f1e4cf Bug 1275999 part 1. Stop saving frame chains in XPCJSContextStack::Push. r=bholley
This can all go away because no one is paying attention to the saved frame chain state anymore.
2016-05-27 09:53:18 -04:00
Jan de Mooij
d6e128e540 Bug 1274915. Switch JS::DescribeScriptedCaller to walk through saved frames when walking the JS stack. r=bzbarsky 2016-05-26 20:36:09 -04:00
Boris Zbarsky
98aa24ddc7 Bug 1275704 part 3. Remove the nsXPConnect::ReportAllJSExceptions mechanism, since it's dead code now. r=bholley 2016-05-26 19:39:03 -04:00
Boris Zbarsky
17503774be Bug 1275704 part 2. Remove the now-unused aForceReport argument of nsXPCWrappedJSClass::CheckForException. r=bholley 2016-05-26 19:39:03 -04:00
Boris Zbarsky
e01814bbc7 Bug 1275704 part 1. Simplify the computation of the 'reportable' boolean in nsXPCWrappedJSClass::CheckForException by taking out the special case of not reporting it if there is a scripted caller (since the only case when there is one is a JS-implemented XPCOM interface backed by an object in a window compartment). r=bholley 2016-05-26 19:39:03 -04:00
Morgan Phillips
1dcc007880 Bug 1270729 - When stopping slow scripts totally halt script execution; r=bholley
--HG--
extra : rebase_source : 37f9ad254334c91970942cc0d6d46d0756a5c9b0
2016-05-16 01:20:06 -07:00
Nicholas Nethercote
76d46c4a81 Bug 1275129 - Add missing null check in OrphanReporter::sizeOfIncludingThis. r=mccr8.
--HG--
extra : rebase_source : aaaea27b0954d6e546cfd6eba34f168ade8b07da
2016-05-24 10:27:02 +10:00
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