Граф коммитов

21789 Коммитов

Автор SHA1 Сообщение Дата
Gijs Kruitbosch cb6c0c81ac Bug 1322414 - part 2,3,4: use a separate 'primary' attribute for primary child browsers, r=bz,mconley
MozReview-Commit-ID: 2yb0WGFYBsH

--HG--
extra : rebase_source : 376171077c577e41e82cec5e994c425c6d9f2d80
extra : histedit_source : 39aad91381749a263042cd0452fe32019a1974b8
2016-12-09 09:23:24 -10:00
Carsten "Tomcat" Book 877ffa1db2 merge mozilla-inbound to mozilla-central a=merge 2016-12-15 14:17:53 +01:00
Tooru Fujisawa 25ecae81fc Bug 1321226 - Remove legacy generator from mobile/. r=sebastian 2016-12-15 16:54:46 +09:00
Grisha Kruglov eba14873a8 Bug 1319274 - Part 3: Allow pinning and unpinning of both Top Sites and Highlights r=ahunt
This commit introduces a special type of a pin, "Activity Stream pin".
It's identified by a fixed position of -1. Activity Stream pins are displayed inline
with top sites, at the very front. They are "non-positioned", as opposed to regular pins
which have a position on Top Sites grid. This approach was selected (as opposed to creating a
new kind of a "non-positioned pins bookmark folder") because it is simpler, does not
involve any migrations or sync changes, and is thus preferred in light of a moving
target that is the current vision for Activity Stream.

Two types of pins, regular ones and Activity Stream pins, are independent of each other.

Due to the fact that pins and bookmarks are almost the same thing, we can only figure our,
based on the underlying queries, the following ahead of time:
- pinned state of a pinned top site item (trivial case)
- pinned state of a non-pinned top site item (trivial case)
- bookmark state of a "bookmarked" hightlight item (trivial case)
- bookmark state of a non-pinned top site item

For all other combinations, states have to be looked up when user opens a context menu for an item.

MozReview-Commit-ID: 3KbOp9S4Pz7

--HG--
extra : rebase_source : a86893a235ee7c6c7d2215b9c8a3b56f986480a9
2016-12-14 16:23:40 -08:00
Grisha Kruglov 32c27d4420 Bug 1319274 - Part 2: Display a pin icon besides the Top Site title r=ahunt
MozReview-Commit-ID: BGpgJOeuRQn

--HG--
extra : rebase_source : e4a2f46f91c85bb4a7071361ba9da7d69f4d93da
2016-12-01 19:35:02 -08:00
Grisha Kruglov dcd0e6721f Bug 1319274 - Part 1: Use regular getTopSites method for A-S top sites r=ahunt
Since we want to include pinned sites in A-S Top Sites, this removes the "plain top sites"
query which excludes pinned sites.

Maximum number of suggested sites displayed is set so that they will fill out at most two "pages".

MozReview-Commit-ID: 8uynmwiaPkt

--HG--
extra : rebase_source : 763633fca5f9f606a8f6cfd1f4a4332273c34dee
2016-12-01 18:53:47 -08:00
Tom Klein f2ac7261a0 Bug 1313296 - Don't collect metadata for "about:" pages. r=Grisha
MozReview-Commit-ID: 6opB4lT85vs

--HG--
extra : rebase_source : 9c422ba61d4981907aa4c3068775e98de4c09fbf
2016-12-02 23:00:38 -06:00
Shubham 6da5cd3bb3 Bug 1155860 - open a shared link -r?ahunt
MozReview-Commit-ID: 6Vwfmpt4UQY

--HG--
extra : rebase_source : 20d2e8cdc22709de3cbcbfcd20f46b0b7a5c5266
2016-11-18 12:50:53 -05:00
Carsten "Tomcat" Book fa5c335f38 merge mozilla-inbound to mozilla-central a=merge 2016-12-13 16:04:16 +01:00
Jim Chen cc4198ee1a Bug 1322711 - 3. Convert JavascriptBridge to use Bundle events; r=gbrown
Convert JavascriptBridge, JavascriptTest, and other relevant code to use
the new Bundle events. We used the same "Robocop:JS" event for
communicating both ways before, but now that we have a unified bus, we
need two different events, "Robocop:JS" and "Robocop:Java" for two-way
communication.
2016-12-13 03:21:47 -05:00
Jim Chen e47caac9a9 Bug 1322711 - 2. Convert test-only events to Bundle events; r=gbrown
Convert events that are only used in robocop tests to Bundle events,
which are then used through Actions.expectGlobalEvent /
expectWindowEvent.

"Content:" prefix is added to "DOMContentLoaded" to follow the event
naming convention.

SelectionHandlerTest.java is removed because it's no longer used
anywhere.
2016-12-13 03:21:47 -05:00
Jim Chen e3b91096b5 Bug 1322710 - Don't use SpannableStringBuilder.equals; r=esawin
Don't use the system SpannableStringBuilder.equals implementation,
because of a bug in Android N+ that incorrectly compares spans.
2016-12-13 03:21:46 -05:00
Kit Cambridge 8558928fe7 Bug 1322954 - Fix incorrect `instanceof` negations. r=markh
MozReview-Commit-ID: PgQmAu9hbQ

--HG--
extra : rebase_source : 376b83af517442cc05bc46ff7ca36e6ac46b06e2
2016-12-12 13:50:10 -08:00
John Lin bbc583e1aa Bug 1322628 - record EOS buffer in CodecProxy to make sure it'll be released before ICodec.stop() is called. r=snorp
MozReview-Commit-ID: J9ISYhZqAqk

--HG--
extra : rebase_source : 2fb3c8b871079a3b4b004dd84a99711a7481f865
2016-12-09 11:42:22 +08:00
Andrzej Hunt cccfe60bef Bug 1319254 - Move Highlights title into separate item to make animation better r=sebastian
This results in the highlights title smoothly animating upwards with the remaining RecyclerView items.
Previously RV would crossfade between a panel containing both the welcome message AND the highlights
title, which means the Highlights title would vanish and reappear. This patch results in a more
correct and pleasing animation. We also upgrade to using a ViewStub for the welcome panel as part of
this commit.

MozReview-Commit-ID: GYxrSiqKeS5

--HG--
extra : rebase_source : d766347b74971874a28062b48cdf2a2880031608
2016-12-12 15:09:28 -08:00
Andrzej Hunt f4c188c23b Bug 1319254 - Add welcome panel to Activity Stream r=sebastian
MozReview-Commit-ID: FayZbZhvT7k

--HG--
extra : rebase_source : 566fe4d1d8b51bb2c2a073d7957e413f1ff4d0e2
2016-12-12 15:52:13 -08:00
Andrzej Hunt a984f57a13 Bug 1319254 - Pre: implement stable IDs for AS RecyclerView r=sebastian
MozReview-Commit-ID: KfAswxOU8Nw

--HG--
extra : rebase_source : 59d55261919e6b0728be5f8dd42c3661feb7846a
2016-12-12 14:25:03 -08:00
Andrzej Hunt ecc0fe9b54 Bug 1319254 - Pre: make final r=ahunt
MozReview-Commit-ID: FTb0p2T3mdo

--HG--
extra : rebase_source : 28e3dcbc0b2fe736b5a14640abc9ab8174f4987e
2016-12-01 14:02:19 -08:00
Andrzej Hunt 312f63a0c2 Bug 1314328 - Part 2: convert remaining firstrun pngs to webp r=nechen
This helps reduce apk size by 52kb in local builds.

MozReview-Commit-ID: 3Faz0kA6TKu

--HG--
rename : mobile/android/base/resources/drawable-nodpi/firstrun_account.png => mobile/android/base/resources/drawable-nodpi/firstrun_account.webp
rename : mobile/android/base/resources/drawable-nodpi/firstrun_bookmarks.png => mobile/android/base/resources/drawable-nodpi/firstrun_bookmarks.webp
rename : mobile/android/base/resources/drawable-nodpi/firstrun_data_off.png => mobile/android/base/resources/drawable-nodpi/firstrun_data_off.webp
rename : mobile/android/base/resources/drawable-nodpi/firstrun_data_on.png => mobile/android/base/resources/drawable-nodpi/firstrun_data_on.webp
rename : mobile/android/base/resources/drawable-nodpi/firstrun_readerview.png => mobile/android/base/resources/drawable-nodpi/firstrun_readerview.webp
rename : mobile/android/base/resources/drawable-nodpi/firstrun_signin.png => mobile/android/base/resources/drawable-nodpi/firstrun_signin.webp
rename : mobile/android/base/resources/drawable-nodpi/firstrun_sync.png => mobile/android/base/resources/drawable-nodpi/firstrun_sync.webp
rename : mobile/android/base/resources/drawable-nodpi/firstrun_tabqueue_on.png => mobile/android/base/resources/drawable-nodpi/firstrun_tabqueue_on.webp
rename : mobile/android/base/resources/drawable-nodpi/firstrun_urlbar.png => mobile/android/base/resources/drawable-nodpi/firstrun_urlbar.webp
extra : rebase_source : e9bc58a2f72f81700d914bdea5eb8701f52bb4fb
2016-12-07 12:42:06 -08:00
Andrzej Hunt 2cfb258a32 Bug 1314328 - Part 1: add solid background to reduce one firstrun png size r=nechen
Converting this image to webp results in artifacts on the rectangle, therefore
we can only try to minimise its size by removing the alpha channel. (All other
firstrun images will be converted to webp as they do not display these artifacts
after conversion.)

MozReview-Commit-ID: EdAgdfHna8C

--HG--
extra : rebase_source : 21a483c304607d6fd3876ddd52e14376c771578f
2016-12-07 12:38:52 -08:00
Andrzej Hunt 6c839a7fde Bug 1320879 - Add telemetry for AS context menu "add to homescreen" r=sebastian
MozReview-Commit-ID: G4jCpawmbTb

--HG--
extra : rebase_source : e3c366cb542874ab52becfcb4d76b79afdd73ed9
2016-11-30 10:50:36 -08:00
Andrzej Hunt d76a2e8c4b Bug 1320879 - Pre: add telemetry for HomeFragment->context menu->add to homescreen r=sebastian
MozReview-Commit-ID: HVrJZxWOLZn

--HG--
extra : rebase_source : ae18c7acd8eadea1e2a93d47cd8f83a6b2852ae1
2016-11-30 10:50:01 -08:00
Andrzej Hunt 8a6e5470ac Bug 1321008 - Add telemetry for AS context menu bookmark/unbookmark r=sebastian
MozReview-Commit-ID: qf3NmSr8hl

--HG--
extra : rebase_source : f63515f23f60287e76f8a7fb3104df1879a0e8aa
2016-11-30 11:11:55 -08:00
Shih-Chiang Chien b6996d911a Bug 1322605 - remove legacy TV 2.5 presentation device support. r=junior
MozReview-Commit-ID: kcXlIiWh0g

--HG--
extra : rebase_source : 377d8460d556e0e65f6971ddebb985d0aa8c75e3
2016-12-08 16:25:27 -10:00
Phil Ringnalda 0111ff534b Merge m-i to m-c, a=merge
MozReview-Commit-ID: BnSh8kutBaR
2016-12-10 08:27:52 -08:00
Eugen Sawin c103851dcd Bug 1322765 - [1.0] Move service declarations into application scope. r=rbarker 2016-12-09 13:51:29 -10:00
Shih-Chiang Chien 7ed7acac25 Bug 1322602 - remove Fennec-to-FxOSTV video casting. r=rbarker
MozReview-Commit-ID: KjEJUPkgRLo

--HG--
extra : rebase_source : 41ecdfec4caebc18934766120501a95ae2125e2f
2016-12-08 16:02:13 -10:00
Eugen Sawin f057928823 Bug 1322509 - [2.0] Fix log typo. r=jchen 2016-12-09 09:27:19 -10:00
Eugen Sawin b78834d7fd Bug 1322509 - [1.0] Initialize Gecko interface with the activity context instead of the application context. r=jchen 2016-12-09 09:25:44 -10:00
Jim Chen e9532b9a3f Bug 1321418 - Use GekcoBundle events in GeckoApp/BrowserApp; r=snorp r=sebastian r=gbrown
Bug 1321418 - 1. Use GekcoBundle events in GeckoApp; r=snorp r=sebastian

Switch GeckoApp to using GeckoBundle events everywhere. UI or Gecko
events are used if the event requires the UI or Gecko thread,
respectively, and background events are used for all other events.

There are changes to some other Java classes, such as SnackbarBuilder
and GeckoAccessibility, due to the switch to GeckoBundle.

For "Snackbar:Show", we need the global EventDispatcher because the
event can be sent to both GeckoApp and GeckoPreferences. Howveer, we
only want one listener registered at the same time, so we register and
unregister in GeckoApp's and GeckoPreferences's onPause and onResume
methods.

Bug 1321418 - 2. Use appropriate JS EventDispatcher to send GeckoApp events; r=snorp r=sebastian

Change JS code that sends events to GeckoApp to use either the global
EventDispatcher or the per-window EventDispatcher.

"Session:StatePurged" is not used so it's removed. "Gecko:Ready" in
geckoview.js is not necessary because it's only used for GeckoApp, so
it's removed from geckoview.js.

Bug 1321418 - 3. Use GeckoBundle events in BrowserApp; r=snorp r=sebastian

Switch BrowserApp to using GeckoBundle events, in a similar vein as
GeckoApp. UI or Gecko events are used if the event handlers required UI
or Gecko thread, respectively, and background events are used for all
other events.

Some other Java classes also have to be modified as a result of
switching to GeckoBundle.

Bug 1321418 - 4. Use global EventDispatcher to send BrowserApp events; r=snorp r=sebastian

Change JS code that sends events to BrowserApp to use the global
EventDispatcher instead of "Messaging".

Bug 1321418 - 5. Update usages of events in tests; r=gbrown

Update cases where we use or wait for events in tests.
2016-12-09 12:32:45 -05:00
Jim Chen 87a621d48b Bug 1319558 - Add new EventDispatcher support to Robocop interface; r=gbrown
Add expectGlobalEvent, expectWindowEvent, sendGlobalEvent, and
sendWindowEvent to the Robocop Actions interface, along with changes to
EventExpecter, to support GeckoBundle events on Gecko, UI, and
background threads.
2016-12-09 12:32:45 -05:00
Carsten "Tomcat" Book 4434d5f7c1 merge mozilla-inbound to mozilla-central a=merge 2016-12-09 13:32:03 +01:00
Boris Zbarsky 162c8766a4 Bug 1310796 part 4. Get rid of 'content-targetable' values for the 'type' attribute everywhere except tabbrowser.xml. Just use 'content' instead. r=gijs 2016-12-08 16:41:45 -10:00
Tom Klein 1368b01c9d Bug 1202861 - 2. Refresh tabs panel when compact tabs configuration changes. r=sebastian
MozReview-Commit-ID: HV9EQcLtCrE

--HG--
extra : rebase_source : 4eab2b439632ad60321b480f46aa408e6c32fc42
2016-11-28 09:27:24 -06:00
Tom Klein cb910a483d Bug 1202861 - 1. Create compact (two column) tabs tray option for portrait mode phones. r=sebastian
Changing the setting currently won't take effect until you rotate the tabs
panel (to cause it to be recreated); that will be fixed in the next commit.

MozReview-Commit-ID: HZfQRy8zubV

--HG--
extra : rebase_source : 78c3606eb55146afe3d59b0cdfa623999f09796b
2016-11-29 13:22:37 -06:00
Jim Chen f2d55370bb Bug 1321568 - Handle null and CharSequence prompt values; r=me
Correctly handle null values and CharSequence values (that are not
Strings) returned by prompt inputs. r=me for trivial patch.
2016-12-08 14:46:08 -05:00
John Lin 0c318ba97d Bug 1299068 - part 5: release/render buffers when VideoData sent to compositor. r=snorp
MozReview-Commit-ID: JmEKLKlJnaL

--HG--
extra : rebase_source : 5177ed35206aad3423b9960ea5e9e59459540cde
2016-11-30 17:55:52 +08:00
John Lin 28b5d4c496 Bug 1299068 - part 4: on Android, send one frame to compositor at a time. r=jya
MozReview-Commit-ID: IURBwIiv0q4

--HG--
extra : rebase_source : 88c864270dc4a610d94463ef53d94a89e8ac9e99
2016-11-23 15:14:28 +08:00
John Lin 049fe08d4b bug 1299068 - part 2: add parameter to IPC method for rendering output or not. r=snorp
MozReview-Commit-ID: 7Q5hdefoXIH

--HG--
extra : rebase_source : 68f71c322f01c03eca2bbecda41883b6cc148b0b
2016-11-23 15:18:09 +08:00
John Lin 06a7377e06 Bug 1299068 - part 1: code refactoring/clean-up r=snorp
- move all buffer related code from the Callbacks class to (Input|Output)Pocessor
- don't implicitly release output buffer to codec. Do it when client calls releaseOutput()
- fix buffer management problem in reset()
- minor code formatting issue

MozReview-Commit-ID: FmMjFBQax0s

--HG--
extra : rebase_source : 88fcaa58fe1cae1a8603bdbce2ad0cd6c6f7a21e
2016-11-22 15:36:37 +08:00
Andrzej Hunt 0d8088d742 Bug 1321799 - Use decimal format placeholder for filesize r=sebastian
%l seems to be for hour in 12hr clock (i.e. 1-12), but we're applying it to a filesize.
%d seems more appropriate in order to display the actual raw filesize.

MozReview-Commit-ID: AKTpYndm81o

--HG--
extra : rebase_source : 4107bd4ebbe6169ecd3823b2613099bb73ae81a1
2016-12-02 21:57:33 -08:00
James Cheng 0a71fb4e52 Bug 1321756 - Preference on media.decoder.recycle.enabled on Fennec. r=jya
MozReview-Commit-ID: GAjbykVSaqe

--HG--
extra : rebase_source : 66928272843aeccc5feedb4f490e975899e8384c
2016-12-02 15:24:15 +08:00
maliu a3e84536ef Bug 1317326 - Pause media playing when headset unplugged, r=alwu,sebastian
MozReview-Commit-ID: GHdFWPgPum1

--HG--
extra : rebase_source : bcc8acf49da5ffb46732233da6106513eb8ad64b
2016-11-25 21:23:05 +08:00
Nevin Chen 88effeb467 Bug 1320605 - The shrunk height just nee to cover the text itself. r=sebastian
MozReview-Commit-ID: BdoLEOKjvxw

--HG--
extra : rebase_source : 98f2be697c16d170d974ded868ad99dd1d2946c8
2016-12-02 11:12:24 +08:00
Carsten "Tomcat" Book fadc5a3e12 merge mozilla-inbound to mozilla-central a=merge 2016-12-02 09:23:52 +01:00
Wes Kocher b9a8598f48 Merge m-c to inbound, a=merge 2016-12-01 15:46:23 -08:00
Wes Kocher d360bdebf5 Merge inbound to central, a=merge 2016-12-01 15:31:47 -08:00
Jim Chen 8eb5680901 Bug 1321562 - Fix bugs in GeckoBundle.fromJSONObject; r=me
Fix a crash in GeckoBundle.fromJSONObject due to wrong values array
type. Also, fix a bug where the first element of a converted array is
repeated. r=me for trivial patch.
2016-12-01 12:25:22 -05:00
David Keeler 858957f033 bug 857627 - 2/4: remove nsIX509Cert.nickname r=Cykesiopka,jcj
In general, any code that was using nsIX509Cert.nickname should be able to use
the attribute displayName (if using nickname for display purposes) or the
attribute dbKey (if using nickname as a unique identifier for a certificate).

MozReview-Commit-ID: G9CfMJDfLqe

--HG--
extra : rebase_source : 1c464dab8f028568cedd5a42cf87428b8bb63fc0
2016-11-18 13:12:29 -08:00
Jan Henning d67b48b711 Bug 1320987 - Stop leaking tabs during test_session_zombification. r=gbrown
A subtest's cleanup function only runs at the very end, after *all* subtests have finished. This means that we cannot use it to close the test tabs if we want to reuse the tab variables during following subtests. If we did, we'd be leaking those previous tabs, meaning they remain open at the end of the test and cause possible problems for following tests as well as lots of "Unable to restore focus" messages in the log.

MozReview-Commit-ID: H87JQ5gcIAg

--HG--
extra : rebase_source : 5e870acba4c8ee05557f1ac0175bda12606b4e28
2016-11-30 21:53:33 +01:00