Commit Graph
2909 Commits
Author SHA1 Message Date
Jan Henning 7ad666eef8 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
2016-09-04 15:16:20 +02:00
Jan Henning 327cce367a 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
2016-08-20 16:59:59 +02:00
Jan Henning 6be282cd91 Bug 1277978 - Part 0a - Fix typo. r=liuche
MozReview-Commit-ID: 50wzRmX7iTz
2016-08-16 20:42:20 +02:00
Carsten "Tomcat" Book 0a2cd5ef84 merge mozilla-inbound to mozilla-central a=merge 2016-09-09 12:02:43 +02:00
Alastor Wu 9aa19c8a41 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
2016-09-09 09:51:12 +08:00
Alastor Wu 8cc7317cd8 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
2016-09-09 09:51:10 +08:00
Alastor Wu fae1de720b Bug 1290467 - part8 : rename 'ACTION_PLAY' to 'ACTION_RESUME'. r=sebastian
'ACTION_RESUME' should be more suit for its operation.

MozReview-Commit-ID: 4FRHaydVKu5
2016-09-09 09:51:08 +08:00
Alastor Wu c4340fe74b Bug 1290467 - part6 : remove redudant space. r=sebastian
remove one redudant space.

MozReview-Commit-ID: 1PdKL1EALAq
2016-09-09 09:50:32 +08:00
Alastor Wu 9189273547 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
2016-09-09 09:50:30 +08:00
Alastor Wu 6fede2de44 Bug 1290467 - part4 : create helper function. r=sebastian
wrap some code into initialize() and shutdown().

MozReview-Commit-ID: AiyABlyDEME
2016-09-09 09:50:28 +08:00
Alastor Wu 9ef6e819ba 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
2016-09-09 09:50:25 +08:00
Wes Kocher 6ea6642aa5 Merge m-c to inbound, a=merge CLOSED TREE 2016-09-08 15:28:31 -07:00
Michael Kaply 440e82867b Bug 1298500 - Don't explicitly set the startpane pref. r=liuche 2016-09-08 14:49:19 -05:00
Wes Kocher 5bd318d354 Merge fx-team to central, a=merge 2016-09-08 15:10:55 -07:00
Benjamin Dahse 7a3c984a3a Bug 961335 - Add ICODecoder Robocop tests r=ahunt
MozReview-Commit-ID: 9jtcfZCjAbd
2016-09-07 15:28:06 -07:00
Carsten "Tomcat" Book 9c3068b78c merge mozilla-inbound to mozilla-central a=merge 2016-09-08 12:01:17 +02:00
Andrzej Hunt af6c909b3d Bug 1300532 - Post: Rename isEnteringReaderMode()'s parameters for more clarity r=sebastian
MozReview-Commit-ID: 7Wub31YLGyS
2016-09-06 15:53:06 -07:00
Andrzej Hunt c32bf0bd1b Bug 1300532 - Ensure old and new URL are ordered correctly to show prompt when entering ReaderView r=sebastian
MozReview-Commit-ID: 4Yql0m3JV6M
2016-09-06 15:52:09 -07:00
Jan Henning 3a00023cb5 Bug 1299576 - Part 2 - Cancel edit mode when restoring a recently closed tab. r=sebastian
When restoring a recently closed tab from the corresponding home panel, we normally directly switch to the freshly recreated tab. However if we've entered the home panels through editing mode (as opposed to opening a new tab with about:home), editing mode takes priority and the restored tab is opened in background instead, because we return to the originally selected tab when exiting editing mode.

To fix this inconsistency, we introduce a new parameter for opening tabs from Gecko that cancels editing mode if necessary to allow for directly switching to the new tab.

MozReview-Commit-ID: 4iqPISmtNIx
2016-09-02 20:43:08 +02:00
Jan Henning 550b7c2df8 Bug 1299576 - Part 1 - Refactor BrowserApp's handleMessage to use a switch statement. r=sebastian
So much nicer than a chain of else ifs.

MozReview-Commit-ID: FbEtD4Odet1
2016-09-02 19:02:16 +02:00
Wes Kocher 19fd7a04a8 Merge m-c to autoland, a=merge 2016-09-08 15:29:04 -07:00
Grigory Kruglov 4b78c92d9e Bug 1300230 - Queue up incoming FxA push messages until FxAccountsPush is ready r=nalexander
MozReview-Commit-ID: 8BP7eWfdXte
2016-09-08 14:15:34 -07:00
Wes Kocher d38092fe50 Merge m-c to inbound, a=merge 2016-09-07 18:07:21 -07:00
Carsten "Tomcat" Book b95ddfd9ff Merge mozilla-central to autoland 2016-09-07 17:26:11 +02:00
Carsten "Tomcat" Book 868350dc99 merge mozilla-inbound to mozilla-central a=merge 2016-09-07 17:20:12 +02:00
Andrzej Hunt 1dad4a445e Bug 1299524 - Allow disabling FaviconView corner rounding via enableRoundCorners attribute r=sebastian
MozReview-Commit-ID: 1qtt7xlTsHP
2016-09-06 10:46:47 -07:00
Sebastian Kaspari eadc7278e5 Bug 1300543 - IconDownloader: Use final keyword where appropriate. r=ahunt
MozReview-Commit-ID: DhWIRPZf7rg
2016-09-06 13:58:35 +02:00
Sebastian Kaspari 59f322f32b Bug 1300543 - IconDownloader.downloadAndDecodeImage(): Correctly assign and close stream. r=ahunt
MozReview-Commit-ID: CYEOCCpraOr
2016-09-06 13:53:02 +02:00
Sebastian Kaspari c80ba4f18d Bug 1300543 - Use palette library instead of BitmapUtils.getDominantColor(). r=ahunt
MozReview-Commit-ID: LTwarAG5NNm
2016-09-06 10:05:32 +02:00
Sebastian Kaspari b97bd81c60 Bug 1300543 - FilterMimeTypes: Continue to filter mime types if one of them is empty. r=ahunt
MozReview-Commit-ID: GRFANWF1L2m
2016-09-05 17:37:13 +02:00
Sebastian Kaspari 998afa48fb 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
2016-09-05 16:44:33 +02:00
Sebastian Kaspari c5eb92e93f 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
2016-09-05 15:38:27 +02:00
Sebastian Kaspari 6a41da2bfa 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
2016-09-05 15:25:25 +02:00
Sebastian Kaspari 859e1e849d 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
2016-09-05 15:24:07 +02:00
Andrzej Hunt 9bfebb001b Bug 1298968 - Add comment explaining why TOPSITES is handled outside of switch r=sebastian
MozReview-Commit-ID: BFvz2qTm4vL
2016-09-06 10:06:58 -07:00
Zero One 13c2bb1540 Bug 1292191 - Remove unneccesary check for mShouldRestore. r=mkaply
MozReview-Commit-ID: 3amKuifhpfu
2016-09-07 16:35:26 -05:00
Sebastian Kaspari cc2d7c0af1 Bug 1280112 - LauncherActivity: Remove task flags from incoming intent. r=ahunt
MozReview-Commit-ID: 8ufNtiMc1sj
2016-09-06 17:58:46 +02:00
John Lin dd29a1419f Bug 1297307 - Add extra video duration element for EOS sample. r=snorp
MozReview-Commit-ID: 4QUTABCNT06
2016-08-30 17:40:49 +08:00
Farmer Tseng 9eb56eccb7 Bug 846203 - the user activity timer will be reset when the Wakelock is released(for Android). r=snorp
MozReview-Commit-ID: 8GN81YzNjGM
2016-09-05 16:52:18 +08:00
Sebastian Kaspari acde69a25a Bug 1300155 - IconTask: Disable debug logging. r=ahunt
MozReview-Commit-ID: 51pYsDqicNS
2016-09-05 10:32:07 +02:00
Sebastian Kaspari 613d4e249d Bug 1300484 - IconResponse: Throw if bitmap is null. r=ahunt
This will crash later anyways but throwing here will allow us to identify code
that creates a response with a null bitmap (This shouldn't happen).

MozReview-Commit-ID: LJMSsW51eXo
2016-09-05 11:46:27 +02:00
Sebastian Kaspari ba14e6d265 Bug 1300484 - IconDownloader: Check if best bitmap is not null. r=ahunt
MozReview-Commit-ID: 7A1u6EefKt9
2016-09-05 11:43:00 +02:00
Sebastian Kaspari fdcd219cee Bug 1300485 - DiskStorage: Re-open cache if it is closed (after clearing). r=ahunt
MozReview-Commit-ID: GX3q4YtRsDw
2016-09-05 11:21:21 +02:00
Julian_Chu 78bcc8e4bd Bug 1296748 - Do not unregister if target does not exist; r=jchen
in create(), only register listener if anchorHandle exits.
in opposite side, only unregister listener in same condition.

MozReview-Commit-ID: HHN23YcmwS
2016-08-29 23:56:41 +09:00
Phil Ringnalda 8254e4ffa5 Merge m-c to f-t 2016-09-05 17:05:44 -07:00
Andrzej Hunt 2ee586213d Bug 1297117 - Add documentation to stripAboutReaderUrl r=sebastian
MozReview-Commit-ID: Ibzhnk7LLmh
2016-09-02 12:35:47 -07:00
Andrzej Hunt 1c5588e547 Bug 1297117 - Make getUrlFromAboutReader private to avoid erronous usage r=sebastian
getUrlFromAboutReader can return null. There have been crashes caused by not checking this
result in the past. stripAboutReaderFromUrl is a safer version which returns the input URL
if necessary, and is probably what should be used in new code, hence we can make this method
private.

MozReview-Commit-ID: Lg7QWrpSE8F
2016-09-02 12:35:08 -07:00
Andrzej Hunt 44d851f606 Bug 1297117 - Replace unnecessary usage of getUrlFromAboutReader with stripAboutReaderUrl r=sebastian
In some of these cases we're duplicating the work of stripAboutReaderUrl. In the other cases
there is no effective difference, however switching to stripAboutReaderUrl allows us
to make getUrlFromAboutReader private, which should help prevent future errors.

MozReview-Commit-ID: BLeQkve2XIs
2016-09-05 12:56:49 -07:00
Sebastian Kaspari 869d84c9b1 Bug 1293710 - Group activity stream highlights by URL to avoid duplicates. r=ahunt
The same URL could be picked as highlight from history and from bookmarks.

MozReview-Commit-ID: 5vBHluZKfAN
2016-09-02 19:52:56 +02:00
Sebastian Kaspari 3499ca5bdb Bug 1293710 - Activity Stream Highlights: Only select actual bookmarks (no folders and other special types). r=ahunt
MozReview-Commit-ID: A5oV8vIIyhw
2016-09-02 19:37:05 +02:00