Commit Graph
34 Commits
Author SHA1 Message Date
Jim Chen dc092a684f Bug 1393128 - 4. Add window to all Prompt usages; r=snorp
Add a `window` parameter to all Prompt.jsm usages, so the prompt will
appear in the correct window. This includes HelperAppDialog.js, which
was preventing the download chooser dialog from appearing in a custom
tab window.

The patch also moves `getActiveDispatcher` from GeckoViewPermission to
GeckoViewUtils, and makes several improvements to `getChromeWindow` and
`getDispatcherForWindow`. Prompt.jsm now uses the active
WindowDispatcher in the fallback scenario where we don't have a window.

MozReview-Commit-ID: KpAFMCZzQZp
2017-09-18 15:45:34 -04:00
Eugen Sawin 7c3471571b Bug 1399518 - [1.1] Check for NativeWindow features to identify the window type for prompt handling. r=jchen 2017-09-13 20:29:30 +02:00
Jim Chen d8ec29a02f Bug 1388724 - 2. Add universal DoorHanger API; r=droeh
Add a DoorHanger API that doesn't rely on browser.js/NativeWindow, so we
can use doorhangers for custom tabs and PWA. The API falls back to the
old NativeWindow implementation when dealing with the brower.js window.

MozReview-Commit-ID: 6GksKbLaNAp
2017-08-18 14:27:30 -04:00
Dan Banner 9300a9f43f Bug 1385815 - Enable whitespace related ESLint rules for mobile/android. r=sebastian
MozReview-Commit-ID: 6B79zhklsYR
2017-08-01 16:34:11 +01:00
Jim Chen 8820665a21 Bug 1367081 - Make PromptService usable from GeckoView custom tabs; r=droeh
Make PromptService and Prompt.jsm not depend as much on BrowserApp and
the main Fennec window, so it can be used from a GeckoView-based custom
tabs Activity. This approach is used because it involves a lot less work
than trying to implement a PromptDelegate for Fennec.

MozReview-Commit-ID: AEH0HgAOx2S
2017-06-01 15:07:16 -04:00
Jim Chen 813eafff12 Bug 1319496 - 3. Convert prompts to BundleEventListener; r=sebastian
Convert prompts to use BundleEventListener and GeckoBundle.

DefaultDoorHanger.setOptions accepts a JSONObject argument, but if we
converted it to GeckoBundle, it would involve a lot of extra changes in
the other doorhanger code. So this patch adds GeckoBundle.fromJSONObject
and converts JSONObject to GeckoBundle within
DefaultDoorHanger.setOptions. In the future, another patch would convert
all doorhanger code to use GeckoBundle instead of JSONObject.
2016-11-29 12:25:53 -05:00
Jan Henning 0b7a9433f1 Bug 1270543 - Part 1: Enable double tapping to select an action in the prompt dialog. r=liuche
On newer Android versions, double tapping an entry in the app chooser is equivalent to tapping it once and selecting "Just once". To enable this functionality for our own app chooser when downloading a file, this patch enables passing a button index to the prompt dialog which will be chosen by default if a double tap has been detected.

To do this, we track the input value we receive in onChange. If we receive the same value twice in a row and a button has been configured, we close the dialogue and pass the result with that button back to the caller.

MozReview-Commit-ID: EVs2x3OtHmB
2016-05-17 22:52:59 +02:00
Abhishek Potnis a6379a1668 Bug 1243930 - Removed redundant statement of |obj.icon| assignment in |_setListItems|. r=mcomella 2016-02-05 23:32:14 +05:30
Shu-yu Guo 37989840cd Bug 1202902 - Mass replace toplevel 'let' with 'var' in preparation for global lexical scope. (rs=jorendorff) 2015-09-15 11:19:45 -07:00
Mantaroh Yoshinaga a5f7be9178 Bug 1177510 - Add max/min mechanism to DateTimePicker.java in order to prevent inputting invalid Date values. r=wesj 2015-07-22 03:26:00 -04:00
Brian Nicholson b285ec6d41 Bug 1055144 - Change callback-based sendMessageToJava calls to Messaging.sendRequestForResult. r=wesj 2014-09-02 15:53:30 -07:00
Wes Johnston f8b1904102 Bug 732169 - Associate prompts with tabs. r=lucasr 2014-08-14 23:17:04 -07: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
Brad Lassey 63b8df93e4 bug 928096 - UI for tab streaming, thumbnails in prompt r=mfinkle,wesj 2014-03-31 21:59:41 -04:00
Brian Nicholson ef962b5a58 Bug 989098 - Use wrapper object to pass generic objects in sendResponse. r=wesj 2014-03-28 15:03:20 -07:00
Wes Johnston 1a086ee220 Bug 942270 - Use tabs for prompts with multiple contexts. r=bnicholson,margaret 2014-03-26 10:18:02 -07:00
Wes Johnston ca703d4cad Bug 942270 - Support quickshare in context menus. r=bnicholson 2014-03-26 10:18:01 -07:00
Wesley Johnston 19b31bd382 Bug 959742 - Close dialogs when inputs change if there are no buttons on the dialog. r=bnicholson 2014-02-06 16:26:00 -08:00
Wes Johnston d710e69e6a Bug 974286 - Remove mSelected from PromptListAdapter. r=bnicholson 2014-02-25 08:55:14 -08:00
Wes Johnston c89afdba0a Bug 946344 - Remove GeckoEventResponder. r=mfinkle,blassey,kats 2014-02-11 09:16:00 -08:00
Wes Johnston d03b22aa32 Bug 875750 - Provide a basic color picker for Android. r=mfinkle 2013-12-11 15:51:01 -08:00
Mark Finkle 5a85f4e8b8 Bug 928756 - [geckoview] Convert prompt-based actions into separate GeckoView endpoints r=bnicholson 2013-11-06 17:59:11 -05:00
Wes Johnston e9f85913a6 Bug 920170 - Allow adding a grid of icons to prompts. r=margaret 2013-10-15 08:53:16 -07:00
Mark Capella 672a8ca778 Bug 770101 - about:config should label integer fields correctly so keyboard uses numerical mode, r=wesj 2013-09-17 23:54:48 -04:00
Nathan Froyd 57109c33a5 Bug 902938 - part 2 - update android code to use Services.androidBridge; r=mfinkle 2013-08-08 11:05:48 -04:00
Chenxia Liu 0a4cf80d23 Bug 888553 - Remote Debugging Part 2: Bring browser app to front on remote connection. r=lucasr 2013-07-31 15:38:48 -07:00
Margaret Leibovic d704ebf8ed Bug 883287 - Add null checks to Prompt.jsm constructor. r=wesj 2013-06-17 13:06:56 -04:00
Wes Johnston 515afaf34a Bug 878848 - Use Prompt.jsm for NSS prompts. r=kats 2013-06-12 09:14:58 -07:00
Wes Johnston bbca00f66d Bug 872143 - Make InputWidgetHelper use async prompts. r=mfinkle 2013-06-03 09:20:44 -07:00
Wes Johnston f85cb8f028 Bug 877467 - Use a flat list when showing prompts. r=mfinkle 2013-06-04 14:38:01 -07:00
Ryan VanderMeulen 1f015d1d22 Backed out 7 changesets (bug 872147, bug 872143, bug 877467, bug 877200, bug 870063, bug 872149) for robocop-2 failures on a CLOSED TREE.
Backed out changeset 3a1e8e7ac07e (bug 870063)
Backed out changeset 8904d2bf5da0 (bug 877200)
Backed out changeset 80455a25276b (bug 872149)
Backed out changeset c3b5567f1271 (bug 872147)
Backed out changeset d3106edd4a5a (bug 872143)
Backed out changeset 4fd2ae88da98 (bug 870063)
Backed out changeset 1797dc46e862 (bug 877467)
2013-06-03 15:04:51 -04:00
Wes Johnston f631c381aa Bug 872143 - Make InputWidgetHelper use async prompts. r=mfinkle 2013-06-03 09:20:44 -07:00
Wes Johnston b294946a58 Bug 877467 - List API for prompt.jsm should take a flat list. r=mfinkle 2013-06-03 09:20:43 -07:00
Wes Johnston a3580a1aa2 Bug 875119 - Create a Prompt.jsm to simplify advanced interactions with the native prompts. r=mfinkle 2013-05-28 16:36:19 -07:00