Commit Graph

138656 Commits

Author SHA1 Message Date
Bobby Holley
fdd9f43154 Bug 889714 - Reduce the number of places where we pull |env| off cx. r=mrbkap 2013-07-16 20:38:45 -07:00
Bobby Holley
876b1ecb3d Bug 889714 - Remove unused ExitCode machinery. r=mrbkap
This stuff is cribbed from xpcshell, where it makes sense. But it doens't really
make sense in the IPC context, and doesn't appear to be used either.
2013-07-16 20:38:45 -07:00
Bobby Holley
cdd599dd47 Bug 889714 - Removed unused ShouldReportWarnings and ShouldCompoleOnly [sic] machinery. r=mrbkap
lol @ 'ShouldCompoleOnly'.
2013-07-16 20:38:45 -07:00
Bobby Holley
26926302d8 Bug 889911 - Switch xpcshell to SystemErrorReporter with a little bit of special magic. r=mrbkap
XPCShell currently overrides all the JSContexts whose creation it observes with
its own custom error reporter. This reporter does all sorts of funny things which
we try to clean up for the most part. But there are a few very intricate
considerations at play.

First, the old xpcshell error reporter does some mumbo jumbo with the
XPCCallContext stack to try to guess whether some other code might catch the
exception. This is total garbage on a number of fronts, particularly because
the XPCCallContext stack has no concept of saved frame chains, nested event
loops, sandbox boundaries, origin boundaries, or any of the myriad of
complicating factors that determine whether or not an exception will propagate.

So we get rid of it. But this causes some crazy debugger tests to fail, because
they rely on an exception from uriloader/exthandler/nsHandlerService.js getting
squelched, and can't handle anybody reporting errors to the console service at
the particular moment of contortionism when the exception is raised. So we need
to introduce an explicit mechanism to disable the error reporter here to keep
things running.

Second, we have to be very careful about tracking the return status of the
xpcshell binary. The old code would simply flag an error code if the error
handler was invoked, and we can mostly continue to do that. But there are some
complications. See the comments.

Finally, we don't anything analogous in XPCShellEnvironment, because I have
patches in bug 889714 to remove its state-dependence on the error reporter.
I'll switch it to SystemErrorReporter in that bug.
2013-07-16 20:38:44 -07:00
Bobby Holley
33ab6d05a5 Bug 889911 - Fix tests that unconditionally throw for things reported to the console. r=mrbkap
When we start sending everything reported to the JSErrorReporter to the console,
these tests end up getting confused by warnings.
2013-07-16 20:38:44 -07:00
Bobby Holley
b755828946 Bug 889911 - Replace mozJSLoaderErrorReporter with SystemErrorReporter and remove the former. r=mrbkap 2013-07-16 20:38:44 -07:00
Bobby Holley
a2deff3242 Bug 889911 - Introduce xpc::SystemErrorReporter, roughly based on mozJSComponentLoader's error reporter. r=mrbkap 2013-07-16 20:38:44 -07:00
Robert Strong
1ffe6c6572 Test followup fix for Bug 889183 - mozapps/update xpcshell tests cannot be run concurrently. r=me 2013-07-16 19:25:36 -07:00
Robert Strong
2ee241e576 Part 2. add run-sequentially to xpcshell ini files for tests that can't run in parallel yet - Bug 889183 - mozapps/update xpcshell tests cannot be run concurrently. r=mihneadb 2013-07-16 19:19:25 -07:00
Robert Strong
205bbe75bf Part 1. use custom XREExeF and UpdRootD - Bug 889183 - mozapps/update xpcshell tests cannot be run concurrently. r=bbondy 2013-07-16 19:19:03 -07:00
Robert Strong
f9985178c3 Simplify xpcshell ini files - Bug 894115 - xpcshell ini file confusion. r=bbondy 2013-07-16 19:18:44 -07:00
Masayuki Nakano
06d95e0415 Bug 893973 Check if the keydown event received view actually has focus and separate the MOZ_CRASH() for each case r=smichaud 2013-07-17 11:08:44 +09:00
Benoit Girard
82435a9c18 Bug 838803 - Remove HAVE_STDCALL to work around clang bug. r=glandium
--HG--
extra : rebase_source : e1cdb524a4f7f0742f2051e5915e5e21db4c0423
2013-07-16 22:01:50 -04:00
Chris Double
c84ff42c47 Bug 894148 - Implement MediaResource::ReadAt for threadsafe seek+read - r=cpearce 2013-07-17 13:54:52 +12:00
Chris Kitching
629911606b Bug 892094 - Create "Search" page in settings. r=liuche
--HG--
rename : mobile/android/base/resources/xml/preferences_customize.xml => mobile/android/base/resources/xml-v11/preferences_customize.xml
rename : mobile/android/base/resources/xml/preferences_customize.xml => mobile/android/base/resources/xml/preferences_customize.xml.in
2013-07-16 18:44:42 -07:00
Wes Kocher
f1fea88196 Backout 399362c3e135 (bug 894669) for bustage 2013-07-16 18:41:52 -07:00
Wes Kocher
2efcb3a1cf Merge m-c to inbound 2013-07-16 18:22:58 -07:00
Ryan VanderMeulen
5333a265b8 Backed out 10 changesets (bug 889911, bug 889714) due to merge conflicts on a CLOSED TREE.
Backed out changeset 1a1a536121da (bug 889714)
Backed out changeset 2cd88ef9eea5 (bug 889714)
Backed out changeset 489723887eca (bug 889714)
Backed out changeset 2b38ce22cf97 (bug 889714)
Backed out changeset 87b0a59a5d51 (bug 889714)
Backed out changeset 13229bab2ba4 (bug 889714)
Backed out changeset 234bd6d1fbed (bug 889714)
Backed out changeset 4f5f62284917 (bug 889714)
Backed out changeset 18537c4436c7 (bug 889911)
Backed out changeset ca7060ab1588 (bug 889911)
2013-07-16 21:16:31 -04:00
Jonathan Wilde
dbc0634be4 Bug 867543 - Part 3 - Dynamically update and pluralize the labels with all of the correct nouns attached. r=mbrubeck
--HG--
extra : rebase_source : b83293bfc40a12983a44e04295380d127c8b7227
2013-07-16 13:38:28 -07:00
Jonathan Wilde
fe0d196966 Bug 867543 - Part 2 - Add static labels. r=mbrubeck
--HG--
extra : rebase_source : bc7b5b58ecc667982160e325b99a45eb2cd9fd2a
2013-07-16 13:38:05 -07:00
Jonathan Wilde
afa3533a45 Bug 867543 - Part 1 - Generalize appbar css, make sprites more robust, move into platform. r=mbrubeck
--HG--
extra : rebase_source : d12d41611423782497c03ceb05bd8b40afd1b921
2013-07-16 13:32:36 -07:00
Bobby Holley
af54d60d2b Bug 889714 - Remove ContextCallback junk. r=mrbkap
There's no reason we should be doing this.
2013-07-16 18:04:51 -07:00
Bobby Holley
25bf29dee3 Bug 889714 - Use the SafeJSContext in XPCShellEnvironment. r=mrbkap 2013-07-16 18:04:50 -07:00
Bobby Holley
c3aea97596 Bug 889714 - Use SystemErrorReporter instead of ScriptErrorReporter. r=mrbkap
SystemErrorReporter is the new unified error reporter for everything non-dom.
In particular, it's used by the SafeJSContext, which we'll be switching to
here shortly.
2013-07-16 18:04:50 -07:00
Bobby Holley
f4a8c21d81 Bug 889714 - Stop manually holding onto system JSPrincipals. r=mrbkap 2013-07-16 18:04:50 -07:00
Bobby Holley
2464bc220f Bug 889714 - Stash the XPCShellEnvironment instance on the global, rather than the cx. r=mrbkap
We need to stash it somewhere, because the shell-provided JSNatives need to
access it. This solution only works for script running in the scope of the
global we create. Butthat's fine here, because we only use it for load() and
quit(), which only exist in the scope of that global.
2013-07-16 18:04:50 -07:00
Bobby Holley
76fc311011 Bug 889714 - Reduce the number of places where we pull |env| off cx. r=mrbkap 2013-07-16 18:04:49 -07:00
Bobby Holley
599d035969 Bug 889714 - Remove unused ExitCode machinery. r=mrbkap
This stuff is cribbed from xpcshell, where it makes sense. But it doens't really
make sense in the IPC context, and doesn't appear to be used either.
2013-07-16 18:04:49 -07:00
Bobby Holley
fcd4ff0908 Bug 889714 - Removed unused ShouldReportWarnings and ShouldCompoleOnly [sic] machinery. r=mrbkap
lol @ 'ShouldCompoleOnly'.
2013-07-16 18:04:49 -07:00
Bobby Holley
b6f705b27a Bug 889911 - Switch xpcshell to SystemErrorReporter with a little bit of special magic. r=mrbkap
XPCShell currently overrides all the JSContexts whose creation it observes with
its own custom error reporter. This reporter does all sorts of funny things which
we try to clean up for the most part. But there are a few very intricate
considerations at play.

First, the old xpcshell error reporter does some mumbo jumbo with the
XPCCallContext stack to try to guess whether some other code might catch the
exception. This is total garbage on a number of fronts, particularly because
the XPCCallContext stack has no concept of saved frame chains, nested event
loops, sandbox boundaries, origin boundaries, or any of the myriad of
complicating factors that determine whether or not an exception will propagate.

So we get rid of it. But this causes some crazy debugger tests to fail, because
they rely on an exception from uriloader/exthandler/nsHandlerService.js getting
squelched, and can't handle anybody reporting errors to the console service at
the particular moment of contortionism when the exception is raised. So we need
to introduce an explicit mechanism to disable the error reporter here to keep
things running.

Second, we have to be very careful about tracking the return status of the
xpcshell binary. The old code would simply flag an error code if the error
handler was invoked, and we can mostly continue to do that. But there are some
complications. See the comments.

Finally, we don't anything analogous in XPCShellEnvironment, because I have
patches in bug 889714 to remove its state-dependence on the error reporter.
I'll switch it to SystemErrorReporter in that bug.
2013-07-16 18:04:49 -07:00
Bobby Holley
269151d7fe Bug 889911 - Introduce xpc::SystemErrorReporter, roughly based on mozJSComponentLoader's error reporter. r=mrbkap 2013-07-16 18:04:48 -07:00
Dan Gohman
1d9d94c40e Bug 891695 - IonMonkey: Avoid passing pointers by const reference. r=rpearl 2013-07-16 16:00:03 -07:00
Brian Hackett
0bb18aa410 Bug 894669 - Add analysis for finding variables unnecessarily entrained by inner functions, r=luke. 2013-07-16 18:54:47 -06:00
Ed Morley
5f440f5b03 Merge latest green birch changeset and mozilla-central 2013-07-16 09:59:15 +01:00
Ed Morley
bb089a0b72 Merge latest green inbound changeset and mozilla-central 2013-07-16 09:57:55 +01:00
Gaia Pushbot
d6f296f373 Bumping gaia.json for 1 gaia-central revision(s)
========

https://hg.mozilla.org/integration/gaia-central/rev/37d94f0bacee
Author: Timothy Guan-tin Chien <timdream@gmail.com>
Desc: Bug 891277 - Update Usage assets, r=me
2013-07-15 20:10:23 -07:00
Gaia Pushbot
30bf986c5a Bumping gaia.json for 2 gaia-central revision(s)
========

https://hg.mozilla.org/integration/gaia-central/rev/ae6bd540e71a
Author: Alive.Kuo <alegnadise@gmail.com>
Desc: Merge pull request #9326 from pauljt/bug863527_v2

Bug 863527 -- Safer html injection in app error, r=alive

========

https://hg.mozilla.org/integration/gaia-central/rev/d5bc2ff16c0c
Author: Paul Theriault <ptheriault@mozilla.com>
Desc: fix bug 863527 by updating test instead of parsing untrusted input
2013-07-15 20:00:22 -07:00
Gregory Szorc
3f54869e4b Bug 894197 - Define state directory in mach context object; r=jhammel
DONTBUILD (NPOTB)
2013-07-15 19:56:15 -07:00
Wes Kocher
eb7a34534f Backout 476a4bbbfdb2 (bug 890722) on a CLOSED TREE for breaking debug mochitests 2013-07-15 19:56:08 -07:00
Nick Alexander
8f4e859881 Bug 890040 - Protect against orphans in Android health report uploader. r=rnewman
This does two main things.  First, it tracks sets of obsolete document
IDs and retries obsoletes and deletes.  Second, it tracks document IDs
that are attempted to be written to the server for obsolescence or
deletion without waiting for a server response to prevent orphaning
documents on successful upload and failed response.

The ObsoleteDocumentTracker uses a JSON map to maintain obsolete
document IDs and priority values.  That's not the right data
structure; Bug 894194 tracks improving it.
2013-07-15 19:44:21 -07:00
Gaia Pushbot
27f77927de Bumping gaia.json for 2 gaia-central revision(s)
========

https://hg.mozilla.org/integration/gaia-central/rev/82dbf4bd629a
Author: John Hu <johu@mozilla.com>
Desc: Merge pull request #10965 from huchengtw-moz/video/Bug_891929_remove_youtube_protocol_hack

Bug 891929 - Remove youtube protocol hack per landing of bug 887454, r=daleharvey

========

https://hg.mozilla.org/integration/gaia-central/rev/fac6cfa9692b
Author: John Hu <johu@mozilla.com>
Desc: Bug 891929 - Remove youtube protocol hack per landing of bug 887454
2013-07-15 19:15:23 -07:00
Gaia Pushbot
4a7d43c5cf Bumping gaia.json for 2 gaia-central revision(s)
========

https://hg.mozilla.org/integration/gaia-central/rev/9b3ffbd7fe9f
Author: evanxd <itoyxd@gmail.com>
Desc: Merge pull request #10970 from evanxd/bug-893694

Bug 893694 - [Calendar] Update the 1.5x version of images for Calendar App

========

https://hg.mozilla.org/integration/gaia-central/rev/3b60d2882d1b
Author: Evan Xd <itoyxd@gmail.com>
Desc: Bug 893694 - Update the 1.5x version of images.
2013-07-15 19:00:25 -07:00
Jared Wein
32bfdc4d99 Backed out changeset 6d739868bd90 (bug 887515) for leaking windows on a CLOSED TREE. 2013-07-15 21:39:32 -04:00
Gaia Pushbot
e7163c183f Bumping gaia.json for 2 gaia-central revision(s)
========

https://hg.mozilla.org/integration/gaia-central/rev/911756823e45
Author: John Ford <john@johnford.info>
Desc: Merge pull request #10932 from brendandahl/pdfjs-v0.8.326

Bug 892721 - Update gaia pdf.js to version 0.8.326.

========

https://hg.mozilla.org/integration/gaia-central/rev/4631d9e630a8
Author: Brendan Dahl <brendan.dahl@gmail.com>
Desc: Bug 892721 - Update gaia pdf.js to version 0.8.326.
2013-07-15 17:45:23 -07:00
Mihnea Dobrescu-Balaur
e56e545704 Bug 887480 - Make the content/base xpcshell tests use dynamic httpd ports so they can be run concurrently. r=bz 2013-07-15 17:13:37 -07:00
Jan Beich
ca5cd269e3 Bug 803480 - Enable NeckoWifi by default only on platforms where it's actually supported. r=ted 2013-07-17 09:57:28 -04:00
Shu-yu Guo
4533a63a6e Bug 893679 - Followup: Make sure rvalType is MIRType_Value when barrier is true to fix bustage on a CLOSED TREE. (r=bhackett) 2013-07-16 01:49:54 +02:00
Jeff Walden
2e37cdb786 Convert SN_MAKE_TERMINATOR and SN_IS_TERMINATOR to inline functions to avoid clang+ccache warnings about over-parenthesized equality expressions. No bug, rs=terrence
--HG--
extra : rebase_source : 50b8f70501a481a4dda715284ccd9a21bbfa0eb6
2013-07-15 15:26:04 -07:00
Nicolas B. Pierron
a15779b07d Bug 876029 - Add Missing MPL header. r=jlebar DONTBUILD 2013-07-15 15:25:07 -07:00
Matt Brubeck
da1873acb6 Bug 892759 - Add basic tests for the Metro find in page bar [r=rsilveira] 2013-07-15 15:20:32 -07:00