Commit Graph

147203 Commits

Author SHA1 Message Date
Jeff Walden
04d13243c9 Bug 916394 - Remove the |it| object from the shell: everything it tests is better-tested with a JSAPI test these days, and it's largely redundant. r=jorendorff
--HG--
extra : rebase_source : f97d63fdf89a0eacf0f2e091fc3f64aa590371eb
2013-09-12 15:45:43 -07:00
Tom Schuster
58d1d4beba Bug 916534 - Test for find highlight should work in subframes. r=mikdeboer 2013-09-17 12:54:35 -04:00
Tom Schuster
0e33aaaa25 Bug 916534 - Find Highlight should work in subframes. r=mikdeboer 2013-09-17 12:54:35 -04:00
Tom Schuster
a3b259dd77 Bug 916864 - When bluring the findbar, remove the selections and don't focus content. r=mikedeboer 2013-09-17 12:54:34 -04:00
Tom Schuster
4c469dec3d Bug 914353 - Throw an error if call to GetRandomValues fails. r=khuey 2013-09-17 12:54:34 -04:00
Tom Schuster
3f1f05810b Bug 914353 - Use the new window.crypto implementation in e10s. r=khuey 2013-09-17 12:54:34 -04:00
Ehsan Akhgari
d2564b10a0 Bug 917299 - Remove some dead code in content/ and dom/; r=bzbarsky 2013-09-17 12:49:07 -04:00
Bobby Holley
8f78b2faeb Bug 905926 - Remove workaround in xpcshell. r=billm 2013-09-17 09:46:33 -07:00
Bobby Holley
c8872347c9 Bug 905926 - Be more explicit about GCing twice in the nsXPConnect destructor. r=billm
In the current setup, we'll end up GCing once when destroying the SafeJSContext,
and then once again immediately after in the explicit GC we do before destroying
the XPCJSRuntime. It would be nice to avoid the first GC entirely, but we
currently need both to avoid leaking.

All in all, these patches cause us to GC three times during shutdown, rather
than twice as we did before, because the second GC was rolled together with
the runtime destruction GC when we destroyed the last JSContext. There are a
number of ways to eliminate these, at least in opt builds, but mccr8 thinks
it probably doesn't matter, since there shouldn't be much left in the heap after
the second GC.

We can probably get away with eliminating rambo GC entirely at some point. But
this might become irrelevant for the browser if we end up doing bug 662444.

It would also be interesting to see what, if anything, the rambo GC actually
collects. We might even be able to get away with asserting that all the zones
are gone and removing the GC entirely.

We also take the opportunity to kill mOwnSafeJSContext, which no longer holds
any meaning.
2013-09-17 09:46:32 -07:00
Bobby Holley
c0d1afa8de Bug 905926 - Stop using hasContexts(). r=billm,jonco
This patch is a joint effort between billm and myself. I'm marking myself as
the author because I worked on it more recently, which means that Bill should
probably review it again in addition to jonco, and self-review is frowned upon.

There were a few places where we relied on !rt->hasContexts() to mean
"this is the last GC". That was never really valid, and it especially isn't
valid with the previous patch. This patch replaces the check everywhere it's
used in the GC.
2013-09-17 09:46:32 -07:00
Bill McCloskey
a3fd52315b Bug 905926 - Move rambo GC to runtime destruction. r=jonco 2013-09-17 09:46:32 -07:00
Bobby Holley
42c719e380 Bug 905926 - Remove watchpoints on all compartments during shutdown, not just the cx compartment. r=billm 2013-09-17 09:46:32 -07:00
Bobby Holley
ac7034ec92 Bug 905926 - Invoke JS_DestroyRuntime before we totally tear down the XPCJSRuntime. r=billm 2013-09-17 09:46:31 -07:00
Bobby Holley
672d08bf20 Bug 905926 - Stop creating an ephemeral JSContext during XPConnect shutdown. r=billm
This interacts badly with our attempts to shut things down nicely, and happens
to be entirely unused. the primary impact of it ends up being that the cx
destruction triggers a GC, which we depend on. But we can do that manually.
2013-09-17 09:46:31 -07:00
Bobby Holley
d09c3fcc99 Bug 905926 - Explicitly track whether a context has been created. r=billm
The current mechanism is pretty sloppy, and falls over if the context count ever
drops to zero and then increases again. Let's do this right.
2013-09-17 09:46:31 -07:00
Bill McCloskey
c6adde8957 Bug 905926 - Fix small bugs. r=jonco
This patch fixes two small issues.

(1) It tightens an assertion in finalizeNow. Stuff finalized in finalizeNow
    should never be finalized off the main thread, so we shouldn't have to
    worry about BFS_JUST_FINISHED.

(2) If the only compartment that's left to GC is the atoms compartment, then
    we're not collecting it. I just moved the |any| check down below the
    code that decides whether to schedule the atoms compartment for GC.
2013-09-17 09:46:31 -07:00
Bobby Holley
20e00df790 Bug 916983 - Stop allowing writes for named access to cross-origin properties. r=bz 2013-09-17 09:46:30 -07:00
Bobby Holley
8ee4b2529c Bug 860494 - Tests. r=bz 2013-09-17 09:46:30 -07:00
Ehsan Akhgari
4da4ab7720 Bug 917348 - Part 2: Use NS_ASSERT_OWNINGTHREAD instead of using _mOwningThread directly; r=bsmedberg
--HG--
extra : rebase_source : 42bade39ec058881c4c82542af35f13e9f54fb1d
2013-09-17 12:34:47 -04:00
Ehsan Akhgari
d4b0483708 Bug 917348 - Part 1: Make NS_IMPL_CYCLE_COLLECTING_AGGREGATED build on non-debug configurations; r=bsmedberg
--HG--
extra : rebase_source : 4984cf31e6855b721dabb27315b4255179aa586d
2013-09-17 12:05:13 -04:00
Mark Banner
2024631aeb Bug 916026 Set the expected plugin state at the start of the test to avoid issues with different apps having different preferences set. r=dkeeler 2013-09-17 09:42:39 -07:00
Eitan Isaacson
0be41e0d7e Bug 904687 - Introduce Svox Pico speech synthesis service. r=smaug f=gps
- moz.build updates.
 - Use nsISupports thread-safe decleration macros.
 - Also with PicoVoice, changed to thread-safe add/remove ref macro. We are now creating them off main thread.
 - Do initialization off main thread, but go back to main thread to register the voices.
2013-09-17 09:40:07 -07:00
Ehsan Akhgari
a1158bad50 Bug 917267 - Remove some unneeded code in xpconnect; r=bholley 2013-09-17 12:38:56 -04:00
Ehsan Akhgari
32841d7ffc Bug 917302 - Remove some dead code in embedding/; r=bsmedberg 2013-09-17 12:38:56 -04:00
Ehsan Akhgari
381203f2fb Bug 917304 - Remove some dead code in docshell/; r=bzbarsky 2013-09-17 12:38:56 -04:00
Ehsan Akhgari
e405bd80a2 Bug 917266 - Remove some unneeded code in netwerk/; r=mcmanus 2013-09-17 12:38:55 -04:00
Ed Morley
4ff4e8564b Backed out changeset 58dbd84ae828 (bug 917246) for crashes on a CLOSED TREE 2013-09-17 17:24:30 +01:00
Ed Morley
00f3b24a4a Backed out changeset 9524b1df278e (bug 908669) 2013-09-17 17:14:58 +01:00
Ed Morley
e41d9b2e38 Backed out changeset fb89f2090779 (bug 881959) 2013-09-17 17:14:55 +01:00
Ed Morley
df60e95b67 Backed out changeset fe576415129e (bug 881959) 2013-09-17 17:14:52 +01:00
Ed Morley
0a09374bb8 Backed out changeset 5e5d5e42f6c2 (bug 881959) 2013-09-17 17:14:49 +01:00
Ed Morley
f4ceaf273d Backed out changeset b221626331b4 (bug 881959) 2013-09-17 17:14:45 +01:00
Ed Morley
8c4903c766 Backed out changeset 2aa38a1a2b06 (bug 881959) 2013-09-17 17:14:42 +01:00
Ed Morley
1cc15c93a8 Backed out changeset 3d2aac8dc618 (bug 916773) 2013-09-17 17:14:39 +01:00
Ed Morley
20c76f3425 Backed out changeset ade49a801461 (bug 881959) 2013-09-17 17:14:36 +01:00
Ed Morley
e332c5a8a3 Backed out changeset 4323508b3412 (bug 917260) 2013-09-17 17:14:33 +01:00
Ed Morley
70e1eecd37 Backed out changeset 924b0619e616 (bug 881959) 2013-09-17 17:14:29 +01:00
Ed Morley
d18e1da31d Backed out changeset 7d17f2d129e3 (bug 881959) 2013-09-17 17:14:26 +01:00
Ed Morley
4beae2a7f1 Backed out changeset 7469a58a5f3d (bug 908669) 2013-09-17 17:14:23 +01:00
Paul Adenot
184f41b451 Bug 908669 - Remove an unrelated chunk that sneaked in, on a CLOSED TREE. 2013-09-17 17:30:30 +02:00
Paul Adenot
be744b48ec Bug 881959 - Fix inbound bustage on XP again, on a CLOSED TREE. 2013-09-17 17:25:33 +02:00
Boris Zbarsky
9cc662a2d6 Bug 915971. Rename FooReturnValue unions to OwningFoo, because we use them for more than just return values. r=dzbarsky 2013-09-17 11:16:02 -04:00
Boris Zbarsky
b4f7ea5880 Bug 916995. Force a gc that we hope will collect the event listener's script, instead of just hoping a GC will happen. r=past 2013-09-17 11:15:45 -04:00
Trevor Saunders
1ec207943c bug 888981 - add Accessible::IsAcceptableChild() r=surkov
this patch does several things
- makes DocAccessible::BindToDocument return void the only case in which
  it would "fail" was when passed null, and we know none of the callers
do that.
- adds Accessible::IsAcceptableChild() which returns true if its ok for
  the possible child to be a child of this accessible.
- replace several over rides of Accessible::CacheChildren() that are
  only to prevent certain types of children to over rides of
Accessible::IsAcceptableChild()
2013-09-06 15:27:07 -04:00
Geoff Brown
9efe332700 Bug 913627 - Disable a few more media mochitests on Android x86 only; r=jmaher 2013-09-17 08:55:03 -06:00
Dan Minor
27647137dc Bug 907351 - Android pandaboard reftests run significantly slower; r=gbrown 2013-09-16 06:54:39 -04:00
Aryeh Gregor
3c50a2fa98 Bug 916568 - Remove xpcom/base/nsErrorAsserts.cpp; r=ehsan 2013-09-17 14:05:12 +03:00
Brian Hackett
74105e653d Bug 916914 - Remove ScriptAnalysis::ionInlineable(), r=jandem. 2013-09-17 08:39:01 -06:00
Ed Morley
c39b834022 Merge mozilla-central and inbound 2013-09-17 15:30:21 +01:00
Paul Adenot
5a46b9d2a0 Bug 881959 - Fix inbound bustage on XP. 2013-09-17 16:25:13 +02:00