Commit Graph

20625 Commits

Author SHA1 Message Date
Thomas Nguyen
6075feb383 Bug 1025965 - Migrate browser.safebrowsing.enabled to browser.safebrowsing.phishing.enabled. r=paolo.mozmail
MozReview-Commit-ID: KFWofvaZuw7
2016-06-23 12:25:32 +08:00
Andrzej Hunt
ba3a5ca06f Bug 1282372 - Remove tab count transparency/flickering workaround r=sebastian
This issue has been fixed in the latest Android N preview, we should
remove the workaround to simplify the code.

MozReview-Commit-ID: 6xwIA5QzzhQ

--HG--
extra : rebase_source : dc84f80591ffe2fe779c1649f15376cc29d32662
2016-06-27 10:22:18 +02:00
Phil Ringnalda
98d7a9d9c5 Merge m-i to m-c, a=merge 2016-06-25 16:23:43 -07:00
Grigory Kruglov
26648ad110 Bug 1277467 - Add OfflineTabStatusDelegate for displaying tab-is-offline notifiations when appropriate r=sebastian
- Use Content:PageShow event to inform Tabs that they were actively loaded from cache
- Move offline notification logic away from browser.js and into a delegate, which displays notifications when
tab in question is user-visible

MozReview-Commit-ID: 2qCACHyWOlp

--HG--
extra : rebase_source : 457a42ebba5cfc32ab7dabce0a8a11d6511b9c08
2016-06-24 16:56:04 -07:00
Grigory Kruglov
c09864a3eb Bug 1277467 - Pre: Add ForegroundAwareDelegate to help track if Gecko tabs are user-visible r=sebastian
MozReview-Commit-ID: KZavLxL4u8V

--HG--
extra : rebase_source : 9c19cd72e0dc19d5c80bb1bf7fd2177c14862056
2016-06-22 06:31:27 -07:00
Wes Kocher
bf02c9e2f4 Merge m-c to fx-team, a=merge 2016-06-24 13:41:56 -07:00
Wes Kocher
ef24c234ed Merge inbound to central, a=merge 2016-06-24 13:37:12 -07:00
Sebastian Hengst
2e51abafdb Backed out changeset 1008f5b88e6b (bug 1270742) for failing browser_ext_browserAction_context.js. r=backout 2016-06-24 13:00:31 +02:00
Cykesiopka
577a05865b Bug 307081 - Make nsIClientAuthDialogs::ChooseCertificate() pass an nsIArray of nsIX509Certs, not strings. r=kats,keeler
This provides implementations of ChooseCertificate() with more flexibility, and
allows callers of ChooseCertificate() to be less complex.

A portion of this work involves reimplementing
nsNSSCertificate::FormatUIStrings() in JS and improving UI strings for l10n.

MozReview-Commit-ID: CE7Uc2ntwmZ

--HG--
extra : transplant_source : R%A8eC%CEO2%DC%20%F7%B4V%F3g%E6h%EB%D5%8D3
2016-06-24 00:12:16 -07:00
Cykesiopka
313db6b516 Bug 307081 - Clean up nsIClientAuthDialogs.idl and implementations. r=kats,keeler
This fixes the following in the IDL:
1. Misleading or unclear parameter names in the IDL. |cn| in practice is the
   concatenation of the CN of the server cert and the port of the server, and
   |issuer| is the Organization of the issuer cert of the server cert.
2. Use of the |wstring| type. |AString| is generally preferred, and has the
   benefit of letting implementations skip null checks due to the use of
   references.
3. Using an explicit |canceled| outparam instead of just setting a return type.
   There is no need for the outparam if the return type can be used.
4. Using |long| (int32_t) for |selectedIndex|. |unsigned long| (uint32_t) is
   more logical, and paves the way for future changes.

This fixes the following in the Android implementation:
1. Lack of checks to ensure the QueryInterface() call succeeded. In practice,
   the call will always succeed, but it's good practice to check anyways.
2. Setting a variable to an nsIPrefService instance initially, then later
   setting it to a pref branch instance later on. This is confusing and
   unnecessary.

This fixes the following in the desktop implementation:
1. Lack of null pointer checking.
2. Trying to get a parent window ref off a context that doesn't actually support
   doing so.
3. Setting a variable to an nsIPrefService instance initially, then later
   setting it to a pref branch instance later on. This is confusing and
   unnecessary.
4. Abusal of the CAPS bundle.
5. Unnecessary variables.
6. Variables declared far away from where they are used.
7. Variable shadowing.
8. Style issues.
9. Lack of documentation.

This also fixes the following:
1. Lack of localisation notes.

MozReview-Commit-ID: FTc6XecJd6h

--HG--
extra : transplant_source : %ABQ%8F%E6%A3%25%FE%94%E4%D6X%3D%28%2C%05%5E%FB%84.-
2016-06-24 00:12:11 -07:00
Cykesiopka
a9d0602102 Bug 307081 - Fix buggy Android implementation of nsIClientAuthDialogs::ChooseCertificate(). r=kats
This fixes two issues:
1. Passing a literal 1 as the |length| argument to formatStringFromName(). This
   is obviously incorrect and should instead be the length of the given arg
   list.
2. Directly setting the |selectedIndex| outparam to a number. XPIDL outparams
   on the JS side are actually objects that wrap the true outparam value, which
   must be accessed via |.value|.

MozReview-Commit-ID: BJObQfcV5G7

--HG--
extra : transplant_source : %11%B2TD%F5%C3%84%BD%C1%7B%3B%1Em%EC%CA%CAu%E5%3Dq
2016-06-24 00:12:01 -07:00
Jonathan Almeida (:jonalmeida)
e5b695ac3d Bug 1075476 - Removing download notification restarts Firefox r=sebastian
MozReview-Commit-ID: 35pn1nntcsV

--HG--
extra : rebase_source : 0b8725fcebf7bb2e64c2e0326b0c7cae2e6e23b4
2016-05-25 14:18:10 -07:00
Krishna
069781cf8d Bug 1280769 - Add Hyphenation Dictionary as separate kind. r=sebastian
MozReview-Commit-ID: G2JLzqpZ1wa

--HG--
extra : transplant_source : %27%C3%08%AF%C7%C0YC%23v%E4%97%CC%B7%7D%12qkTm
2016-06-21 02:06:35 +08:00
Matthew Wein
48b0f752e6 Bug 1270742 - Add support for default_icon in chrome.pageAction. r=kmag
MozReview-Commit-ID: D9uR0JUXJwx

--HG--
extra : transplant_source : %D2%EEUA%D1%C7Yp%88E%851%200n%90%D7%8F%0C%F4
2016-05-23 15:59:33 -07:00
J. Ryan Stinnett
c91928a953 Bug 1253399 - Avoid crashes by checking for QR scanner app. r=sebastian
MozReview-Commit-ID: 6bFrYyt4pzX
2016-06-23 11:59:57 -05:00
Nicholas Rosbrook
9dcffb4d88 Bug 1264835 - Updated DefaultDoorHanger so that the default CheckBox state could be specified as an option. r=sebastian 2016-06-17 18:29:15 -07:00
Michael Kaply
171f9d0312 Bug 1264705 - Add Qwant search plugin for mobile. r=florian,flod 2016-06-22 09:04:53 -05:00
Margaret Leibovic
1ce23ed88e Bug 1272348 - Remove insecure login doorhanger. r=sebastian
MozReview-Commit-ID: 2wQbyL13BrC

--HG--
extra : rebase_source : 80ce4d78b8033f43654051dc04978121cd5b7323
2016-06-20 11:57:32 -04:00
SUN Haitao
afa7290190 Bug 1264815 - Add a component to handle 'persisent-notification-click'. r=kcambridge 2016-05-12 09:28:46 +08:00
Wes Kocher
8c38ca1410 Merge m-c to inbound, a=merge 2016-06-24 13:41:15 -07:00
Dylan Roeh
8c31110735 Bug 1257454 - Remove shouldUpdateThumbnail() entirely, always call processThumbnail(). r=snorp 2016-06-24 09:25:29 -05:00
SUN Haitao
9b7b1f5140 Bug 1264815 - Add a 'showPersistentAlertNotification' method to GeckoAppShell. r=kcambridge 2016-04-17 21:18:20 +08:00
SUN Haitao
3e75c63fbd Bug 1264815 - Add a 'data' parameter to GeckoThread.createServices; r=jchen 2016-04-16 14:19:37 +08:00
Dylan Roeh
20f64ce5b6 Bug 1257454: Capture thumbnails for tabs even if tab overview is not currently shown. r=snorp 2016-06-17 16:00:45 +01:00
Dylan Roeh
35f22f7ca8 Bug 1280594 - Pause the compositor directly instead of bouncing off the Gecko thread. r=snorp 2016-06-17 16:03:57 +01:00
Sebastian Kaspari
5ef86607af Bug 1279488 - GeckoAppShell.uncaughtException(): Update state check. r=jchen
MozReview-Commit-ID: 3RhHEhYIwQU

--HG--
extra : rebase_source : af05df5ed4feba86ca69421bc43d4110ab0122ee
2016-06-14 13:39:31 +01:00
Kartikaya Gupta
33be75d853 Bug 1247280 - Bump the APZ content response timeout so that we get 99% accuracy. r=botond
MozReview-Commit-ID: FpmuxUcnmpZ

--HG--
extra : rebase_source : d35d82b1790ad3ac66fbca6db90784e47d104e13
2016-06-14 20:30:13 -04:00
Dylan Roeh
ff804e75cf Bug 1280369 - Check surface validity in GLController.resumeCompositor r=snorp 2016-06-16 09:57:30 +01:00
Chenxia Liu
995e1d45af Bug 1279807 - History panel smartfolder icons are much too big on HDPI devices. r=JanH
MozReview-Commit-ID: 3QzOl0Fh4Cm

--HG--
extra : rebase_source : 5a8056d4d61002a0de899539276a7f44dafcbee0
2016-06-15 11:26:07 +01:00
Carsten "Tomcat" Book
58167fd092 merge mozilla-inbound to mozilla-central a=merge 2016-06-15 06:24:33 +01:00
Jan Henning
5c94369e27 Bug 1279273 - Use correct synchronization object for session data parsing. r=sebastian
If the main thread has to wait for the session data parsing to finish - which is more likely when you've got many tabs open, meaning a large sessionstore.js file - it does so on "this", i.e. GeckoApp.
The session data parsing itself is done from within a Runnable, so we need to qualify "this" there if we want it to refer to GeckoApp itself, so we can successfully release any waiting threads through notifyAll().

MozReview-Commit-ID: 3LhJsI5rNU3

--HG--
extra : transplant_source : %27%27X%9CTm%A6%88%3F%1B%8Cm%0E4%F1%9D%9B%E5%F2%28
2016-06-12 19:45:50 +02:00
Sebastian Kaspari
42d21c59e5 Bug 1276696 - Put custom tabs support behind a build flag. r=mcomella
MozReview-Commit-ID: 44wtCsZWZv2

--HG--
extra : rebase_source : 2ab062e4f5155225d6f5fcd686cd7a0b974679f1
2016-05-30 16:48:45 +02:00
Sebastian Kaspari
2e5288b993 Bug 1276696 - Add dummy service for custom tabs. r=mcomella
Currently this service does not implement any of the callbacks. However it is
necessary to be detected as an app supporting custom tabs.

MozReview-Commit-ID: Hz99Gp9aQCX

--HG--
extra : rebase_source : b73730f5c4d497e4fef5ed9bab3ae1c50e43de61
2016-05-25 19:31:10 +02:00
Sebastian Kaspari
fbfb7a9f62 Bug 1276696 - Add CustomTabsActivity based on GeckoApp. r=mcomella
This activity doesn't do much yet and just has a layout including a GeckoView.
Some basic behavior from GeckoApp is working though: Context menus, floating
text selection, snackbars.

MozReview-Commit-ID: C6SJeYz609h

--HG--
extra : rebase_source : c65d8657ed795365b81c9bfeda41ac814760db8d
2016-05-25 19:58:17 +02:00
Sebastian Kaspari
38f5ea7b19 Bug 1276696 - Add custom tabs support library. r=mcomella
MozReview-Commit-ID: LXie1GiV4gV

--HG--
extra : rebase_source : 7316ebbe6512db64364c0a4f450e0758f79fcc5c
2016-06-10 11:01:11 +02:00
Kris Maglione
a1dac7caad Bug 1279392: [webext] Move API permission definitions to the schemas. r=aswan
MozReview-Commit-ID: 8m7wJrAbFwS

--HG--
extra : source : a00cf073f5c00380d4e42b13bc0cd3146b708845
extra : amend_source : d74ef90e88acbe62e33af3b5b9cf870d5c0a9d3e
2016-06-09 17:44:47 -07:00
Sebastian Hengst
f8035f62a8 Backed out changeset a00cf073f5c0 (bug 1279392) for failing mochitest test_ext_contentscript_create_iframe.html at least on Linux x64 opt. r=backout 2016-06-14 13:37:52 +02:00
Kris Maglione
b465305345 Bug 1279392: [webext] Move API permission definitions to the schemas. r=aswan
MozReview-Commit-ID: 8m7wJrAbFwS

--HG--
extra : rebase_source : cba877c0ef400917b0b7e5913895e64ebefb34b9
extra : amend_source : 6e943015e3e00854c431cbd653994a6734e66ce4
2016-06-09 17:44:47 -07:00
Sebastian Kaspari
281fbb76c7 Bug 1276696 - Introduce new LauncherActivity that will handle all incoming Intents. r=mcomella
We will need to dispatch Intent objects to different destinations (Browser, Custom Tab and eventually
progressive web apps).

The logic of TabQueueDispatcher is folded into this new activity.

MozReview-Commit-ID: 3P4eIvtAKEW

--HG--
extra : rebase_source : 3d7604a7bdbd2ea80602313e7bc66212a089994b
2016-05-15 14:25:12 +02:00
Sebastian Kaspari
99a05c4022 Bug 1279137 - Update media notification icons. r=ahunt
MozReview-Commit-ID: pGSX3yRhtQ

--HG--
extra : rebase_source : ce3c4db4cc36887dbf3d055029f515471d0adeb7
2016-06-10 17:18:57 +02:00
Mike Hommey
c5caa62fdf Bug 1278456 - Add the tooltool GCC library directory to LD_LIBRARY_PATH on Linux builds. r=mshal
Build slaves on automation are based on Centos 6, which doesn't have a
recent enough version of libstdc++ for our new requirements. But since
we're building with a recent GCC or clang with its own libstdc++, we do
have such a libstdc++ available somewhere, and the compiler picks it
when invoking the linker.

Problems start happening when we execute some of the built programs
during the build, like host tools (e.g. nsinstall), or target programs
(xpcshell, during packaging). In that case, we need the compiler's
libstdc++ to be used. Which required adding the GCC or clang library
directory to LD_LIBRARY_PATH.

Unconveniently enough, the clang 3.5 tooltool package we're using for
ASAN builds until we can update to at least 3.8 (bug 1278718) doesn't
contain libstdc++.so. So for those builds, pull the GCC package from
tooltool as well, and pick libstdc++ from there.
2016-06-12 18:52:15 +09:00
Kevin Lam
e730d38cc4 Bug 1245952 - Corrected comment in localization note to reference the corresponding string. r=mcomella 2016-06-08 18:08:00 +02:00
Andrzej Hunt
9bc92c22aa Bug 1279598 - Fix checkstyle trailing space issues r=me 2016-06-10 12:26:32 -07:00
Kit Cambridge
d7d8f3175e Bug 1279306 - Use the production push server URL on Android. r=margaret
MozReview-Commit-ID: Fy347g00Lx0

--HG--
extra : rebase_source : afc91bac255bdd21811c7e381c17477f6608fd7c
2016-06-09 17:13:39 -07:00
Michael Comella
db493df167 Bug 1261494 - Block Gecko from screwing with the client ID file by resetting the cache at the last minute. r=grisha
MozReview-Commit-ID: EZYrk8IiRiF

--HG--
extra : rebase_source : 420c4e802c6d234a594b9f17670791e0029e237e
2016-06-07 15:32:04 -07:00
Andrzej Hunt
a957702d89 Bug 1278221 - Manually find the toolbar in order to show options menu r=sebastian
Workaround for an Android support library bug

MozReview-Commit-ID: GD023N7tEWu

--HG--
extra : amend_source : 32aedac981aed488b144e67b74d41f5c89fa2218
2016-06-06 14:16:35 -07:00
Andrzej Hunt
780866f050 Bug 1278725 - Restore original "up" arrow scaling r=liuche
Before introducing the folder count, the bookmark folder icon
was set as the drawable on a TextView. This actually resulted
in scaling that doesn't preserve the aspect ratio. To reproduce
this in the new ImageView (added when we switched to a two-line
folder layout), we simply need to set the icon size explicitly
and scale to fit the whole area (as opposed to setting two
constraints and fitting while preserving aspect ratio).

The folder/reading-list icons are unaffected as they already
have the expected aspect-ratio, the back-arrow is now scaled
as expected.

MozReview-Commit-ID: Fl5JY3Lznau

--HG--
extra : amend_source : f3ad6cddd9a162953913b3161b9a5ceea6d3e15e
2016-06-09 10:32:24 -07:00
Carsten "Tomcat" Book
48d4127667 Merge mozilla-central to fx-team 2016-06-10 15:42:51 +02:00
Carsten "Tomcat" Book
4ee1ed2b8f merge mozilla-inbound to central a=merge
--HG--
extra : amend_source : 10247ace8885c608987dcf31d47368e0dec09b19
2016-06-10 15:39:23 +02:00
Andrzej Hunt
78fcdad415 Bug 1279332 - Backed out 97074800423c since it depends on a commit breaking background runnables r=sebastian
MozReview-Commit-ID: 6jYh8ipOw3q

--HG--
extra : amend_source : 4f555ee43fd63f66d533d7822c3659ba466096b1
2016-06-10 04:30:26 -07:00