Commit Graph
45 Commits
Author SHA1 Message Date
Michael Kaply 8702aa26dd Bug 1332562 - OMA Downloads should go to the system Download directory. r=snorp
MozReview-Commit-ID: 48fGzGYBoS6
2017-02-23 12:27:43 -06:00
Jan Henning efd0e8af79 Bug 1305027 - Choose button order in the download app chooser depending on the Android version we're running on. r=sebastian
MozReview-Commit-ID: ItNYtoX8VEX
2017-01-02 21:46:21 +01:00
Jim Chen 5a3f21320a Bug 1321418 - Use GekcoBundle events in GeckoApp/BrowserApp; r=snorp r=sebastian r=gbrown
Bug 1321418 - 1. Use GekcoBundle events in GeckoApp; r=snorp r=sebastian

Switch GeckoApp to using GeckoBundle events everywhere. UI or Gecko
events are used if the event requires the UI or Gecko thread,
respectively, and background events are used for all other events.

There are changes to some other Java classes, such as SnackbarBuilder
and GeckoAccessibility, due to the switch to GeckoBundle.

For "Snackbar:Show", we need the global EventDispatcher because the
event can be sent to both GeckoApp and GeckoPreferences. Howveer, we
only want one listener registered at the same time, so we register and
unregister in GeckoApp's and GeckoPreferences's onPause and onResume
methods.

Bug 1321418 - 2. Use appropriate JS EventDispatcher to send GeckoApp events; r=snorp r=sebastian

Change JS code that sends events to GeckoApp to use either the global
EventDispatcher or the per-window EventDispatcher.

"Session:StatePurged" is not used so it's removed. "Gecko:Ready" in
geckoview.js is not necessary because it's only used for GeckoApp, so
it's removed from geckoview.js.

Bug 1321418 - 3. Use GeckoBundle events in BrowserApp; r=snorp r=sebastian

Switch BrowserApp to using GeckoBundle events, in a similar vein as
GeckoApp. UI or Gecko events are used if the event handlers required UI
or Gecko thread, respectively, and background events are used for all
other events.

Some other Java classes also have to be modified as a result of
switching to GeckoBundle.

Bug 1321418 - 4. Use global EventDispatcher to send BrowserApp events; r=snorp r=sebastian

Change JS code that sends events to BrowserApp to use the global
EventDispatcher instead of "Messaging".

Bug 1321418 - 5. Update usages of events in tests; r=gbrown

Update cases where we use or wait for events in tests.
2016-12-09 12:32:45 -05:00
Jan Henning d8cbac133b Bug 1270543 - Part 2: Enable choosing an app by double tapping in the download prompt. r=liuche
This tells the app chooser dialog that appears when downloading a file to use the "Just once" button when two successive taps in a row on the same app have been detected.

MozReview-Commit-ID: Iejs1ROvt6n
2016-05-05 19:01:05 +02:00
Sebastian Kaspari ed9aa94543 Bug 1258328 - HelperAppDialog: Replace deprecated toast API with Snackbars.jsm. r=grisha
MozReview-Commit-ID: 2WPNo9iGHu4
2016-03-29 13:18:12 +02:00
Sebastian Kaspari 31a98dc29f Bug 1253684 - Introduce preference for forwarding OMA downloads to Android's download manager. r=margaret
MozReview-Commit-ID: u9j3CGex2q
2016-03-10 10:51:25 +01:00
Christoph Kerschbaumer c07777b6a2 Bug 1254308 - Remove SEC_NORMAL from mobile/. r=sicking
MozReview-Commit-ID: 9YNs4sdI9V0
2016-03-07 14:27:19 -08:00
Sebastian Kaspari 3fa68f3060 Bug 1240710 - Pick (temporary) download directory depending on whether permission has been granted. r=nalexander,paolo,jchen
As soon as the user clicks on a link to download a file Gecko will start the download - even before prompting the
user. This led to problems when the user hadn't granted the permission to write to the downloads directory yet. The
download would fail even though the user (later) accepted the permission.

With this patch we will start the download to the app's cache directory (only if we do not have the permission) and
prompt the user. As soon as the user has accepted the permission the download will be moved to the public downloads
directory (even while still downloading). If the permission is denied the download will be cancelled.

After the permission has been granted all subsequent downloads will start writing to the downloads directory
directly.


MozReview-Commit-ID: CCqk9h7Sxor
2016-02-18 15:11:42 +00:00
ISHIKAWA, Chiaki 9ee69e3ce0 Bug 1248252 - Improper outdated octal constant syntax in M-C tree. Use '0o' prefix. r=dao
Be warned. Do not attemp to change the .js "test" source code in ./js
They are meant to check

 - the outdated 0666 octal constant is still parsed correctly,
 - the outdated 0666 octal constant raises syntax error flag
   in strict mode, etc.

So leave them alone.
2016-02-15 08:57:00 +01:00
Sebastian Kaspari 2c31436cfe Bug 1219078 - Delegate OMA downloads to external app (if available). r=mfinkle
This patch will prevent Firefox from downloading OMA download descriptors on
its own. Instead it will prompt to complete the action with an external app
if available. An error will be shown if no external app can handle the download.
2015-12-17 14:49:37 +01:00
Sebastian Kaspari c1987e8756 Backed out changeset 327f0142e1a7 (bug 1219078) 2016-01-22 14:31:37 +01:00
kartikey0303 1716f43d03 Bug 1234131 - Remove unused method, deleted the method getNativeWindow(). r=skaspari 2015-12-26 17:38:37 +05:30
Sebastian Kaspari 2fc5885aa1 Bug 1233440 - Replace toast in HelperAppDialog.js with Snackbar. r=mcomella 2015-12-17 17:33:52 +01:00
Sebastian Kaspari f8a1e27cd3 Bug 1219078 - Delegate OMA downloads to external app (if available). r=mfinkle
This patch will prevent Firefox from downloading OMA download descriptors on
its own. Instead it will prompt to complete the action with an external app
if available. An error will be shown if no external app can handle the download.
2015-12-17 14:49:37 +01:00
Dylan Roeh 80319a0c72 Bug 1193027 - Disables all downloads of file:// urls on Android. r=snorp 2015-09-08 15:41:36 -05:00
Michael Comella 30ad96f008 Bug 1177774 - Import ContentAreaUtils. r=margaret 2015-06-26 14:22:39 -07:00
Kartikaya Gupta 64f6bbcc18 Bug 1140815 - Don't leave .part files lying around after a preferred helper app is used to process a URL. r=paolo,mfinkle 2015-03-08 21:35:39 -04:00
Ganesh Sahukari 89b61a06c1 Bug 1114594 - Remove promptForSaveToFile in favor of promptForSaveToFileAsync. r=paolo 2015-01-27 16:07:20 -05:00
Ryan VanderMeulen feab374f8c Backed out changeset dd417504346b (bug 1114594) for crashes.
CLOSED TREE
2015-01-27 15:17:39 -05:00
Ganesh Sahukari fcdc7673f5 Bug 1114594 - Remove promptForSaveToFile in favor of promptForSaveToFileAsync. r=paolo 2015-01-20 10:11:00 +00:00
Carsten "Tomcat" Book c5e92c4e18 Backed out changeset d34e894a9ea2 (bug 1114594) for xpcshell and m5 test failures 2015-01-26 15:01:16 +01:00
Ganesh Sahukari 9071495fc0 Bug 1114594 - Remove promptForSaveToFile in favor of promptForSaveToFileAsync. r=paolo 2015-01-20 10:11:00 +00:00
Christoph Kerschbaumer 5868d5b1d7 Bug 1087737: Make JS callers of ios.newChannel call ios.newChannel2 in mobile/ (r=wesj) 2014-10-24 15:01:55 -07:00
Paolo Amadini 5231039b25 Bug 931776 - Use Downloads.jsm functions to get download directories in Firefox for Android. r=margaret 2014-12-24 18:10:04 +00:00
Richard Newman 5e73e5f46e Bug 1074505 - Use a distinct error message for blocked downloads. r=wesj 2014-10-08 11:21:02 -07:00
Richard Newman 1108b725b9 Bug 1050690. r=wesj 2014-08-08 13:33:02 -07:00
Mark Finkle 3d74530c83 Bug 989577 - Lazy load Prompt.jsm everywhere r=wesj 2014-07-29 15:48:40 -04: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
Wes Johnston 88785f19f9 Bug 1001129 - Allow setting a default selected item in grid views. r=mfinkle 2014-05-21 12:16:26 -07:00
Richard Newman c8be9ebbc6 Bug 945429 - Remove log output. r=trivial 2014-03-12 09:49:48 -07:00
Richard Newman 437d4e1321 Bug 945429. r=wesj 2014-03-10 16:12:52 -07:00
Bill Gianopoulos dbec056eb3 Bug 931469 - Remove redundant app.launch(aLauncher.source). r=wesj 2013-10-27 15:08:36 -04:00
Wes Johnston 1b4f775c28 Bug 780379 - Add buttons to download prompts. r=mfinkle 2013-10-21 08:34:27 -07:00
Wes Johnston afff32ee03 Bug 780379 - Show a custom intent chooser for downloads that can be downloaded by an external app. r=mfinkle 2013-10-17 16:30:47 -07:00
Wes Johnston 86a06b0251 Bug 690252 - Default to saving files. r=mfinkle 2013-09-12 15:46:35 -07:00
Marco Castelluccio d9d4f742f8 Bug 838210 - Don't use file.exists() when not necessary (mobile). r=bnicholson, r=mfinkle 2013-08-27 08:50:22 -04: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
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
Mark Finkle ee494bc7ac Bug 741430 - Use new icons for status alert notifications r=sriram 2012-05-24 23:41:57 -04:00
Gervase Markham cb6a072c2a Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Matt Brubeck cffdad2854 Bug 737582 - Remove redundant Android theme files [r=mfinkle] 2012-03-20 14:57:12 -07:00
Doug Turner 91813a81fd Bug 701833 - hg move /mobile to /mobile/android r=mfinkle CLOSED TREE 2011-11-17 09:24:55 -05:00