Commit Graph

3026 Commits

Author SHA1 Message Date
Dylan Roeh
afc0471f35 Bug 1411529 - Remove nsIDOMHTMLImageElement usage from GeckoViewContent.js r=snorp 2017-10-25 10:48:08 -05:00
Nevin Chen
8ca3d01790 Bug 1409303 - Make PWA enable by default. r=maliu
MozReview-Commit-ID: 5jGDP1Xf1aj

--HG--
extra : rebase_source : df088cd3a04c99c04fdd25543e11ac84ad84bef5
2017-10-25 12:02:23 +08:00
Nevin Chen
07f054650f Bug 1409191 - Prefetch manifest before install. r=snorp
This is a "hacked" fix. The key idea is to specify the value in manifest on "add to home screen confirm prompt."
We need to reuse prefetch result for  manifest.install().

The plan is to land this patch before Chrome Dev Summit(10/30) for demostration and fix the rest of the issue in a follow up bug.

MozReview-Commit-ID: A4B0ZK7UjyK

--HG--
extra : rebase_source : a91a490a08cb4ec18e5ff9f2e78f11efa6fdd98b
2017-10-19 00:59:58 +08:00
Dylan Roeh
b96e6b4f15 Bug 1397817 - Delete Downloads/memory-reports if it exists. r=snorp 2017-10-17 16:59:27 -05: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
Jing-wei Wu
2330794b43 Bug 1341038 - Show snackbar for notification when delete a login record. r=nechen,walkingice
MozReview-Commit-ID: HBwhLUA1kYi

--HG--
extra : rebase_source : 8c4a61671b7d0dcbd81a04d69b546d5861b8cb26
extra : source : 9a087e95140f033375f5e15cc12d2acf25988308
2017-09-22 13:20:22 +08:00
Jan Henning
6ed989d34c Bug 1400023 - Switch logins handling to use "display" URIs. r=MattN
Since the pref flip in bug 1380617, the default nsUri attributes have been returning punycode for IDN-based domain names, so we need to switch to using the "display"-prefixed variants as a simple fix to
- preserve compatibility with previously stored logins
- pretty-print unicode domains in the login manager UI instead of showing punycode

This patch is more or less a straight (DXR-)search and replace and has hopefully caught all relevant instance of nsUri access related to logins.

For test_disabled_hosts, we're basically reverting bug 1380617, since the login service will now once again return IDN domains in Unicode where allowed.

MozReview-Commit-ID: 5SvW0MuTrGu

--HG--
extra : rebase_source : 02e4414c72b86d6bebf368f9a79a70d144575493
2017-09-14 20:57:40 +02:00
Kyle Machulis
669ff05b49 Bug 1406525 - Remove nsIDOMHTMLLinkElement; r=bz
MozReview-Commit-ID: 4xUSQ8SiIqX
2017-10-09 16:09:38 -07:00
Eugen Sawin
fbf9ec3f92 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
5809a90b3a Bug 1403693 - Fix IDN conversion during theme installation. r=jwu
MozReview-Commit-ID: 9WshGSu4FQJ

--HG--
extra : rebase_source : 4b7966bdc69319d5f1cd96573ff82cae007dc2ea
2017-09-27 21:43:57 +02:00
Kyle Machulis
e6d0a7ad13 Bug 1402180 - Remove nsIDOMHTMLAreaElement; r=bz
Removes the XPCOM interface for nsIDOMHTMLAreaElement, replacing it
with binding class usage.

MozReview-Commit-ID: IaX4JFTPZn6

--HG--
extra : rebase_source : 79f9200c6ff9e081a5d9bc21eaa605f88caa99e9
2017-09-21 17:52:28 -07:00
Eugen Sawin
3b7b1e8565 Bug 1401002 - [2.2] Enable GeckoView remote debugging. r=snorp,jchen 2017-09-26 23:08:25 +02:00
Kyle Machulis
9be401bdd6 Bug 1389650 - Change nsIDOMHTMLAnchorElement instanceof checks to getClassName; r=bz
MozReview-Commit-ID: Il2Ig98BHYP
2017-09-26 11:40:15 -07:00
Sebastian Hengst
b3d9e88e3d 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
6b7c6911ae Bug 1389650 - Change nsIDOMHTMLAnchorElement instanceof checks to getClassName; r=bz
MozReview-Commit-ID: Il2Ig98BHYP
2017-09-25 23:12:44 -07: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
3e471df8fa Bug 1400544 - Include full host name in site identity popup. r=liuche
MozReview-Commit-ID: FFojx008ZWK

--HG--
extra : rebase_source : 74699ba06e84732aa5e14bdcacca3568c2674ed2
2017-09-16 14:28:17 +02:00
Jan Henning
6cddaccbac 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

--HG--
extra : rebase_source : 5e71c300261ba9cbaff7e006ce22637c29596680
2017-09-15 20:43:40 +02:00
Jan Henning
18b4ca79db Bug 1391421 - Part 7 - Switch addon/theme install prompts to Unicode domains. r=jwu
MozReview-Commit-ID: HlQKTJRu0FT

--HG--
extra : rebase_source : 80cda7b048e6b45cba4867538cc00ad6b83db4e7
2017-09-15 20:38:08 +02:00
Jan Henning
3d412565c0 Bug 1391421 - Part 6 - Switch context menus to Unicode domains. r=jwu
MozReview-Commit-ID: 6yjtRGI6Aui

--HG--
extra : rebase_source : bae1d7b253ccc1998bacd39a52a0d7fac4827c82
2017-09-16 15:01:09 +02:00
Jan Henning
6fee77cbfe 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

--HG--
extra : rebase_source : 4494ed02047b33c187143f3789ed663e5022bf35
2017-09-14 21:09:44 +02:00
Jan Henning
57706bcfdc 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

--HG--
extra : rebase_source : 937332a852c6814317cdc58473437e3bc77faf15
2017-09-14 21:29:45 +02: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
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
Sebastian Hengst
09dd8ba13f merge mozilla-central to mozilla-inbound. r=merge a=merge on a CLOSED TREE
--HG--
extra : amend_source : ee605ac050c0532521f96bdeda5ef20fb0099519
2017-09-15 00:18:43 +02: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
Andrew Swan
d249202ee5 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

--HG--
extra : rebase_source : 5df3e12df8c422285fbc25c459dc420b395fa824
2017-09-08 16:48:22 -07:00
Eugen Sawin
efd71c501c Bug 1329154 - [1.0] Add GeckoView BrowserApp stub to support WebExtensions. r=snorp 2017-09-13 15:32:11 +02:00
Richard Newman
f31d98a272 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

--HG--
extra : rebase_source : 9da9aae7ed8420faa7567c9db29b1110b3289d9f
2017-09-08 07:54:13 -07:00
Andrew Swan
a81fd94e72 Bug 1379833 Part 2: Display permissions dialog during extension install on Android
MozReview-Commit-ID: 721i0B0lC4n

--HG--
extra : rebase_source : 4fd65f05308b9fc085f7ca3bb88fc9195ec290a3
extra : intermediate-source : facd660f3c054d2d082bed635df5af312ec9773f
extra : source : 95aaed050f22ef61d3bedbb5b47d043d10624eeb
2017-08-15 08:35:11 -07:00
Jim Chen
d6e76c014e 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

--HG--
extra : rebase_source : f6902e25a445d29001f93e024e7cc82fddbb58f2
2017-09-05 21:26:31 -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
aead58a5ad Backed out changeset 995d9ef9af5f (bug 1394580) 2017-09-05 21:51:24 +02:00
Jim Chen
98dc4b6b01 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

--HG--
extra : rebase_source : 5ef9bbe21ff1a53bc0e805f473154e1cf60d3b08
2017-09-05 15:27:36 -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
8ea256fafd Bug 1395911 - Ensure Android addon options are not hidden while a webextension is still starting. r=sebastian
MozReview-Commit-ID: JXxI1dK39jA

--HG--
extra : rebase_source : b45efcaeebb19eca0196a823048c5d878b259b0c
2017-09-01 14:31:26 +02:00
Zibi Braniecki
517324f16f Bug 1389397 - Remove the override chrome entries from language manifests. r=Pike
MozReview-Commit-ID: IsNb6inPCtf

--HG--
extra : rebase_source : 169e5cbb0263239ffce2a4ead598c7904e5a3484
2017-08-31 01:21:08 -07:00
Michael Comella
cf5d8a86f7 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

--HG--
extra : rebase_source : 52c616720fb1735e593f02330d1dd02db45f501f
2017-08-30 15:26:03 -07:00
Luca Greco
9e55b57841 Bug 1388098 - Fix Android options_ui on disable/enable addon. r=mixedpuppy
MozReview-Commit-ID: 4z4vJpDxzGB

--HG--
extra : rebase_source : e4d13535390579538aefa8cae3643fe112cfbd72
2017-08-07 18:54:16 +02:00
Sebastian Hengst
558aede67b merge mozilla-central to mozilla-inbound. r=merge a=merge CLOSED TREE 2017-08-29 20:36:12 +02:00
James Willcox
98ff44e853 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
d8022d7f17 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

--HG--
extra : rebase_source : a588a4e0933069bbbde00dc07c97141c889dfc81
2017-08-28 23:56:44 -04:00
Jing-wei Wu
1da86e673f 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

--HG--
extra : rebase_source : 7d213e2b96fab8389b2b2c69e1fdb8ecfe569f20
extra : intermediate-source : ee7c5cecab194ae54317d77de05b2e2f84e1122e
extra : source : a97a2b9700a27e944691536adec6112451ff1f24
2017-08-25 16:24:18 +08:00