Commit Graph

66 Commits

Author SHA1 Message Date
Bobby Holley
3f9dacb205 Bug 1082450 - Rip exposedProps out of Social API code. r=Gijs 2014-10-15 15:05:08 +02:00
Jim Blandy
39dc0c6097 Bug 914753: Make Emacs file variable header lines correct, or at least consistent. DONTBUILD r=ehsan
The -*- file variable lines -*- establish per-file settings that Emacs will
pick up. This patch makes the following changes to those lines (and touches
nothing else):

 - Never set the buffer's mode.

   Years ago, Emacs did not have a good JavaScript mode, so it made sense
   to use Java or C++ mode in .js files. However, Emacs has had js-mode for
   years now; it's perfectly serviceable, and is available and enabled by
   default in all major Emacs packagings.

   Selecting a mode in the -*- file variable line -*- is almost always the
   wrong thing to do anyway. It overrides Emacs's default choice, which is
   (now) reasonable; and even worse, it overrides settings the user might
   have made in their '.emacs' file for that file extension. It's only
   useful when there's something specific about that particular file that
   makes a particular mode appropriate.

 - Correctly propagate settings that establish the correct indentation
   level for this file: c-basic-offset and js2-basic-offset should be
   js-indent-level. Whatever value they're given should be preserved;
   different parts of our tree use different indentation styles.

 - We don't use tabs in Mozilla JS code. Always set indent-tabs-mode: nil.
   Remove tab-width: settings, at least in files that don't contain tab
   characters.

 - Remove js2-mode settings that belong in the user's .emacs file, like
   js2-skip-preprocessor-directives.
2014-06-24 22:12:07 -07:00
David Rajchenbach-Teller
11dde286a5 Bug 1019662 - Report errors when we can't send frameworker:connect. r=flo 2014-06-04 03:23:00 -04:00
Florian Quèze
b5a6179e98 Bug 930641 - Remove the social.allowMultipleWorkers preference, r=mixedpuppy. 2013-12-18 16:50:05 +01:00
Shane Caraveo
e522afe411 Bug 906839 - enable by default social.allowMultipleWorkers - update tests to work pref'd on and fix a missing update to the worker state, r=markh. 2013-10-31 10:59:35 +11:00
Ryan VanderMeulen
e2bc1b38f2 Backed out changesets cf64922197ca, 3ae60bdf3fef, and 68960c6bdce3 (bug 906839) for ASAN mochitest-bc perma-orange. 2013-11-04 15:54:55 -05:00
Shane Caraveo
e80e1bf943 Bug 906839 - enable by default social.allowMultipleWorkers - update tests to work pref'd on and fix a missing update to the worker state, r=markh. 2013-10-31 10:59:35 +11:00
Kyle Huey
85bce248fb Bug 932867 - FrameWorker should remove the iframe not the browser. r=smaug CLOSED TREE 2013-10-30 10:56:55 -07:00
Ed Morley
988d3e9cfd Backed out changeset 9eaf00ec189a (bug 906839) on suspicion of increasing the failure rate of browser_frameworker.js 2013-10-24 18:51:16 +01:00
Shane Caraveo
45e1e046c3 Bug 906839 - enable by default social.allowMultipleWorkers - update tests to work pref'd on and fix a missing update to the worker state, r=markh. 2013-10-24 15:53:36 +02:00
Mark Hammond
c471440cac Bug 910566 - handle remote frameworker process crashes. r=felipe 2013-10-24 15:22:16 +11:00
Mark Hammond
55e04c6b07 Bug 899908 - remove ability for a social worker to reload and reconnect ports. r=mixedpuppy 2013-09-11 16:10:34 +10:00
Mark Hammond
3d4714c4ef Bug 913950 - close all existing ports on worker termination. r=mixedpuppy 2013-09-10 10:31:15 +10:00
Mark Hammond
fff4439a37 Bug 891218 (part 2) - host the social Frameworker in a remote browser. r=felipe 2013-08-29 09:45:58 +10:00
Mark Hammond
6719d4c149 Bug 896860 - Allow social FrameWorkers to create real Workers. r=gavin 2013-08-02 10:30:50 +10:00
Mark Hammond
b3fbeda4fd Bug 891516 - prevent use of data: URLs in social frameworkers. r=mixedpuppy 2013-07-11 17:50:54 +10:00
Gavin Sharp
839f8dbaca Bug 879658: don't expose localStorage to FrameWorker for non-whitelisted social providers, r=mixedpuppy 2013-06-17 17:25:06 -04:00
Matthew Noorenberghe
e2b938dfa1 Bug 759964 - Part 2 - Set allowMedia = false in social and identity code to address TODO comments. r=gavin 2013-03-29 14:52:59 -07:00
Shane Caraveo
64a550685f bug 880741 add indexeddb to frameworker, r=gavin 2013-06-07 11:25:15 -07:00
Shane Caraveo
6d859be038 bug 872470 - add EventSource to frameworker, r=markh, sr=gavin 2013-05-16 13:16:17 +02:00
Mark Hammond
2dbe9f089f Bug 860176 - always remove document-element-inserted observer from frameworkers. r=jaws 2013-04-17 11:29:03 +10:00
Gavin Sharp
e392d3ccd8 Bug 817448: remove MozBlobBuilder from FrameWorker API, r=mixedpuppy 2013-03-06 23:43:56 -08:00
Nanci Bonfim
5f477d0905 Bug 800278 - FrameWorker.ports using Map instead of object. r=jaws 2013-02-24 02:36:03 -03:00
Bobby Holley
e70124ca8e Bug 841067 - Bind methods before injecting them in FrameWorker. r=markh
Otherwise, they won't get invoked with the proper |this|.
2013-02-14 10:40:15 +01:00
Jonathan Kew
f9c318f114 bug 837729 - don't create text-runs for JS source code loaded in a hidden-window iframe, and remove source text from the DOM as soon as we've extracted it. r=gavin,markh 2013-02-05 09:18:15 +00:00
Shane Caraveo
3764b4d6a8 Bug 832943 keep explicit reference to our error handling web listeners to avoid unexpected gc, r=felipe 2013-01-26 12:07:39 -08:00
Shane Caraveo
6d391998e9 Bug 809694: implement support for multiple social providers in the front-end, including basic UI to switch between them. Portions of the patch by Gavin Sharp <gavin@gavinsharp.com>, r=gavin, r=markh 2012-12-07 20:13:27 -08:00
Mark Hammond
2351225afa Bug 788368 - Port messages will no longer be dropped if port is closed before other side connects. r=felipe 2012-12-11 11:34:09 +11:00
Shane Caraveo
43a673f758 Bug 811102: fix two bugs with worker reloading, r=gavin/markh, tests by markh/gavin
The first bug is that we shouldn't remove the worker from the worker cache when reloading, because it's not actually being removed. terminate() already does this for us in the case where it is needed.
The second bug is that we should set .loaded=false as soon as we clear the ports on a worker we're about to reload, because otherwise the creation of a new port can occur between the reload triggering and the re-initialization, and those ports would get lost.
2012-11-12 17:50:51 -08:00
Kyle Huey
76a2832eea Bug 798491: Add an option to stick all chrome JSMs/JS components in the same compartment. r=mrbkap,philikon 2012-10-31 09:13:28 -07:00
Vicamo Yang
ea784216bd Backout 67cb43bb8865: Breaks B2G Marionette 2012-10-31 16:35:11 +08:00
Shane Caraveo
bf7c5d9438 Bug 804910 - Part 1. Check for worker load failures and send a notification in case of errors. r=felipe 2012-10-29 21:57:07 -07:00
Kyle Huey
c82a2d6fea Bug 798491: Add an option to stick all chrome JSMs/JS components in the same compartment. r=mrbkap,philikon 2012-10-30 12:28:11 -07:00
Ed Morley
c34b7d9377 Backout a145ded68994, e0cf397089ec & 1545e91c658e (bug 798491) for bustage on a CLOSED TREE 2012-10-30 17:02:31 +00:00
Kyle Huey
8078ab712e Bug 798491: Add an option to stick all chrome JSMs/JS components in the same compartment. r=mrbkap,philikon 2012-10-30 08:26:12 -07:00
Nanci Bonfim
eea8a3b7aa Bug 800275 - Decreasing assymptoptic complexity of two loops from n^2 to n by removing the Array#shift usage, r=jaws 2012-10-17 22:01:23 -03:00
Mark Hammond
7fe95249d5 Bug 790201 - better cleanup of social worker sandbox. r=felipe 2012-10-18 16:42:40 +11:00
Shane Caraveo
ab6123721e Bug 785920 - reload for workers. r=gavin.sharp 2012-10-12 16:58:50 -07:00
Ekanan Ketunuti
4934f9526b Bug 800281 - Remove usage of MozWebSocket in FrameWorker.jsm. r=jaws 2012-10-12 10:09:58 +07:00
Mark Hammond
c85bdfc509 Bug 788405 - variables created via importScripts should be globals. r=gavin 2012-09-12 12:48:38 +10:00
Phil Ringnalda
6914fdb530 Back out df2ddcab7143 (bug 788100), d9e96444da92 (bug 788405), 092a8add22fd (bug 787511) for xpcshell bustage 2012-09-11 20:46:34 -07:00
Mark Hammond
e70b753956 Bug 788405 - variables created via importScripts should be globals. r=gavin 2012-09-12 12:48:38 +10:00
Gavin Sharp
c3500d3010 Bug 755122 - remove bufferToArrayHack from frameworker. r=markh 2012-09-04 10:27:49 +10:00
Mark Hammond
933c966f23 Bug 784508 - Stop using setIsBrowserElement in Frameworker.jsm. r=gavin 2012-09-04 10:26:57 +10:00
Shane Caraveo
00dfbd3731 Bug 774003: let social workers request their cookies via the Social API, r=gavin 2012-07-25 15:26:39 -07:00
Gavin Sharp
c1734a0bf0 Bug 773351: hook up the mozSocial API to social provider windows, r=markh 2012-07-13 13:51:35 -07:00
Mounir Lamouri
834200c00f Bug 775408 - Rename nsIDocShell::SetIsBrowser() to SetIsBrowserElement(). r=jlebar 2012-07-21 17:39:41 -07:00
Mounir Lamouri
56befaec17 Bug 774957 - Update nsDocShell jazz so distinction between browser and app frame is clearer. r=jlebar sr=sicking 2012-07-18 22:26:21 -07:00
Steve Fink
0c0283faf7 Backed out changeset 060a9d9fc1c6 from a CLOSED TREE since it seems to depend on afc1cf222996 or 1bafff5720a8 that I just backed out 2012-07-19 15:45:27 -07:00
Mounir Lamouri
dccfcd2e98 Bug 774957 - Update nsDocShell jazz so distinction between browser and app frame is clearer. r=jlebar sr=sicking 2012-07-18 22:26:21 -07:00