Commit Graph

2994 Commits

Author SHA1 Message Date
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
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
Luca Greco
f7b58974c2 Bug 1364945 - Fix runtime.openOptionsPage on Firefox for Android. r=mixedpuppy,sebastian
MozReview-Commit-ID: Envx19jlCjY

--HG--
extra : rebase_source : 7b1ae9bd2809ac0b75130d740c2f28388cd63d43
2017-08-07 17:56:36 +02:00
Kris Maglione
821308e4d1 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

--HG--
extra : rebase_source : 2495c07df21c474f5fabc257ff4db43b0d8047e4
2017-08-19 13:32:58 -07:00
Francois Marier
5139582bc4 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

--HG--
extra : rebase_source : 990bbd4ba7a6daaa08928a697e72f2d6b5b39a5a
2017-08-22 17:55:28 -07:00
Wes Kocher
207dd28c61 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

--HG--
extra : rebase_source : ebab6135905e972abf7eeab9af8db41454687373
2017-08-22 17:22:41 -07:00
Francois Marier
4a7299c438 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

--HG--
extra : rebase_source : 533b2e2296d1fe70d6c334bb1766ca26679d224f
2017-08-22 16:00:50 -07:00
Masatoshi Kimura
464faf37d6 Bug 1390209 - Follow-up patch to remove a reference to removed interfaces. r=qdot
MozReview-Commit-ID: LLHItOR1atG

--HG--
extra : rebase_source : 68e5f2d1a07503721d80b3ec480f16ea3a63fe38
2017-08-23 06:49:22 +09:00
Henry Chang
f6ee4abf9c Bug 1388501 - Fixed missing PHA warning page on Fennec. r=francois
MozReview-Commit-ID: FPf85QAO2C9

--HG--
extra : rebase_source : 33fa0381479cc454deca8c6061ccd4ebb1e539b1
2017-08-17 17:24:19 +08:00
Jim Chen
9348771270 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

--HG--
extra : rebase_source : 3b3007899bb791b09b35a6a7ab35924468acb6f1
2017-08-18 14:27:31 -04:00
Jim Chen
9a128ccc12 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
Dylan Roeh
390b12b2a6 Bug 1389054 - Back out patch for bug 1382637 to fix broken behavior when "Don't keep activities" is enabled. r=snorp 2017-08-16 09:38:39 -05:00
Luca Greco
9cabfd770d Bug 1386316 - Resize Android WebExtension Options UI iframe to match its content size. r=mixedpuppy
MozReview-Commit-ID: 17a240drasZ

--HG--
extra : rebase_source : de1fd026345b105f739dd9627799b18802f73c2a
2017-08-07 15:45:55 +02:00
Nevin Chen
5a105aef6d Bug 1390038 - Fix xml parsing error. r=dao
MozReview-Commit-ID: 8sv7aH6ejIt

--HG--
extra : rebase_source : 3c24def7328720b2cc2924b9c09724fc3709ee0e
2017-08-14 14:46:30 +08:00
Eugen Sawin
d8fdd4ab7b Bug 1377580 - [1.2] Extend nsIBrowserDOMWindow to support content window creation without URI loading. r=smaug 2017-08-14 14:57:25 +02:00
Wes Kocher
223f322400 Merge m-c to autoland a=merge
MozReview-Commit-ID: 2qLtb79Nlhs
2017-08-08 15:26:30 -07:00
Dylan Roeh
ba0ab9fa3d Bug 1382637 - Zombify all tabs in BrowserApp.onDestroy() to stop video/audio recording when Fennec is swipe-to-killed. r=snorp 2017-08-07 12:14:35 -05:00
Dan Banner
4f8c0ecb0f Bug 1385815 - Enable brace-style and quotes ESLint rules for mobile/android. r=sebastian
MozReview-Commit-ID: 5IFF4IPpPVY

--HG--
extra : rebase_source : 69ec5e1ae3333c42cfc00dc47bb09d910ba07409
2017-08-01 16:43:56 +01:00
Dan Banner
015cd78b6a Bug 1385815 - Enable more ESLint rules for mobile/android. r=sebastian
MozReview-Commit-ID: aC7PX7xDok

--HG--
extra : rebase_source : 3f48ac26d442a47988fcf445d5319ecc6a38a7c5
2017-08-01 16:41:38 +01:00
Dan Banner
9a7db035d4 Bug 1385815 - Enable more whitespace related ESLint rules for mobile/android. r=sebastian
MozReview-Commit-ID: FuM6Neob0mC

--HG--
extra : rebase_source : 29a9fbbaf74b17f4b02a835a7ef88550413514a0
2017-08-01 16:36:00 +01:00
Dan Banner
12a96894b3 Bug 1385815 - Enable whitespace related ESLint rules for mobile/android. r=sebastian
MozReview-Commit-ID: 6B79zhklsYR

--HG--
extra : rebase_source : e32d5454c793f443b2d3336b9c9aacb8cdf2f63b
2017-08-01 16:34:11 +01:00
Henry Chang
a93f3d2ba4 Bug 1375277 - Move Safe Browsing UI events to a separate telemetry probe. r=francois
MozReview-Commit-ID: KDAklsznekw

--HG--
extra : rebase_source : 20d81369b18b12d9b5f6670d92bf3c7215c8c9a9
extra : intermediate-source : a2d99a6b07bb015f0bdc5c1687e250086ed09a5c
extra : source : 5460dbfebee4f99580b306a9b0ec754b890f5959
2017-08-02 14:01:44 +08:00
Eugen Sawin
88efc0911a Bug 1386697 - [2.0] Use content event forwarding for GeckoViewContent events. r=jchen 2017-08-03 13:47:37 +02:00
Eugen Sawin
1af1dfd5c3 Bug 1386697 - [1.0] Use content event forwarding for scroll events. r=jchen 2017-08-03 13:47:29 +02:00
Rajesh Kathiriya
48e6bc2124 Bug 1374620 - Enabled the ESLint dot-notation rule across mozilla-central r=standard8
MozReview-Commit-ID: FadrI2li43G

--HG--
extra : rebase_source : b455e846ab79c8141150517e67e542e3e06d630e
2017-07-25 23:45:41 +05:30
Luca Greco
3a310dee99 Bug 1382572 - Display Android options_ui of newly installed WebExtensions when about:addons is opened. r=mixedpuppy
MozReview-Commit-ID: HbTghvTdQ28

--HG--
extra : rebase_source : eed5d6b9642360d0b10ea3cf831806aa110f5a46
2017-07-28 14:58:44 +02:00
Wes Kocher
3c2dc39278 Merge m-c to inbound, a=merge
MozReview-Commit-ID: BgPWEtPV0sy
2017-07-31 17:49:47 -07:00
James Willcox
25dad4abf2 Bug 1381916 - Remove frontend support for plugins in Fennec r=nechen
MozReview-Commit-ID: Gkqe8Y5AMPV
2017-07-31 12:25:16 -05:00
Sebastian Hengst
804a36e668 Backed out changeset f5922a7ed25a (bug 1374620) for failing eslint at telemetry/tests/unit/test_TelemetrySend.js:358: ["os"] is better written in dot notation. r=backout 2017-07-31 14:44:34 +02:00
Rajesh Kathiriya
22dfa54ef4 Bug 1374620 - Enabled the ESLint dot-notation rule across mozilla-central r=standard8
MozReview-Commit-ID: FadrI2li43G

--HG--
extra : rebase_source : 5992bdde34bcc2421350433bc8c1e498a6bba848
2017-07-25 23:45:41 +05:30
Luca Greco
dd6ab49bcd Bug 1380575 - Fix aListItem is undefined when uninstalling from Androud about:addons page. r=mixedpuppy
MozReview-Commit-ID: HrJ17Tu81Hm

--HG--
extra : rebase_source : 537f3280c55b10597a88087ee70b98fccfedc0a2
2017-07-28 14:56:18 +02:00
Luca Greco
e3c2b4089a Bug 1380575 - Fix Android WebExtension options page rendered on other extension details. r=mixedpuppy
MozReview-Commit-ID: LXRhx1DKTek

--HG--
extra : rebase_source : c4511d9b962a297178ba32168ad707f24a92b1a9
2017-07-28 12:17:07 +02:00
Thomas Nguyen
0750620b3e Bug 1366384 - Add Google attribution on Safe Browsing warning pages r=francois,johannh,maliu
MozReview-Commit-ID: AetAscS1Bkw

--HG--
extra : rebase_source : 692c2730e62a5cf4580b19aa8f4e472f75fc97b2
2017-06-14 17:36:02 +08:00
Eugen Sawin
f97860703b Bug 1381983 - [3.0] Add context menu support for media elements. r=snorp 2017-07-25 14:41:49 +02:00