Commit Graph

2042 Commits

Author SHA1 Message Date
Vivien Nicolas
946e2bcc4e Bug 736193 - Use the offline cache to load applications [r=fabrice] DONTBUILD because NPOTB 2012-03-23 16:39:15 -07:00
Jared Wein
3f49c23fdd Backed out changeset 5f79a3dd45ff (bug 730318) r=bustage 2012-03-23 11:46:12 -07:00
Marco Bonardo
1ffefb8021 Merge central to inbound 2012-03-23 02:02:03 +01:00
Marco Bonardo
36b3350337 Merge last green PGO from inbound to central 2012-03-23 01:59:29 +01:00
David Flanagan
4fdd1e074b Bug 738439 - typo in Webapps.jsm [r=fabrice] 2012-03-22 14:26:36 -07:00
Marco Bonardo
ffb17ea4b7 Merge last green PGO from inbound to central 2012-03-22 13:04:29 +01:00
Neil Rashbrook
6a492894d7 Bug 737022 Re-enable strict warnings when parsing XUL r=jst 2012-03-22 08:36:36 +00:00
Jared Wein
61ab14237c Bug 730318 - Implement a way for chrome js to enumerate the plugin objects on a page for activation. r=khuey 2012-03-22 13:53:59 -07:00
Masayuki Nakano
cd68fdc428 Bug 672175 part.15 Add new API nsIDOMWindowUtils.sendNativeMouseScrollEvent() r=roc, sr=smaug 2012-03-22 09:59:12 +09:00
Henri Sivonen
f2d3f89eb7 Bug 737417 part 1 - Split charset source constants out of nsIParser.h. r=smaug. 2012-03-22 16:42:42 +02:00
Marco Bonardo
49bd1f22b0 Merge central to inbound 2012-03-22 13:09:22 +01:00
Boris Zbarsky
4d4ac90393 Bug 622491. Make the global scope polluter work in standards mode too. r=jst 2012-03-22 00:10:50 -04:00
Blake Kaplan
81959516d4 Bug 737029 - Use DOMRequestHelper.jsm in DOMWifiManager.js. r=fabrice DONTBUILD 2012-03-20 16:59:38 +01:00
Mounir Lamouri
7061af5d83 Bug 720795 - Screen Orientation API reading and event implementation in Android. r=dougt 2012-03-20 14:09:45 +01:00
Adam Dane [:hobophobe]
f6bfd29afb Bug 720126 - Update scroll API to use ScrollAxis parameters (where and when). r=roc 2012-03-19 21:09:50 -05:00
Hessam Salehi
25b8143afe Bug 474505 - Replace uses of nsVoidPtrHashkey with nsPtrHashKey<T>; r=bsmedberg 2012-03-21 14:07:31 -04:00
Eric Chou
85cd3d3dea Bug 730990 - Device object boilerplate for DOM Bluetooth - r=qDot 2012-03-23 14:58:12 -07:00
Kyle Machulis
233b8a5ed9 Backing out a44ac6895a2f 2012-03-23 14:50:47 -07:00
Eric Chou
5fc8781e5d Bug 730990 - Device object boilerplate for DOM Bluetooth - r=qDot 2012-03-23 14:18:03 -07:00
Jared Wein
3c05f07191 Backed out changeset 5f79a3dd45ff (bug 730318) r=bustage 2012-03-23 11:11:31 -07:00
Mark Capella
1e7fdd17b2 Bug 734023 - Remove language arguments from nsIScriptGlobalObject methods, r=jst, f=ms2ger 2012-03-23 18:13:29 +01:00
Igor Bukanov
fbeb82e29f bug 730221 - delegating serialization of script principals to the embedding. r=:luke,:bz
Currently to serialize principals stored in JSScript we have a rather complex
schema. First there is the transcode callback that the embedding must provide
to transcode principals using XDR API. Second we use rather complex glue code
to implement that callback in terms of writing/reading nsIObjectOutputStream/
nsIObjectInputStream. This glue code is duplicated in 3 places. All this can
be avoided if we simply delegate transcoding of principals to the caller. In
addition, at least in the case of the cached startup scripts we do not even
need to transcode the principals as the the cached scripts always have the
system principal so we can skip all the transcode complexity there.

The patch implemnts this idea. In particular, the code in JS engine
responsible for transcoding of principals is replaced by the single API
function JS_XDRSetPrincipals that the embedding can use to set principals for
decoded scripts and functions. Then the startup cache uses this to set the
principals for the decoded script to the system principals. The other two
places in nsJSContext::Serialize and  XBL_SerializeFunction that need to
serialize principals together with a function or script now uses common
utilities in nsXPConnect so the serialization complexity resides in the single
 place.
2012-02-13 14:10:04 +01:00
Mounir Lamouri
220849f37b Bug 735781 - Make sure nsScreen don't call RemoveObserver twice in a row. r=jlebar 2012-03-15 10:58:56 +01:00
Mounir Lamouri
753a764c6f Bug 735261 - navigator.mozConnection should be an instance of EventTarget. r=smaug 2012-03-14 19:50:11 +01:00
Mounir Lamouri
573bc8fb91 Bug 720799 - Don't use mDocShell in nsScreen. r=jst,jlebar 2012-03-14 19:14:53 +01:00
Mounir Lamouri
fe9374bc32 Bug 720794 - Part 2 (DOM) - Implement reading and event parts of Screen Orientation API. r=jst sr=sicking 2012-03-14 11:10:48 +01:00
Mounir Lamouri
9dc7a97d56 Bug 720794 - Part 1 (HAL) - Implement reading and event parts of Screen Orientation API. r=cjones 2012-03-13 17:42:46 +01:00
DĂŁo Gottwald
098b79e99e Backed out changeset 2cd01fd07ce8 2012-03-19 12:54:32 +01:00
Adam Dane [:hobophobe]
395f2b3456 Bug 720126 - Update scroll API to use ScrollAxis parameters (where and when). r=roc 2012-03-18 14:42:25 -05:00
Mark Finkle
c5c1e891ea Backout 7e28d1a2c648, 330b210f503d, 2421d39e0ab3, aa978ffa44bc, 38a71ae7e06d, b94319584a7a, 7e8278f5e814, 0b4e3c7608ab, 329c07609ca8, 0d61a0d8dba4, Due to Ts regression on Android 2012-03-17 21:51:39 -04:00
Mounir Lamouri
81b3fa1bc1 Bug 735781 - Make sure nsScreen don't call RemoveObserver twice in a row. r=jlebar 2012-03-15 10:58:56 +01:00
Mounir Lamouri
d0998ff48f Bug 735261 - navigator.mozConnection should be an instance of EventTarget. r=smaug 2012-03-14 19:50:11 +01:00
Mounir Lamouri
52ab7f4c5b Bug 720799 - Don't use mDocShell in nsScreen. r=jst,jlebar 2012-03-14 19:14:53 +01:00
Mounir Lamouri
3be7d6c979 Bug 720795 - Screen Orientation API reading and event implementation in Android. r=dougt 2012-03-16 19:43:10 +01:00
Mounir Lamouri
390107621f Bug 720794 - Part 2 (DOM) - Implement reading and event parts of Screen Orientation API. r=jst sr=sicking 2012-03-14 11:10:48 +01:00
Mounir Lamouri
d69485a4f2 Bug 720794 - Part 1 (HAL) - Implement reading and event parts of Screen Orientation API. r=cjones 2012-03-13 17:42:46 +01:00
Bill McCloskey
2898570725 Bug 736643 - Add timestamp support to GC/CC JSON output (r=terrence) 2012-03-16 16:36:26 -07:00
Jared Wein
883053cd10 Bug 730318 - Implement a way for chrome js to enumerate the plugin objects on a page for activation. r=khuey 2012-03-27 13:50:50 -07:00
Bobby Holley
ff990375c6 Bug 738956 - Wrap values in nsStructuredCloneContainer::InitFromVariant before passing them to JS_WriteStructuredClone. r=khuey 2012-03-27 11:43:11 -07:00
Bobby Holley
92d741e6a0 Bug 734910 - Enter the compartment of the new global before calling FinishInitForNewWrappedGlobal. r=mrbkap 2012-03-16 12:47:20 -07:00
Peter Van der Beken
526e189372 Fix for bug 736229 (Stop storing expando objects in the wrapper cache, store the proxy instead). r=jst. 2012-03-14 15:22:10 +01:00
Ms2ger
b114a45e19 Bug 550309 - Part d: Try unwrapping to nsIDOMImageData in GetImageData(); r=bz 2012-03-16 10:44:39 +01:00
Ms2ger
364d2a12d3 Bug 550309 - Part c: Implement ImageData; r=bz 2012-03-16 10:44:08 +01:00
Ed Morley
efdc9a5382 Merge last PGO-green changeset of mozilla-inbound to mozilla-central 2012-03-15 12:42:01 +00:00
Bill McCloskey
bfb7513cfa Bug 735916 - Fix javascript.options.mem.log (r=terrence) 2012-03-14 16:50:35 -07:00
Blake Kaplan
867e18420d Bug 732982 - Expose a wifi API to the DOM. The API is very much a work in progress and will change soon. r=cjones/fabrice/vigntetun DONTBUILD
--HG--
extra : rebase_source : c44979e32dfffc46502f21c59c691a13e0319cad
2012-03-14 21:39:15 +01:00
Kartikaya Gupta
314843ddd5 Bug 725095 - Merge off-main-thread compositor from Maple. IGNORE BAD COMMIT MESSAGES 2012-03-14 11:18:15 -04:00
Benoit Girard
188ca471f6 Merge mc->Maple 2012-03-13 11:05:28 -04:00
Marco Bonardo
3e58667468 Merge last green PGO from inbound to central 2012-03-13 11:17:21 +01:00
Masatoshi Kimura
e441461b51 Bug 721569 - Implement Blob constructor. r=sicking 2012-03-12 21:44:56 -07:00
Jonas Sicking
39ecbe97e4 Bug 735094: Implement new string values (rather than numeric constants) for IndexedDB. r=bent 2012-03-12 21:44:45 -07:00
Olli Pettay
85ef818664 Bug 734057 - Make nsDOMEventTargetHelper to not have strong pointer to window, part2, r=jst 2012-03-13 02:56:20 +02:00
Olli Pettay
339e88ba7e Bug 734057 - Make nsDOMEventTargetHelper to not have strong pointer to window, r=jst,bent 2012-03-13 02:56:07 +02:00
Ali Juma
cc0282e9e5 Bug 732091 - Part 2: Add {set,get}IsFirstPaint to nsIDOMWindowUtils and nsIPresShell. r=ehsan 2012-03-12 11:50:11 -04:00
Ms2ger
f86aa6d879 Bug 734481 - Make nsIJSArgArray inherit from nsIArray; r=jst 2012-03-11 09:53:05 +01:00
Ms2ger
51265ab0b6 Bug 734473 - Remove nsIScriptContext::FinalizeContext; r=jst 2012-03-11 09:51:22 +01:00
Ms2ger
584d05b577 Bug 734472 - Pass JSObject to nsIScriptContext::SetProperty; r=jst 2012-03-11 09:50:22 +01:00
Ms2ger
7aad511ab7 Bug 734468 - Make SetTerminationFunction return void; r=jst 2012-03-11 09:49:15 +01:00
Ms2ger
6dbbe95646 Bug 732769 - Remove FileError; r=sicking 2012-03-11 09:47:38 +01:00
Igor Bukanov
30d3de8268 bug 728250 - remove JSPrincipals::codebase. r=:luke,:bz
In just 2 cases where JSPrincipals::codebase is used it can be reconstructed from the values stored in the associated nsJSPrincipal. In addition the patch makes nsJSprincipals to inherit both from nsIPrincipal and JSPrincipals allowing to use static_cast to convert between nsIPrincipal and JSPrincipals pointers and to drop many cases of manual JSPrincipal reference counting.
2012-03-09 10:48:50 +01:00
Kan-Ru Chen
0463d2d1c5 Bug 697132 - Use nsCOMPtr constructor. r=Ms2ger 2012-03-14 18:00:29 -04:00
Nicholas Nethercote
55f276020a Bug 732843 - Handle Callback() failures in memory multi-reporters. r=jlebar.
--HG--
extra : rebase_source : 54af85a1ef839922d5443cdc36f601611258944a
2012-03-04 15:26:30 -08:00
Fabrice Desré
5b3cde6f1c Bug 697006 - Add desktop support for the Open Web Apps API - Part 1 : enable mozApps on desktop [r=gavin] 2012-03-12 17:33:10 -07:00
Fabrice Desré
733a03739b Bug 735109 - unregister message listeners on shutdown in Webapps.jsm [r=felipe] 2012-03-12 17:33:10 -07:00
Bill McCloskey
d7a654d0c5 Bug 735014 - Wait longer for PAGE_HIDE GCs (r=smaug) 2012-03-12 16:25:03 -07:00
Justin Lebar
0dbaf73150 Bug 729940 - Part 2: Stop using crappy hash functions in Gecko. r=bz
--HG--
extra : rebase_source : 6fa267a89878cc1a766d8618569debcea9b12e48
2012-03-12 18:53:18 -04:00
David Anderson
67bb3e5986 Remove JS_GetScriptedCaller (bug 732652, r=luke,mrbkap,bholley,smaug,bent). 2012-03-06 15:33:12 -08:00
Ehsan Akhgari
50c889808a Merge mozilla-central into mozilla-inbound 2012-03-14 13:40:34 -04:00
Blake Kaplan
7a4eeff601 Bug 727884 - Make nsWrapperCache::WrapObject take a JSObject scope instead of XPCWrappedNativeScope. r=peterv 2012-03-14 16:25:40 +01:00
Johnny Stenback
7baa140a51 backout Bug 679971 - remove Navigator.taintEnabled() 2012-01-05 18:24:10 +02:00
Nicholas Nethercote
4ecf193683 Bug 713799 - Rearrange the "window-objects" sub-tree in about:memory to make per-tab memory usage more obvious. r=jst.
--HG--
extra : rebase_source : f4e9407ad9a5c20ae8523d2ec087b4ee99c43877
2012-03-12 23:00:18 -07:00
Doug Turner
e323518614 Bug 733652 - Remove geolocation address handling (v2). Little adoption, costly implementation r=jdm 2012-03-08 22:16:25 -08:00
Ed Morley
12222d2d31 Backout 8b74d5ae78c3 & c619bbb2951f (bug 734391), 772c994fa869 (bug 734324), fd23ff0f9dd1 (bug 734325), d1e037a9390e (bug 733653), 3a7bf79b5b2d (bug 733650) & 9d9392fce538 (bug 733652) for OS X M1 & M3 orange 2012-03-13 22:29:29 +00:00
Terrence Cole
620f254a87 Bug 531396 - Expose detailed GC timing information API; r=smaug,billm
Extensions such as MemChaser would really like an easier to parse and more
complete record of GC events than what can be gleaned from the message console.
This patch adds GC and CC observer messages formatted as JSON containing
detailed statistics.
2012-03-05 15:33:24 -08:00
Doug Turner
d89616f66d Bug 733652 - Remove geolocation address handling (v2). Little adoption, costly implementation r=jdm 2012-03-08 22:16:25 -08:00
Peter Van der Beken
c3b954ffff Add new DOM binding for SVG list classes. r=jst.
--HG--
extra : rebase_source : ce84f9457d7b9a14a0a65db5c643938d0e0e05bc
2011-08-22 11:14:13 +02:00
Peter Van der Beken
96b0afb0da Fix for bug 734508 (Add new DOM binding for SVG list classes). r=jst.
--HG--
extra : rebase_source : c32d2fd124093ae437f000655bba7f3a5f17d99d
2011-08-22 11:14:13 +02:00
Peter Van der Beken
7d36526803 Backout 790be8926d50 to fix commit message
--HG--
extra : rebase_source : 930b7802b35784ef5d70ed359d5d9932013ad62d
2012-03-12 21:13:23 +01:00
Jacob Holzinger
acfe99c129 Bug 696242 - Convert NS_RegisterStaticAtoms and nsCSSScanner::ReportUnexpectedParams to take an array-reference rather than a pointer and length, making it impossible to pass a pointer/length that are inconsistent. r=jwalden
--HG--
extra : rebase_source : 882b5b4d500b1fa242c0a3cfa3084e4171cbaa9d
2012-03-08 18:22:57 -08:00
Matt Brubeck
465b97cf40 Merge mozilla-central to mozilla-inbound 2012-03-08 16:27:40 -08:00
Olli Pettay
4d4b25de9e Bug 730891, event ctor for StorageEvent, r=sicking,kyle 2012-03-08 23:27:05 +02:00
Rob Campbell
b13d39e0b9 merge fx-team to m-c 2012-03-08 10:30:11 -04:00
Bill McCloskey
1a94b8704e Bug 730853 - Make sure we occasionally CC with lots of incremental GCs (r=smaug,mccr8) 2012-03-08 15:37:13 -08:00
Gregor Wagner
342cbbae2a Bug 733599 - mozContacts should use DOMRequestIpcHelper. r=fabrice 2012-03-07 13:45:24 -08:00
Kan-Ru Chen
255811e424 Bug 697132 - Implement wakelock interfaces. r=jlebar 2012-03-07 12:03:25 +01:00
Bobby Holley
e6b5d5e506 Bug 733606 - Only call FinishInitForWrappedGlobal when we just created a global. r=mrbkap
Without this patch, we call the above when restoring things out of the bfcache, which is bad. It must be called exactly once.
2012-03-08 09:33:30 -08:00
Daniel Holbert
3f2d277287 Bug 732877: Remove no-longer-used variable 'oldPrincipal' from nsGlobalWindow.cpp. r=jst 2012-03-08 13:06:38 +01:00
Fabrice Desré
1cb9507de7 Bug 720415 - update navigator.mozApps m-c implementation - DOM + repo [r=gwagner] 2012-03-06 11:50:58 -08:00
Tim Taubert
71e4bec105 Bug 731726 - Moving the parentNode of a focused DOM node does not remove the node's focus ring; r=Enn 2012-03-05 20:59:50 +01:00
Justin Lebar
d77dae5390 Bug 725796 - Make window.{top,parent,frameElement} respect <iframe mozbrowser>. r=bz 2012-03-04 11:02:00 -05:00
Aryeh Gregor
dbb888ac63 Bug 711047 Part 2 - Remove RangeException in favor of DOMException. r=sicking 2012-03-01 13:35:48 -05:00
Bobby Holley
87d7f5f353 Bug 720580 - Do the last bit of wrapped global initialization once the dust has settled. r=mrbkap 2012-03-05 15:22:45 -08:00
Bobby Holley
ccb745bc93 Bug 720580 - Stop passing aExtraPtr to InitClassesWithNewWrapedGlobal. r=mrbkap
We only ever pass null here anyway, and this whole infrastructure is going away real soon now.
2012-03-05 15:22:44 -08:00
Bobby Holley
2cb54e998b Bug 720580 - Remove unnecessary aIID parameter from nsIXPConnect::InitClassesWithNewWrappedGlobal. r=mrbkap 2012-03-05 15:22:44 -08:00
Bobby Holley
f43e9eb936 Bug 720580 - Introduce a flag for global natives and assert that we have it. r=mrbkap 2012-03-05 15:22:44 -08:00
Andrew McCreight
7c84ed2c56 Bug 728460, part 2: remove childless nodes in slice before CC. r=smaug 2012-03-05 13:48:33 -08:00
Ed Morley
d27ab2302c Backout afeafc02c1de, dfae37833c9b & f9f51c726fa7 (bug 729940 parts 1-3) for talos regressions 2012-03-05 15:22:28 +00:00
Eric Chou
8f17971cf6 Bug 729991: fix followup problems of bug 713116, r=ben 2012-03-04 19:54:01 -08:00
Justin Lebar
e1a9198917 Bug 729940 - Part 3: Stop using crappy hash functions in Gecko. r=bz 2012-03-04 15:58:06 -05:00
Justin Lebar
8f94cc1764 Back out bug 729940 (a108aee:d75775d) due to 32-bit red. 2012-03-04 14:20:34 -05:00