Commit Graph
518 Commits
Author SHA1 Message Date
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
Eugen Sawin 819117dad6 Bug 1394520 - [3.0] Translate null-URI to "about:blank" for URI loading requests. r=snorp 2017-09-28 22:45:59 +02:00
Eugen Sawin e4ca8fdc98 Bug 1394520 - [2.1] Add support for external URI loading with e10s in GeckoView. r=snorp 2017-09-28 22:45:41 +02:00
Jim Chen b0c1850937 Bug 1403251 - Only display validation message when element is invalid; r=sebastian
Only display form validation message when the element becomes invalid
after an invalid submission, by checking the "-moz-ui-invalid"
pseudo-class.

Also fix some message visibility bugs, by making sure in more places
that we only display messages for focused elements.

MozReview-Commit-ID: 16rvMmu8Zj6
2017-09-26 18:39:52 -04:00
Eugen Sawin b7c0730a5a Bug 1401002 - [4.0] Fix linter warning. r=me 2017-09-26 23:45:05 +02:00
Eugen Sawin 4ae3c40530 Bug 1401002 - [2.2] Enable GeckoView remote debugging. r=snorp,jchen 2017-09-26 23:08:25 +02:00
Dylan Roeh 6a49ef0c72 Bug 1388750 - Add setActive() to GeckoView to make the DocShell active/inactive. r=snorp 2017-09-22 15:57:46 -05:00
Sebastian Hengst eb484b52dd merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-09-21 15:29:25 +02:00
Eugen Sawin bb7fcbd7af Bug 1401354 - [3.0] Track registration state in GeckoView modules. r=snorp 2017-09-21 14:44:50 +02:00
Eugen Sawin 4a6e11f0b0 Bug 1401354 - [1.1] Only delegate URI loads if a navigation listener is set. r=snorp 2017-09-21 14:44:50 +02:00
Jim Chen 7b3dd2d2bf Bug 1400243 - 2. Small fixes to ActionBarHandler and FormAssistant; r=esawin
Small fixes to ride-along in this bug:
* Use localized ellipsis in ActionBarHandler if available.
* Fix one situation where the FormAssistPopup fails to hide.
* Handle an error case in FormAssistant.

MozReview-Commit-ID: 9EZhPnS5h3E
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
Dylan Roeh 397f5392a3 Bug 1400059 - Replace strings in ProgressListener.SecurityInformation with ints. r=snorp 2017-09-15 09:00:26 -05:00
Jim Chen bed1d87049 Bug 1367077 - Follow-up to fix bustage; r=me on CLOSED TREE 2017-09-14 18:07:10 -04:00
Jim Chen 6d18fda18c Bug 1367079 - 3. Add utility for registering lazy WindowEventDispatcher listener; r=snorp
Add `GeckoViewUtils.registerLazyWindowEventListener` that, similar to
`addLazyEventListener`, will register a lazy event listener with the
per-window EventDispatcher.

MozReview-Commit-ID: AX3EQGpmdw
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 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 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
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
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
Eugen Sawin 26f5efbdd4 Bug 1329154 - [1.0] Add GeckoView BrowserApp stub to support WebExtensions. r=snorp 2017-09-13 15:32:11 +02:00
Wes Kocher 22e65e11c8 Backed out 4 changesets (bug 1367077) for android mochitest failures in passwordmgr/ a=backout CLOSED TREE
Backed out changeset 0509b09c11fa (bug 1367077)
Backed out changeset 8df5e093dd92 (bug 1367077)
Backed out changeset c6300312d42a (bug 1367077)
Backed out changeset 83cf26e44284 (bug 1367077)

MozReview-Commit-ID: JFwOEdTq7bL
2017-09-12 16:41:19 -07:00
Jim Chen 9119642ae4 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-12 13:35:04 -04:00
Jim Chen 0d9c63b095 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-12 13:35:03 -04:00
Jan Henning 54b83e7660 Bug 1397818 - Make sure to always return Promises from the Sanitizer. r=Grisha
Our shutdown code needs this, so it can wait for sanitising to have actually finished before continuing further.

MozReview-Commit-ID: DGNgFrvYIXV
2017-09-07 19:27:01 +02:00
Wes Kocher 0a39d30421 Backed out changeset f51248231d0e (bug 1397818) for linting failures in Sanitizer.jsm a=backout
MozReview-Commit-ID: AcRgH0NjTGB
2017-09-11 14:29:42 -07:00
Jan Henning f1c23026d9 Bug 1397818 - Make sure to always return Promises from the Sanitizer. r=Grisha
Our shutdown code needs this, so it can wait for sanitising to have actually finished before continuing further.

MozReview-Commit-ID: DGNgFrvYIXV
2017-09-07 19:27:01 +02:00
Jim Chen 7f6e4fead7 Bug 1394580 - 5. Lazy-load Task.jsm in Messaging.jsm; r=esawin
We're not lazy-loading Task.jsm in Messaging.jsm right now (despite
declaring it through XPCOMUtils.defineLazyModuleGetter) because we
unnecessarily reference `Task` when Messaging.jsm is loading. This patch
makes us load Task.jsm only when `Task` is really needed.

MozReview-Commit-ID: 9rrnLQLaW4y
2017-09-05 21:26:31 -04:00
Jim Chen c65b793a26 Bug 1394580 - 3. Lazy-load AndroidLog.jsm; r=droeh
Lazily load AndroidLog.jsm since we only need it for debug logging, and
logging is normally turned off in GeckoView code.

MozReview-Commit-ID: 5HNzYTwujMS
2017-09-05 21:26:31 -04:00
Sebastian Hengst 1f22e7f4c1 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 17ViEoPyjPa
2017-09-05 23:55:39 +02:00
Eugen Sawin f84e7d9120 Bug 1396065 - [2.1] Override nsILoadURIDelegate::Handle in GeckoViewNavigation to allow for app specific URI loading handling. r=snorp 2017-09-05 19:08:04 +02:00
Steve Armand b03be0d87e Bug 1368967 - Enable the ESLint generator-star-spacing rule across mozilla-central. r=standard8
MozReview-Commit-ID: 5do3eoCEAMR
2017-09-04 00:49:32 -04:00
Kris Maglione 7d8f35e2b4 Bug 1394556: Part 1 - Fix strict mode errors in JSM scripts. r=Mossop
MozReview-Commit-ID: 4LmJQql7Y2c
2017-08-30 01:50:27 -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
Jing-wei Wu d486f62174 Bug 1390735 - Support tint color for page action button. r=nechen,sebastian,walkingice
Use tint to provide two colors for page action icon in normal/private mode.

We would not tint icons that already have their own colors(for example: ic_readermode_on.png or casting_active.png)
or are came from 3-party addons.

MozReview-Commit-ID: 8uuMucKGLw5
2017-08-25 16:24:18 +08:00
Tushar Saini (:shatur) 2ea944c8d2 Bug 1363001 - Implement browsingData.removeDownloads WebExtension API method on android. r=bsilverberg,JanH
MozReview-Commit-ID: FjjnfYjsJez
2017-08-14 00:25:42 +05:30
Kris Maglione be161e68b4 Bug 1391110: Part 4 - Remove unnecessary nsIFrameLoaderOwner QIs. r=smaug
The FrameLoaderOwner interface has been implemented in WebIDL for several
years now, so these QIs are simply unnecessary overhead.

MozReview-Commit-ID: LAzvfm5Qhy0
2017-08-19 13:32:58 -07:00
James Willcox aec76a585a Bug 1369815 - Add display mode to GeckoViewSettings r=esawin 2017-08-22 09:08:39 -05:00
Eugen Sawin 78cbfba16b Bug 1389236 - [1.0] Allow sync handling of all URI loading requests in the app. r=snorp 2017-08-21 16:08:57 +02:00
Jim Chen 8fa323d837 Bug 1388724 - 5. Make RuntimePermissions not depend on GeckoApp; r=sebastian
Move the check permission event from `GeckoApp` to `GeckoApplication`,
and use the current activity if possible, so that we can use
`RuntimePermissions` in custom tabs and PWA. Also implement
`onRequestPermissionsResult` for custom tabs and PWA, in order to
forward the result back to `RuntimePermissions`.

MozReview-Commit-ID: Bg4BoXAUCz6
2017-08-18 14:27:31 -04: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
Eugen Sawin 1b23b6dea8 Bug 1377580 - [2.1] Add support for external URI loading in GeckoView. r=snorp 2017-08-14 14:57:25 +02:00
Dan Banner b08cb5b49e Bug 1385815 - Enable brace-style and quotes ESLint rules for mobile/android. r=sebastian
MozReview-Commit-ID: 5IFF4IPpPVY
2017-08-01 16:43:56 +01:00
Dan Banner 35b0ff1c12 Bug 1385815 - Enable more ESLint rules for mobile/android. r=sebastian
MozReview-Commit-ID: aC7PX7xDok
2017-08-01 16:41:38 +01:00
Dan Banner 775694ef61 Bug 1385815 - Enable more whitespace related ESLint rules for mobile/android. r=sebastian
MozReview-Commit-ID: FuM6Neob0mC
2017-08-01 16:36:00 +01: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
Luca Greco b6460bc8f8 Bug 1386786 - Fix Android browserAction.setTitle/getTitle behavior on switching and closing tab. r=mixedpuppy
MozReview-Commit-ID: LFxnySvBBOz
2017-08-02 21:26:50 +02:00
Eugen Sawin 7f5eaf6c50 Bug 1386697 - [2.0] Use content event forwarding for GeckoViewContent events. r=jchen 2017-08-03 13:47:37 +02:00