Commit Graph

21196 Commits

Author SHA1 Message Date
Jan Henning
eaed42e5c6 Bug 1301016 - Part 1 - Wait for custom event instead of pageshow for scroll position restoring in reader mode. r=ahunt
Some further post-processing happens after loading a page in reader mode, so the pageshow event is too early for restoring the scroll position.

The fix is to do the same thing that desktop does in bug 1153393 and wait for a custom event instead.

MozReview-Commit-ID: DuMA0JxnYEY

--HG--
extra : rebase_source : 4b24fedcea974cef4d916fc7e59768c160728b0c
2016-09-08 23:00:08 +02:00
Sebastian Hengst
d3a3614688 Backed out changeset 2b996739ade2 (bug 1302452) for failing test_group_mouseevents.html on Android. r=backout on a CLOSED TREE 2016-09-13 23:57:10 +02:00
Kartikaya Gupta
e1247cb010 Bug 1302452 - Rip out the filler view inside LayerView since we don't support older Android versions any more. r=rbarker
MozReview-Commit-ID: 5LrWNHmnUR5

--HG--
extra : rebase_source : 7e262a1c15ea014b646da70c731ec36fd9669dfb
2016-09-13 11:13:35 -04:00
Grigory Kruglov
01023ffde8 Bug 1300222 - Trigger heads-up notification mode for incoming tabs r=ahunt
MozReview-Commit-ID: JvEeWIizQVK

--HG--
extra : rebase_source : 8f4d4c5e07b3e2d3044ca8bcb7e6d00ffecbda45
2016-09-09 16:51:40 -07:00
Jan Henning
6e6cb544cc Bug 1277978 - Part 5 - Once we can access the panelStateChangeListener, use it to retrieve the cached tabs count when initialising the HistoryAdapter. r=liuche
While passing the cached tabs count to the HistoryAdapter in its constructor greatly simplifies getting the cached count into the adapter before the RecyclerView initialises, this relies on the History panel having the panelStateChangeListener available before the HistoryAdapter is created in onCreate().

MozReview-Commit-ID: 64IbAe6SaEq

--HG--
extra : rebase_source : fd6f9a4f1ca92804cd0bca4a355abf17bb784572
extra : source : cb1b540364d1846b58fb5f6ac329935d3f5201bc
2016-08-29 20:51:21 +02:00
Jan Henning
a9f09e54eb Bug 1277978 - Part 4 - Actually cache the recent tabs count when it updates. r=liuche
MozReview-Commit-ID: JUsM3qdxhIr

--HG--
extra : rebase_source : 77803ad4760a09088ce96440ef070ce7582673fe
extra : source : cbb19ca2d2454c1d4f938f96e0e34f54d93bf006
2016-09-10 13:51:35 +02:00
Jan Henning
61e7471407 Bug 1277978 - Part 3 - Allow the RecentTabsAdapter to indicate whether the tab count is reliable. r=liuche
After we've set the cached tabs count to display within the history adapter, we don't want to revise that number downwards as long as the RecentTabsAdapter hasn't yet checked all of its data sources.

MozReview-Commit-ID: BMpiaEb3kGQ

--HG--
extra : rebase_source : 433c041f1073fe8aff1b4dfc5620c4544e8478d8
extra : source : ec7d53dea918724ff888db3327186d6b09a5dfac
2016-08-20 17:49:34 +02:00
Jan Henning
077099afe5 Bug 1277978 - Part 2 - Allow saving a cached recent tabs count in BrowserApp. r=liuche
Getting the total number of recently closed tabs involves waiting for Gecko to actually send the closed tabs to the Java UI. This means that (unless there are some "Tabs from last time" present) when showing the history panel we always start out with the Recently closed folder hidden and then unhide (and animate) it once we've finally received the closed tabs.

Because this is visually distracting, we should cache the closed tabs count somewhere, so we can decide on the smart folder visibility as soon as the CombinedHistoryAdapter initialises.

MozReview-Commit-ID: 8uYCbM7eiSt

--HG--
extra : rebase_source : 1afe3c8a0f184272d5d05913ef3af8050b6e5d06
2016-08-29 20:03:12 +02:00
Jan Henning
35dc8e4b0e Bug 1277978 - Part 1 - Hide Recent Tabs smart folder if there aren't any closed tabs to be shown. r=liuche,rnewman
This involves making the number of visible smart folders dynamic, so the history adapter can properly display its contents.

MozReview-Commit-ID: 6b4V6IHB7BE

--HG--
extra : rebase_source : fc2e70f5ed0aa1961ffe464fcf67a1488f8eb91b
extra : source : 2b9260c4018b1005dea01e2b2c4548643db4264d
2016-09-04 15:16:20 +02:00
Jan Henning
329895d83a Bug 1277978 - Part 0b - Add target api annotation in BrowserApp. r=liuche
Otherwise Android Studio complains because it doesn't recognise our version switch.

MozReview-Commit-ID: 2QpD3nNSryK

--HG--
extra : rebase_source : 6b82ccf8c3fedee10688b4078882222cf231cb33
2016-08-20 16:59:59 +02:00
Jan Henning
bababef2dd Bug 1277978 - Part 0a - Fix typo. r=liuche
MozReview-Commit-ID: 50wzRmX7iTz

--HG--
extra : rebase_source : 4e93b0aca605427fa8adfe9a179bd93884a9a7c8
2016-08-16 20:42:20 +02:00
Patrick McManus
1d5bcef263 Bug 1301117 - update opportunisitic encryption r=hurley 2016-08-16 15:51:18 -04:00
Carsten "Tomcat" Book
0f2c669a48 merge mozilla-inbound to mozilla-central a=merge 2016-09-09 12:02:43 +02:00
Alastor Wu
e9a55e8604 Bug 1290467 - part10 : update audio focus related control operations. r=sebastian
Except controlling audio focus from gecko, the MediaControlService can also
decide whether needs to request or abandon audio focus.

MozReview-Commit-ID: G3iSYwd24JZ

--HG--
extra : rebase_source : dd29207d8c08176cd7a57f08d3361e4f29c4095a
2016-09-09 09:51:12 +08:00
Alastor Wu
ff8012b391 Bug 1290467 - part9 : remove 'ACTION_REMOVE_CONTROL'. r=sebastian
Remove 'ACTION_REMOVE_CONTROL' because it's as same as 'ACTION_STOP'.

MozReview-Commit-ID: 6KOj8srEuJA

--HG--
extra : rebase_source : 3b92e0f3d6485af4e9be97b1423804401b1496c7
2016-09-09 09:51:10 +08:00
Alastor Wu
b9bcdbf114 Bug 1290467 - part8 : rename 'ACTION_PLAY' to 'ACTION_RESUME'. r=sebastian
'ACTION_RESUME' should be more suit for its operation.

MozReview-Commit-ID: 4FRHaydVKu5

--HG--
extra : rebase_source : 76b405bf0b7a27f2ea7f27283230df146b71ccfc
2016-09-09 09:51:08 +08:00
Alastor Wu
75c540b002 Bug 1290467 - part6 : remove redudant space. r=sebastian
remove one redudant space.

MozReview-Commit-ID: 1PdKL1EALAq

--HG--
extra : rebase_source : 20ab4fd13893b7515a8baebac3df9a06af7bb550
2016-09-09 09:50:32 +08:00
Alastor Wu
97207d40a6 Bug 1290467 - part5 : change service's life time. r=sebastian
Now the life time of the MediaControlService would be as same as the Fennec app.
To make code flow more easily, requesting/abandoning the audio focus wouldn't
affect the media control.

We would mainly communicate with the media control via TabEvents.

MozReview-Commit-ID: KT59bII0HuN

--HG--
extra : rebase_source : d8f2c810f24ef6ea72a274db2b432ca8f8876d8e
2016-09-09 09:50:30 +08:00
Alastor Wu
5c5e340476 Bug 1290467 - part4 : create helper function. r=sebastian
wrap some code into initialize() and shutdown().

MozReview-Commit-ID: AiyABlyDEME

--HG--
extra : rebase_source : e13f4d1eef46207edd9d8d8cc956c2644f3b1e38
2016-09-09 09:50:28 +08:00
Alastor Wu
8b77ea4d53 Bug 1290467 - part3 : notify MediaControlService with event 'MEDIA_PLAYING_CHANGE'. r=sebastian
The 'MEDIA_PLAYING_CHANGE' is used for controling media control interface and
the 'AUDIO_PLAYING_CHANGE' is used for showing the tab sound indicator.

MozReview-Commit-ID: 8hZjC77Ju71

--HG--
extra : rebase_source : 3699ea482e89a5c2535defce8ca2689a180d5c49
2016-09-09 09:50:25 +08:00
Wes Kocher
c067786818 Merge m-c to inbound, a=merge CLOSED TREE 2016-09-08 15:28:31 -07:00
Michael Kaply
a3ca166bf8 Bug 1298500 - Don't explicitly set the startpane pref. r=liuche 2016-09-08 14:49:19 -05:00
Wes Kocher
b916384275 Merge inbound to m-c a=merge 2016-09-08 15:21:19 -07:00
Wes Kocher
8fbe7c895b Merge fx-team to central, a=merge 2016-09-08 15:10:55 -07:00
Carsten "Tomcat" Book
e3c2ddf887 Merge mozilla-central to mozilla-inbound 2016-09-08 12:42:45 +02:00
Carsten "Tomcat" Book
f4a16a723a merge mozilla-inbound to mozilla-central a=merge 2016-09-08 12:01:17 +02:00
Arseny Malkov
56ceb6506c Bug 1295531 - Change insets of bookmark arrow to look like history arrow. r=sebastian
MozReview-Commit-ID: AVDEnNDXvXX

--HG--
extra : rebase_source : cfca38f394ae75410d2b49d08161533ebd04c1d8
2016-09-08 11:45:33 +02:00
Makoto Kato
57fc90802b Bug 1299755 - Remove updates.properties from APK. r=sebastian
updates.properties uses on Fennec/XUL.  But after bug 786380, we use native version for update service.

MozReview-Commit-ID: CREAeLdlrJH

--HG--
extra : rebase_source : 1412c541e4c4f9e7d1bb98e2466ae6cc60c062e0
extra : histedit_source : 7a431e1ed942d9766fcd690e4b01bc7774203ba7
2016-09-08 13:25:59 +09:00
Benjamin Dahse
831a288828 Bug 961335 - Add ICODecoder Robocop tests r=ahunt
MozReview-Commit-ID: 9jtcfZCjAbd

--HG--
extra : rebase_source : 4a10ebd2cf90c9173a18990682014ee2ee77432a
2016-09-07 15:28:06 -07:00
Kannan Vijayan
c06523ac3b Bug 1292639 - Ask user permission before allowing navigator.publishServer. r=mconley r=ehsan r=sebastian 2016-09-08 14:36:53 -04:00
Andrzej Hunt
00e0685ea6 Bug 1300532 - Post: Rename isEnteringReaderMode()'s parameters for more clarity r=sebastian
MozReview-Commit-ID: 7Wub31YLGyS

--HG--
extra : rebase_source : f6a820f6cf2ca030897daad2f6bf215a78d82704
2016-09-06 15:53:06 -07:00
Andrzej Hunt
9590f3241f Bug 1300532 - Ensure old and new URL are ordered correctly to show prompt when entering ReaderView r=sebastian
MozReview-Commit-ID: 4Yql0m3JV6M

--HG--
extra : rebase_source : adde15b6f061c6ca64021416e7d6b09c35e2b301
2016-09-06 15:52:09 -07:00
Wes Kocher
ac33516b3c Merge m-c to autoland, a=merge 2016-09-07 18:07:50 -07:00
Wes Kocher
5cbc382303 Merge inbound to m-c a=merge 2016-09-07 17:54:24 -07:00
Carsten "Tomcat" Book
7c6c7db247 Merge mozilla-central to autoland 2016-09-07 17:26:11 +02:00
Carsten "Tomcat" Book
1c61ba654e merge mozilla-inbound to mozilla-central a=merge 2016-09-07 17:20:12 +02:00
Kannan Vijayan
f671b30c0f Backout cbe18f181112 for crashes - bug 1292639 2016-09-07 13:43:40 -04:00
Carsten "Tomcat" Book
d98e95abb8 Merge mozilla-central to autoland 2016-09-08 12:51:52 +02:00
Matthew Wein
cfad685755 Bug 1298178 - Support mozAddonManager on Fennec by importing amWebAPI.js r=rhelmer
MozReview-Commit-ID: GoaYn7oJYAF

--HG--
extra : rebase_source : 3976cf2f2210e4a5c989a806e6f863ec9782547e
2016-09-01 20:50:05 +01:00
Ralph Giles
186cacb131 Bug 1296403 - Update tooltool rustc to 1.11.0. r=mshal
Repacks of upstream builds of rust 1.11.0 stable with std libraries
for the appropriate targets. Remove the separate rust-std package
references since the new repacks include the necessary targets.

Also update clang and hazard builds to the latest toolchain.

MozReview-Commit-ID: K7oBxQZnLPu

--HG--
extra : rebase_source : 9f339ff52e9e2f6c28d4bb7a734b9f0eae43a47a
2016-09-06 13:09:56 -07:00
Andrzej Hunt
ceca466475 Bug 1299524 - Disable FaviconView corner rounding in Activity Stream topsites r=sebastian
We use the FaviconView to fill the majority of the card (i.e. full width, and approx 75% of the height)
- in that scenario rounding the corners looks odd.

MozReview-Commit-ID: 1e5HAwfcV5

--HG--
extra : rebase_source : e6c5168025e1ac3ad941e8fd6207960b37442373
2016-09-06 10:48:26 -07:00
Andrzej Hunt
0bee5d51ae Bug 1299524 - Allow disabling FaviconView corner rounding via enableRoundCorners attribute r=sebastian
MozReview-Commit-ID: 1qtt7xlTsHP

--HG--
extra : rebase_source : e24982d035fb3357eb1efd4a5952b968eb7af3dd
2016-09-06 10:46:47 -07:00
Sebastian Kaspari
a5a657d556 Bug 1300543 - IconDownloader: Use final keyword where appropriate. r=ahunt
MozReview-Commit-ID: DhWIRPZf7rg

--HG--
extra : rebase_source : 797987c944e445a4ea7e00a2373c83c2003c0c1a
2016-09-06 13:58:35 +02:00
Sebastian Kaspari
58d250abaa Bug 1300543 - IconDownloader.downloadAndDecodeImage(): Correctly assign and close stream. r=ahunt
MozReview-Commit-ID: CYEOCCpraOr

--HG--
extra : rebase_source : f0e05c79c531857d73ca5aea3f1dbabedeed6e23
2016-09-06 13:53:02 +02:00
Sebastian Kaspari
10fdd6498e Bug 1300543 - Use palette library instead of BitmapUtils.getDominantColor(). r=ahunt
MozReview-Commit-ID: LTwarAG5NNm

--HG--
extra : rebase_source : 44165c8f04cc5888147c7b6e0f0996f64f99f810
2016-09-06 10:05:32 +02:00
Sebastian Kaspari
e730285a31 Bug 1300543 - FilterMimeTypes: Continue to filter mime types if one of them is empty. r=ahunt
MozReview-Commit-ID: GRFANWF1L2m

--HG--
extra : rebase_source : b4993fdfc01f04397de6c5a2d2729b4de023ce5f
2016-09-05 17:37:13 +02:00
Sebastian Kaspari
f0847016ce Bug 1300543 - LegacyLoader: Only load if there's one icon URL left. r=ahunt
Let's try to load from the legacy loader only if there's one icon left and
the other loads have failed. We will ignore the icon URL anyways and try to
receive the legacy icon URL from the database.

MozReview-Commit-ID: Kr7gHXBuAs7

--HG--
extra : rebase_source : 7fbdd507fa2c0a9aa4223db1da6aa5fbc1aa4907
2016-09-05 16:44:33 +02:00
Sebastian Kaspari
80177742b4 Bug 1300543 - LegacyLoader: Skip loading from legacy storage if network download is permitted. r=ahunt
If we are allowed to load the icon from the network then skip loading from the legacy storage and just
load a fresh icon. This will avoid touching the legacy storage (disk) every time before downloading an
icon.

MozReview-Commit-ID: C9hYqISno6U

--HG--
extra : rebase_source : 6f19839c38d37916deb351b3e080e023e532a83f
2016-09-05 15:38:27 +02:00
Sebastian Kaspari
87a7500078 Bug 1300543 - IconRequestExecutor: Resize image before extracting color. r=ahunt
Running the color extraction algorithm on a smaller image will be much faster.

MozReview-Commit-ID: A42rzuQ3FDQ

--HG--
extra : rebase_source : 560e5e1a6711d8f34f12803e5aabf4f09e769706
2016-09-05 15:25:25 +02:00
Sebastian Kaspari
2df61cba23 Bug 1300543 - IconRequestExecutor: Add custom thread pool executor and thread factory. r=ahunt
The custom executor behaves like the one returned by Executors.newSingleThreadExecutor().
However the created thread will have a unique name ("GeckoIconTask") and this will make
tracing the thread much easier.

MozReview-Commit-ID: 7y0EMGmNLkG

--HG--
extra : rebase_source : 517d329df12ff101816c3a3f8e27f28aeffb6821
2016-09-05 15:24:07 +02:00