Граф коммитов

899 Коммитов

Автор SHA1 Сообщение Дата
Jim Chen e6d6cbb51a Bug 1412872 - 6. Remove default prompt delegate support; r=snorp
Remove support for a default prompt delegate in GeckoView. Instead, all
prompts without a known window will go to the active GeckoView if
available.

MozReview-Commit-ID: C62V6jtgDCl
2017-11-01 14:54:03 -04:00
Jim Chen d19eceacd5 Bug 1406168 - 1. Remove JNI.jsm; r=sebastian
Remove JNI.jsm. Convert code that used JNI.jsm to the equivalent using
EventDispatcher.

MozReview-Commit-ID: JQdCubcTBAR
2017-11-01 14:48:48 -04:00
Jim Chen e51e2066e0 Bug 1412681 - Fix NSS dialogs; r=snorp
The context object for NSS dialogs apparently won't give us a window, so
we have to fall back to the active window.

MozReview-Commit-ID: 4cHpcE8oggL
2017-10-30 22:48:58 -04:00
Jim Chen f568e139e7 Bug 1410236 - Deny permission by default if doorhanger is dismissed; r=sebastian
Add a "defaultCallback" option to the doorhanger API that specifies a
callback to call when the doorhanger is dismissed without a button being
clicked. Use that to deny a permission in ContentPermissionPrompt.js
when the doorhanger is dismissed without explicit action.

MozReview-Commit-ID: 9kOAWirI4Ux
2017-10-30 12:42:30 -04:00
Mark Banner 00b488c118 Bug 1411368 - Automatically fix padded-blocks issues raised when using ESLint 4. r=mossop
MozReview-Commit-ID: 7GvGbTjz0pe

--HG--
extra : rebase_source : 964c8372b792b26c4d86b2cafc640e0df7998681
2017-10-26 12:27:04 +01:00
Mark Banner 4de6bf22b1 Bug 1411368 - Automatically fix no-multi-spaces issues raised when using ESLint 4. r=mossop
MozReview-Commit-ID: H5YVp3rnzGo

--HG--
extra : rebase_source : 5b45b6c0df834131812d094e975047eaad374e06
2017-10-26 11:47:01 +01:00
Sebastian Hengst b181c484ad merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: LcCWQzgwIBi
2017-10-26 23:57:40 +02:00
Kris Maglione dee87d13ab Bug 1409249: Follow-up: Fix Android build bustage. r=bustage
MozReview-Commit-ID: 1I3z8Oqz9Qm
2017-10-25 20:56:41 -07:00
Mark Banner 422a012285 Bug 1410362 - Merge nsIPromptService and nsIPromptService2. r=enndeakin+6102
MozReview-Commit-ID: 5gKiuWF4LeA

--HG--
extra : rebase_source : fa8471b07a69433e8ff47dc195b1d7e671450a21
2017-10-24 21:40:59 +01:00
Kris Maglione 4a767c7e6e Bug 1404198: Part 2j - Switch to NS_NewTimer* everywhere else. r=njn
MozReview-Commit-ID: LmGIgfmNSmk

--HG--
extra : rebase_source : bf34e852beb0c8f6eafd09184c2e0cda95f95f83
2017-09-24 19:57:48 -07:00
Dan Banner 7caa92d5d8 Bug 1408777 - Automatically fix instances of missing semicolons in the tree. r=Standard8
MozReview-Commit-ID: Jm8BRgt6mIv
2017-10-15 20:50:39 +01:00
Kyle Machulis 1cc8b01353 Bug 1406224 - Remove nsIDOMHTMLImageElement; r=bz
MozReview-Commit-ID: GCATWRt6qMo

--HG--
extra : rebase_source : 29854f1374c6ad318da0b5b68be23507667c3be4
2017-10-06 13:27:23 -07:00
Tomislav Jovanovic 4328bf904a Bug 1398514 - Use slower documents for executeScript_runAt test r=kmag
MozReview-Commit-ID: 56FMa4sjO3Z

--HG--
rename : browser/components/extensions/test/browser/file_iframe_document.sjs => browser/components/extensions/test/browser/file_slowed_document.sjs
rename : mobile/android/components/extensions/test/mochitest/file_iframe_document.sjs => mobile/android/components/extensions/test/mochitest/file_slowed_document.sjs
extra : rebase_source : 638741cd4031e875d8d818b24adfd475ebb58a97
2017-10-05 19:22:00 +02:00
Atanas Minkov f2f143f706 Bug 1386990 - "change" event listener no longer required for tracking form input in session store r=JanH
MozReview-Commit-ID: 1MhuLbvInl6

--HG--
extra : rebase_source : f74d7d080c6c5ea38efa39a2e5dc2cc82571396f
2017-10-01 03:26:58 +03:00
Kyle Machulis 2ac26c5527 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 549f69252b 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

--HG--
extra : rebase_source : 601dd7a26b070102c7785f68bf2f3fec3f6f003b
2017-09-27 16:47:13 -04:00
Wes Kocher acf8913934 Merge m-c to inbound, a=merge
MozReview-Commit-ID: IsbKCdZU2Ui
2017-09-26 17:14:31 -07:00
Dylan Roeh 89697c5916 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 74fb7fe693 Bug 1392176 Implement prompts for browser.permissions.request() on Android r=kmag,sebastian
MozReview-Commit-ID: Dufy1pRFtgK

--HG--
extra : rebase_source : a50bf649d5c2d8ffc0ad143ea7041f34ca28af07
2017-09-12 19:06:45 -07:00
Jan Henning 9371ff3146 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

--HG--
extra : rebase_source : cf8a56ef84be77a6c01d7c926b7eae43a20ca453
2017-09-14 18:55:09 +02:00
Jan Henning 4b04854eb0 Bug 1391421 - Part 1 - Switch nsAndroidHistory to Unicode domains. r=esawin
MozReview-Commit-ID: FoxZhwdg4ao

--HG--
extra : rebase_source : e436cd9f2574e74a6fcab9eca641c9627cd243c0
2017-09-14 21:46:35 +02:00
Jim Chen d054198cae 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

--HG--
extra : rebase_source : 70a926fec8d15c70a75f6afe771e973fd62fe9c9
2017-09-19 15:57:19 -04:00
Jim Chen e03747135e 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

--HG--
rename : mobile/android/chrome/content/ActionBarHandler.js => mobile/android/modules/ActionBarHandler.jsm
rename : mobile/android/chrome/content/FormAssistant.js => mobile/android/modules/FormAssistant.jsm
rename : mobile/android/chrome/content/InputWidgetHelper.js => mobile/android/modules/InputWidgetHelper.jsm
rename : mobile/android/chrome/content/SelectHelper.js => mobile/android/modules/SelectHelper.jsm
rename : mobile/android/chrome/content/WebrtcUI.js => mobile/android/modules/WebrtcUI.jsm
extra : rebase_source : fa361c9eeea38485ba6a8f6c49321c32304d4006
2017-09-19 14:57:32 -04:00
Jim Chen 3eba8b5c2d 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 f7e4542213 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 361dc2b952 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 db5353e4ca 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 bee5ada2ca 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 3488170d4d 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 2da0bfd1b8 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 2ea84d0359 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 3dfb8bc0dc 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 8f848ff9df 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

--HG--
extra : rebase_source : f9cbed6dff56781ecd86281cb46f23f0ec8aecf6
2017-09-08 17:00:27 -04:00
Tomislav Jovanovic 3dce599c63 Bug 1394348 - Fix document_idle run_at timing r=kmag
MozReview-Commit-ID: FBPlw6CiUE2

--HG--
extra : rebase_source : b72037e7ce600eafb15de639ec7e98e8abb580b3
2017-09-08 00:36:50 +02:00
Jim Chen 68c0a8b2fb 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 f915ac7be6 Bug 1394580 - 6. Use WindowEventDispatcher for prompt if available; r=jchen
MozReview-Commit-ID: 3vRXlb4HWYq

--HG--
extra : rebase_source : 4a6ae0a1eda1d7517a8b234be0276cfd57ece028
2017-09-05 21:26:32 -04:00
Jim Chen 920019518b 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

--HG--
extra : rebase_source : 0bda1af1e97b9bafea3aa72195f3ea937cf8a273
2017-09-05 21:26:30 -04:00
Jim Chen 46bab67672 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

--HG--
extra : rebase_source : c71edca4a13f3de785e06f2e0a249ff80fd8c1d4
2017-09-05 21:26:30 -04:00
Sebastian Hengst 3501d62e32 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 d7c61803f9 Backed out changeset 6c4c8b4e38cf (bug 1394580) 2017-09-05 21:51:30 +02:00
Sebastian Hengst 8f20753676 Backed out changeset f069f3c69597 (bug 1394580) 2017-09-05 21:51:07 +02:00
Jim Chen 30cae04acc Bug 1394580 - 6. Use WindowEventDispatcher for prompt if available; r=jchen
MozReview-Commit-ID: BZJSvnNC3OS

--HG--
extra : rebase_source : a443c3bff2a716620448e869aeadd6c9b34e1f53
2017-09-05 15:27:37 -04:00
Jim Chen 2995c5fd29 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

--HG--
extra : rebase_source : c22e71eda6ad11230046de64dc54c882be2ed555
2017-09-05 15:27:35 -04:00
Jim Chen e71f44e7d6 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

--HG--
extra : rebase_source : c721bbc6c9340f65161c415405dfba16e527b962
2017-09-05 15:27:29 -04:00
Luca Greco 76db20f78d Bug 1396605 - Prevent duplicated Firefox for Android PageAction icons for a single extension. r=mixedpuppy
MozReview-Commit-ID: 1axv6vFXcCu

--HG--
extra : rebase_source : e265131c7bcfcb1fa57e0b461debcb7a915529a5
2017-09-04 21:09:58 +02:00
Sebastian Hengst a17af05f6f 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) 49e6d15e41 Bug 1363014 - Implement browsingData.remove WebExtension API method on android. r=bsilverberg,mixedpuppy,sebastian
MozReview-Commit-ID: 2ipz1wqGpxc

--HG--
extra : rebase_source : cdb19268a6242c1466fb762cfd72c0af32ef45ae
2017-08-30 00:08:48 +05:30
Kris Maglione a2ec0b79b6 Bug 1396017: Redact window titles without the appropriate tabs permissions. r=mixedpuppy
MozReview-Commit-ID: 2QJYvJlqt9l

--HG--
extra : rebase_source : 33c4670a0eded6e0af4f931a1ac4cd57f6115995
extra : amend_source : 915bfac6f2c05024acd840c8fa9e282bfc31c296
2017-09-01 12:20:10 -07:00
Jan Henning 96e370c7ce Bug 1396303 - Fix typo in variable declaration that breaks the download helper app dialogue. r=JanH
MozReview-Commit-ID: Kg24dBizlRf

--HG--
extra : rebase_source : 357be7740ba48bb4254ad3253a38057f23b7a7ff
2017-09-03 21:12:40 +02:00
Luca Greco 108627c8c2 Bug 1370333 - Add support for browserAction popup on Firefox for Android. r=mixedpuppy
MozReview-Commit-ID: Il6sUoMlLvX

--HG--
extra : rebase_source : d8f1386bd264cb931f7781dbf13b9cdfed2624d6
2017-08-29 12:54:37 +02:00