Commit Graph
3017 Commits
Author SHA1 Message Date
Eugen Sawin b732ac6ad1 Bug 1394520 - [1.2] Extend nsIBrowserDOMWindow to support content window creation without URI loading with e10s. r=smaug 2017-09-28 22:45:24 +02:00
Jan Henning ad5e3a4d55 Bug 1403693 - Fix IDN conversion during theme installation. r=jwu
MozReview-Commit-ID: 9WshGSu4FQJ
2017-09-27 21:43:57 +02:00
Kyle Machulis 81f5e88ac1 Bug 1402180 - Remove nsIDOMHTMLAreaElement; r=bz
Removes the XPCOM interface for nsIDOMHTMLAreaElement, replacing it
with binding class usage.

MozReview-Commit-ID: IaX4JFTPZn6
2017-09-21 17:52:28 -07:00
Eugen Sawin 4ae3c40530 Bug 1401002 - [2.2] Enable GeckoView remote debugging. r=snorp,jchen 2017-09-26 23:08:25 +02:00
Kyle Machulis fddfc20de4 Bug 1389650 - Change nsIDOMHTMLAnchorElement instanceof checks to getClassName; r=bz
MozReview-Commit-ID: Il2Ig98BHYP
2017-09-26 11:40:15 -07:00
Sebastian Hengst 6e62a784b3 Backed out changeset 50d5710ae6c0 (bug 1389650) for eslint failure at browser/modules/PluginContent.jsm:684: 'contentWindow' is assigned a value but never used. r=backout 2017-09-26 10:48:27 +02:00
Kyle Machulis 4014d17661 Bug 1389650 - Change nsIDOMHTMLAnchorElement instanceof checks to getClassName; r=bz
MozReview-Commit-ID: Il2Ig98BHYP
2017-09-25 23:12:44 -07: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 5c0b647e8f Bug 1400544 - Include full host name in site identity popup. r=liuche
MozReview-Commit-ID: FFojx008ZWK
2017-09-16 14:28:17 +02:00
Jan Henning 5e1d0e9e4b Bug 1391421 - Part 8 - Fix site identity handling. r=jwu
"getEffectiveHost" further down expects the URI to be available - apparently this was broken ever since the original implementation.

MozReview-Commit-ID: C1Q6PBYcvk3
2017-09-15 20:43:40 +02:00
Jan Henning 66a45cc197 Bug 1391421 - Part 7 - Switch addon/theme install prompts to Unicode domains. r=jwu
MozReview-Commit-ID: HlQKTJRu0FT
2017-09-15 20:38:08 +02:00
Jan Henning 1e16c5f911 Bug 1391421 - Part 6 - Switch context menus to Unicode domains. r=jwu
MozReview-Commit-ID: 6yjtRGI6Aui
2017-09-16 15:01:09 +02:00
Jan Henning c0c23b43e9 Bug 1391421 - Part 5 - Normalise the saved "appOrigin" to Unicode. r=jwu
To avoid mismatches between the Unicode and Punycode versions of a domain, we should normalise the "appOrigin" that can get stored as part of a tab's extra session store data.

To that extent, we move the code that stores the appOrigin into the Tab object's constructor, so we don't have to parse the URL twice.

MozReview-Commit-ID: KFr8CeeOYTe
2017-09-14 21:09:44 +02:00
Jan Henning 44c7412b37 Bug 1391421 - Part 4 - Switch Session Store to save the "display" URL. r=mikedeboer
The URL can end up being user-visible for "Recently closed tabs" (certainly on Android, and also when hovering over an entry on Desktop, at least in the old menu bar), so we should use pretty URLs instead of Punycode.

MozReview-Commit-ID: Kil2ChToYa8
2017-09-14 21:29:45 +02: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
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
Sebastian Hengst f3b4b34c71 merge mozilla-central to mozilla-inbound. r=merge a=merge on a CLOSED TREE 2017-09-15 00:18:43 +02: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
Andrew Swan c46cf10e39 Bug 1391579 Part 4: Handle the in-app extension update flow for Fennec r=jwu,sebastian
The mechanics implemented here involve listening for extension updates that
require new permissions, notifying the user with icons attached to the
top level Add-ons menu and to the individual item in about:addons, and
then showing the permissions dialog when the user asks to update.

The basic plumbing is mostly in ExtensionPermissions.js, this also
required a fair amount of change to aboutAddons to accomodate new UI
elements, and to handle updates gracefully.

MozReview-Commit-ID: Jkgc3OVYtnc
2017-09-08 16:48:22 -07: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
Richard Newman 4c78fbe34e Bug 1378501 - Tell Gecko when the OS locale changes, even when backgrounded. r=mcomella
This ensures that `intl.locale.os` is always set, even if the system locale changes
while Fennec is in the background.

This commit also restores `Strings.flush()` calls that are necessary to have Fennec's
non-Java UI reflect locale changes.

With this commit, the geolocation popup still doesn't behave correctly: when the
locale system is set to match OS locale, although the pref is set the locale doesn't
change. This applies in two scenarios: on first run (the popup is always English)
and when the locale changes at runtime (the popup uses an earlier OS locale).

Bug 1397925 should complete the fix.

MozReview-Commit-ID: 8zeZuYXFYdy
2017-09-08 07:54:13 -07:00
Andrew Swan 35871a1aef Bug 1379833 Part 2: Display permissions dialog during extension install on Android
MozReview-Commit-ID: 721i0B0lC4n
2017-08-15 08:35:11 -07: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
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 e41d106714 Backed out changeset 995d9ef9af5f (bug 1394580) 2017-09-05 21:51:24 +02:00
Jim Chen b0e916b971 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 15:27:36 -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 a0bd05307b Bug 1395911 - Ensure Android addon options are not hidden while a webextension is still starting. r=sebastian
MozReview-Commit-ID: JXxI1dK39jA
2017-09-01 14:31:26 +02:00
Zibi Braniecki 5c88a90693 Bug 1389397 - Remove the override chrome entries from language manifests. r=Pike
MozReview-Commit-ID: IsNb6inPCtf
2017-08-31 01:21:08 -07:00
Michael Comella 9598c2efe6 Bug 1393699: Add referrerURI to Tabs.loadUrl flows. r=liuche
This will allow us to call Tabs.loadUrl with a referrer URI from the Pocket top
stories.

MozReview-Commit-ID: IGdoTo80SGG
2017-08-30 15:26:03 -07: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
Sebastian Hengst 4f8a616715 merge mozilla-central to mozilla-inbound. r=merge a=merge CLOSED TREE 2017-08-29 20:36:12 +02:00
James Willcox 6e74f29748 Bug 1353868 - Split out web app manifest handling and fix scope handling r=esawin
MozReview-Commit-ID: 7MpeqitYRW8
2017-08-29 10:31:41 -05:00
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
Luca Greco 62c68358c3 Bug 1364945 - Fix runtime.openOptionsPage on Firefox for Android. r=mixedpuppy,sebastian
MozReview-Commit-ID: Envx19jlCjY
2017-08-07 17:56:36 +02:00
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
Francois Marier 2e2b6b9efa Bug 1385484 - Remove obsolete prefs and add missing blockedURIs. r=hchang
This should have been done when blockedURIs was added (bug 1237198),
when safebrowsing.enabled was renamed (bug 1025965), and when the
forbidden list format was removed (bug 1274893).

MozReview-Commit-ID: AUWR5Efcb2x
2017-08-22 17:55:28 -07:00
Wes Kocher ee18e318e9 Backed out 4 changesets (bug 1385484) for build failures a=backout
Backed out changeset 401c2744f16b (bug 1385484)
Backed out changeset 2ff443a0c744 (bug 1385484)
Backed out changeset 1a1c476a9aaa (bug 1385484)
Backed out changeset 87ec064a3681 (bug 1385484)

MozReview-Commit-ID: D9WGXiXaNoZ
2017-08-22 17:22:41 -07:00
Francois Marier c8fa594d36 Bug 1385484 - Remove obsolete prefs and add missing blockedURIs. r=hchang
This should have been done when blockedURIs was added (bug 1237198),
when safebrowsing.enabled was renamed (bug 1025965), and when the
forbidden list format was removed (bug 1274893).

MozReview-Commit-ID: AUWR5Efcb2x
2017-08-22 16:00:50 -07:00
Masatoshi Kimura 37979d1e38 Bug 1390209 - Follow-up patch to remove a reference to removed interfaces. r=qdot
MozReview-Commit-ID: LLHItOR1atG
2017-08-23 06:49:22 +09:00
Henry Chang 0b596494cc Bug 1388501 - Fixed missing PHA warning page on Fennec. r=francois
MozReview-Commit-ID: FPf85QAO2C9
2017-08-17 17:24:19 +08:00
Jim Chen 7055e40b13 Bug 1388724 - 6. Make WebrtcUI not depend on browser.js; r=esawin
Move WebrtcUI loading from browser.js to BrowserCLH.js, so that it can
be loaded without GeckoApp/browser.js being active. Also use the
universal doorhanger API to show the prompts.

MozReview-Commit-ID: Gqsthvn7ZXA
2017-08-18 14:27:31 -04:00
Jim Chen 7f6160ba61 Bug 1387190 - Fire "input" event for <select> and datetime <input>; r=esawin
Fire "input" event in addition to "change" event for both <select>
fields and date/time <input> fields.

MozReview-Commit-ID: 8UDdF8ZnM2e
2017-08-16 11:53:13 -04:00