Commit Graph
886 Commits
Author SHA1 Message Date
Atanas Minkov 7d646d59e2 Bug 1386990 - "change" event listener no longer required for tracking form input in session store r=JanH
MozReview-Commit-ID: 1MhuLbvInl6
2017-10-01 03:26:58 +03:00
Kyle Machulis 4dae9895ed Bug 1403795 - Remove nsIDOMHTMLButtonElement; r=bz
Removes the XPCOM interface for nsIDOMHTMLButtonElement, replacing it
with binding class usage.

MozReview-Commit-ID: CzqRb7lI28W
2017-09-29 11:57:19 -07:00
Jim Chen 6730afafc3 Bug 1385124 - Close tab when new tab redirects to external app; r=sebastian
When a site opens link in a new tab that redirects to an external app,
we should close the new (empty) tab and return to the previous page.

MozReview-Commit-ID: KXWA2d26RBh
2017-09-27 16:47:13 -04:00
Wes Kocher 0960ec2e95 Merge m-c to inbound, a=merge
MozReview-Commit-ID: IsbKCdZU2Ui
2017-09-26 17:14:31 -07:00
Dylan Roeh 2601456afb Bug 1399504 - Pass more information to Intent:OpenNoHandler callback so that fallback urls may always be handled correctly. r=jchen 2017-09-26 13:46:27 -05:00
Andrew Swan e462e601e7 Bug 1392176 Implement prompts for browser.permissions.request() on Android r=kmag,sebastian
MozReview-Commit-ID: Dufy1pRFtgK
2017-09-12 19:06:45 -07:00
Jan Henning 59718edf82 Bug 1391421 - Part 3 - Switch various places that can end up being user-visible to use Unicode domains. r=esawin,jwu
Amongst others, this includes some prompts, as well as various progress messages sent to the Java UI.

We also fix getTabWithURL to be able to find tabs regardless of whether the given URL to search is written in Punycode or with Unicode characters.

MozReview-Commit-ID: K7xhgz2IK2h
2017-09-14 18:55:09 +02:00
Jan Henning 7b65c8355a Bug 1391421 - Part 1 - Switch nsAndroidHistory to Unicode domains. r=esawin
MozReview-Commit-ID: FoxZhwdg4ao
2017-09-14 21:46:35 +02:00
Jim Chen fe94643b86 Bug 1400243 - 1. Use universal DoorHanger in LoginManagerPrompter; r=esawin
Use the universal DoorHanger API from Prompt.jsm to show the login
doorhanger from any window. Also, refactor parts of LoginManagerPrompter
to use Services.jsm if possible.

MozReview-Commit-ID: 3cnzeT0RNgR
2017-09-19 15:57:19 -04:00
Jim Chen 0b6141761d Bug 1400886 - Change BrowserCLH subscripts into modules; r=snorp
Change the subscripts (e.g. FormAssistant.js) that we load in BrowserCLH
into proper .jsm modules. This avoids the `defineLazyScriptGetter`
incompatibility mentioned in the bug, and when we turn on shared JSM
global, any memory advantage we get from using subscripts should not
matter anymore.

MozReview-Commit-ID: krSwANdtb5
2017-09-19 14:57:32 -04:00
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
Christoph Kerschbaumer 300b03d2e7 Bug 1400347 - Update test_ext_tabs_captureVisibleTab.html to comply with new toplevel data: URI navigation policy. r=smaug 2017-09-18 17:22:02 +02:00
Jim Chen fc2ba05a61 Bug 1367079 - 6. Fix testAccessibleCarets; r=me
Fix testAccessibleCarets and enable it for non-Nightly builds. r=me for
test changes.

MozReview-Commit-ID: EjNwzb5bETy
2017-09-14 17:50:58 -04:00
Jim Chen 4b3ff0f947 Bug 1367079 - 4. Move ActionBarHandler usage out of browser.js; r=snorp
Use ActionBarHandler in BrowserCLH.js instead of browser.js, so it can
handle text selection for all windows. Also update ActionBarHandler to
reflect the new usage and to support multiple windows.

MozReview-Commit-ID: G8sKu2XyAAG
2017-09-14 17:50:58 -04:00
Jim Chen 72191f0c41 Bug 1398409 - 2. Use event callback to communicate FormAssistPopup actions; r=sebastian
Use event callbacks instead of separate events to deliver
FormAssistPopup replies back to FormAssistant. This lets us better
handle having multiple FormAssistPopup instances across Fennec, custom
tabs, and PWAs.

FormAssistant._currentInputElement is removed because it does not allow
us to have multiple concurrent popups. Instead, we track the current
element through the event callback closure.
FormAssistant._currentInputValue is also removed for similar reasons,
and I don't think it was really necessary.

MozReview-Commit-ID: DdeMBGCxDou
2017-09-14 17:50:57 -04:00
Jim Chen 01a4fc38ae Bug 1398409 - 1. Move FormAssistant out of browser.js; r=sebastian
To support FormAssistPopup in custom tabs, we need to move the
FormAssitant object out of browser.js and into its own separate file.
BrowserCLH.h in turn loads FormAssistant.js when necessary.

MozReview-Commit-ID: 7CFQ9R16P4J
2017-09-14 17:50:57 -04:00
Jim Chen 4232922772 Bug 1367077 - 3. Move form fill event listeners out of browser.js; r=sebastian
Move the form fill event listeners out of browser.js and into
BrowserCLH.js, and update them to support chrome windows, so we can
handle form fill events for Fennec, custom tabs, and PWAs.

MozReview-Commit-ID: Fb5gWmGvxfE
2017-09-14 17:50:57 -04:00
Jim Chen 41024a8d34 Bug 1367077 - 2. Move PromptService startup to BrowserCLH; r=snorp
Use the BrowserCLH for PromptService startup, to consolidate startup
handling code and also to delay loading PromptService.

MozReview-Commit-ID: 25UgVH7wrrs
2017-09-14 17:50:54 -04:00
Jim Chen 6abb891f2d Bug 1367077 - 1. Move startup utility functions into GeckoViewUtils; r=snorp
Move `addLazyGetter` and `addLazyEventListener` utility functions from
GeckoViewStartup.js into GeckoViewUtils.jsm, so they can be used for
both Fennec and standalone GeckoView.

Also switch to "chrome-document-loaded" for loading
DownloadNotifications because that's later in the startup sequence.

MozReview-Commit-ID: 1caMtufkHGR
2017-09-14 17:50:54 -04:00
Bob Silverberg 4ac6021faa Bug 1381992 - Add some reader mode support to the tabs API, r=mixedpuppy
This adds two properties to the Tab object:

- isArticle indicates whether the document in the tab is likely able to be
  rendered in reader mode.
- isInReaderMode indicates if the document in the tab is being rendered in
  reader mode.

It also adds a toggleReaderMode() which toggles a tab into and out of reader mode.

There is also a new case in which tabs.onUpdated will fire. When the isArticle
status of a tab changes, an onUpdated event will fire with data {isArticle: boolean}.

MozReview-Commit-ID: AaAQ0V5qm2Z
2017-09-08 17:00:27 -04:00
Tomislav Jovanovic 2eda2f10a8 Bug 1394348 - Fix document_idle run_at timing r=kmag
MozReview-Commit-ID: FBPlw6CiUE2
2017-09-08 00:36:50 +02:00
Jim Chen e39d0a288f Bug 1394580 - 7. Follow-up to unpack fields in function signature; r=me
Unpack fields from the parameter object in the function signature
itself. r=me for trivial patch.

MozReview-Commit-ID: BeMPOlLgNcQ
2017-09-06 14:26:18 -04:00
Jim Chen 071704ec6e Bug 1394580 - 6. Use WindowEventDispatcher for prompt if available; r=jchen
MozReview-Commit-ID: 3vRXlb4HWYq
2017-09-05 21:26:32 -04:00
Jim Chen e79fffcf98 Bug 1394580 - 2. Add GeckoViewStartup to consolidate startup tasks; r=snorp
Add a GeckoViewStartup component to consolidate tasks performed during
GeckoView startup, such as adding lazy observers and event listeners.
This enables us to not load individual GeckoView modules such as
GeckoViewPermission and GeckoViewPrompt until they are actually needed.

MozReview-Commit-ID: IsaUGwBHKbs
2017-09-05 21:26:30 -04:00
Jim Chen 69533ad716 Bug 1394580 - 1. Only load AsyncPrefs for Fennec; r=esawin
Move AsyncPrefs initialization to inside browser.js to only load it for
Fennec. Also, delay initialization until later in startup.

MozReview-Commit-ID: 7gLaXA5UJud
2017-09-05 21:26:30 -04:00
Sebastian Hengst 71ecf62cf3 Backed out changeset b84fc40ed8c2 (bug 1394580) for eslint failure at mobile/android/modules/geckoview/Messaging.jsm:201: Missing space after *. r=backout 2017-09-05 21:53:24 +02:00
Sebastian Hengst b680259705 Backed out changeset 6c4c8b4e38cf (bug 1394580) 2017-09-05 21:51:30 +02:00
Sebastian Hengst 377e9aca2d Backed out changeset f069f3c69597 (bug 1394580) 2017-09-05 21:51:07 +02:00
Jim Chen 3f408fdf0a Bug 1394580 - 6. Use WindowEventDispatcher for prompt if available; r=jchen
MozReview-Commit-ID: BZJSvnNC3OS
2017-09-05 15:27:37 -04:00
Jim Chen 51d66a5d3e Bug 1394580 - 2. Add GeckoViewStartup to consolidate startup tasks; r=snorp
Add a GeckoViewStartup component to consolidate tasks performed during
GeckoView startup, such as adding lazy observers and event listeners.
This enables us to not load individual GeckoView modules such as
GeckoViewPermission and GeckoViewPrompt until they are actually needed.

MozReview-Commit-ID: IsaUGwBHKbs
2017-09-05 15:27:35 -04:00
Jim Chen 99db428e4a Bug 1394580 - 1. Only load AsyncPrefs for Fennec; r=esawin
Move AsyncPrefs initialization to inside browser.js to only load it for
Fennec. Also, delay initialization until later in startup.

MozReview-Commit-ID: 7gLaXA5UJud
2017-09-05 15:27:29 -04:00
Luca Greco f5ac764153 Bug 1396605 - Prevent duplicated Firefox for Android PageAction icons for a single extension. r=mixedpuppy
MozReview-Commit-ID: 1axv6vFXcCu
2017-09-04 21:09:58 +02:00
Sebastian Hengst 1b94cf976e merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: L5exd68pNSG
2017-09-05 11:40:49 +02:00
Tushar Saini (:shatur) 73569e52f3 Bug 1363014 - Implement browsingData.remove WebExtension API method on android. r=bsilverberg,mixedpuppy,sebastian
MozReview-Commit-ID: 2ipz1wqGpxc
2017-08-30 00:08:48 +05:30
Kris Maglione f9db85491d Bug 1396017: Redact window titles without the appropriate tabs permissions. r=mixedpuppy
MozReview-Commit-ID: 2QJYvJlqt9l
2017-09-01 12:20:10 -07:00
Jan Henning f2eeb6dd1a Bug 1396303 - Fix typo in variable declaration that breaks the download helper app dialogue. r=JanH
MozReview-Commit-ID: Kg24dBizlRf
2017-09-03 21:12:40 +02:00
Luca Greco 119fa4d49e Bug 1370333 - Add support for browserAction popup on Firefox for Android. r=mixedpuppy
MozReview-Commit-ID: Il6sUoMlLvX
2017-08-29 12:54:37 +02:00
Sebastian Hengst 150f2fb7bc merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: Gsw48p934sI
2017-09-02 10:54:44 +02:00
Luca Greco 8163494d0e Bug 1383160 - Fix Android pageAction popup behavior. r=mixedpuppy
MozReview-Commit-ID: 66PnjFv4IIx
2017-08-15 22:55:13 +02:00
Luca Greco fc0d4ba79f Bug 1394846 - Fix EventEmitter.decorate exception on Firefox for Android. r=mixedpuppy
MozReview-Commit-ID: DhaVpD1zcaS
2017-08-29 18:26:29 +02:00
Wes Kocher 9ab5e3b89f Merge m-c to inbound, a=merge
MozReview-Commit-ID: FusyUW1CQ4s
2017-09-01 16:33:28 -07:00
Kevin Jones bcccd72719 Bug 1377733 - Add discarded property to tabs.Tab on Android. r=zombie, r=kmag 2017-08-16 14:04:26 -06:00
Luca Greco 42b9b6462c Bug 1388098 - Fix Android options_ui on disable/enable addon. r=mixedpuppy
MozReview-Commit-ID: 4z4vJpDxzGB
2017-08-07 18:54:16 +02:00
Michael Kaply 203bc16492 Bug 1395355 - Typo preventing locale distribution engines from loading. r=gandalf
MozReview-Commit-ID: DerafUV5lNA
2017-08-30 17:15:55 -05:00
Zibi Braniecki 4c46b52926 Bug 1255404 - detangle handling.properties in android. r=Pike
MozReview-Commit-ID: CTl8gNpnbLc
2017-08-27 17:36:41 -07:00
Zibi Braniecki da91600d28 Bug 1255382 - Detangle passwordmgr.properties in android. r=Pike
MozReview-Commit-ID: Cr7DTJpeXpB
2017-08-27 17:50:02 -07:00
Tushar Saini (:shatur) 4043a011d9 Bug 1363004 - Implement browsingData.removeFormData webExtension API method on android. r=bsilverberg,Grisha
MozReview-Commit-ID: F0hqTCOCA23
2017-06-19 20:53:00 +05:30
Jim Chen 22aa7aa2bf Bug 1393128 - 3. Initialize DownloadNotifications outside of browser.js; r=esawin
In order to show download notifications, we need to initialize the
DownloadNotifications module outside of browser.js. This patch moves
initialization to BrowserCLH.js, and includes a refactoring of the
`addObserverScripts` function. The "chrome-document-interactive"
notification is used to trigger initialization because it is roughly
equivalent to where we used to initialize the module inside browser.js.

MozReview-Commit-ID: 8o1KZWRt69K
2017-08-28 23:56:44 -04:00
Luca Greco 4a5ca7672b Bug 1389911 - Support activeTab permission on Firefox for Android browserAction. r=mixedpuppy
MozReview-Commit-ID: 54MN0diEow4
2017-08-14 21:29:17 +02:00
Luca Greco d7dd7cc81f Bug 1389911 - Support activeTab permission on Firefox for Android pageAction. r=mixedpuppy
MozReview-Commit-ID: HTPBdu2KDVu
2017-08-14 20:59:43 +02:00