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

22838 Коммитов

Автор SHA1 Сообщение Дата
Grigory Kruglov 719d2c720d Bug 1350196 - Part 1: Generate IV ourselves. r=rnewman, r=nalexander
MozReview-Commit-ID: 5rR8BQRcJoR

--HG--
extra : rebase_source : 0d474e3818f8b5abfd6c5904473cf3801a98b1cb
2017-03-27 18:40:02 -07:00
Dale Harvey f36bbc62c5 Bug 1347616 - Fall back to bookmark when manifest invalid. r=sebastian 2017-03-28 21:42:22 +01:00
Edouard Oger 466b73fea5 Bug 1346061 part 3 - Trigger a sync/email-verification-check on empty FxA push message. r=Grisha,nalexander
MozReview-Commit-ID: ABUm6LZij4M

--HG--
extra : rebase_source : 4818f95bf7dbe3f1c9891f3aeb7ade4c83d58870
2017-03-22 13:10:09 -04:00
Edouard Oger 965ba52d24 Bug 1346061 part 2 - Register device on FxA on Engaged state. r=Grisha,nalexander
MozReview-Commit-ID: 3HrXePgBxg6

--HG--
extra : rebase_source : ba6f805c4f313a8c317dd71fa34511c4544f0a54
2017-03-22 13:11:34 -04:00
Edouard Oger b2e227a8e3 Bug 1346061 part 1 - Expose getSessionToken() on State. r=Grisha,nalexander
We need to access sessionToken in the Engaged state in order to perform device
registration. We expose getSessionToken() on the base State class, to allow
customers to get the sessionToken easily instead of having to downcast the
TokensAndKeysState/Engaged states.

MozReview-Commit-ID: 8s2C350noUG

--HG--
extra : rebase_source : e0bc8bf7ebfdcb7a31bb4a6ddb5b928acf7baba9
2017-03-22 13:07:00 -04:00
Julian_Chu 351526c469 Bug 1348716 - Long click to copy URL in custom tabs r=sebastian
If user long click text area of ActionBar(URL or Title), then copy
current URL to clipboard.

MozReview-Commit-ID: EdVoMiX0Gt3

--HG--
extra : rebase_source : eecd78325162bb5c0a41436b90d0e10f5669030c
2017-03-21 11:16:28 +08:00
Jan Henning 40056ad049 Bug 1349793 - Speculatively swap history clearing test order. r=sebastian
This assumes that the observed test failure was caused by the async file delete triggered by the history sanitisation in test_sessionStoreClearTabHistory being somehow delayed long enough to only take place after we had already started test_sessionStoreClearFiles.

MozReview-Commit-ID: FenpPyb4sGZ

--HG--
extra : rebase_source : 3f14e1053b043a03aac1680ee56483243b5a4045
2017-03-25 18:36:33 +01:00
Phil Ringnalda e7905e8e6d Backed out 3 changesets (bug 1348803) for failures in audio and playback browser-chrome tests
CLOSED TREE

Backed out changeset 4ac559eea9ec (bug 1348803)
Backed out changeset 2ab6e0b8aec6 (bug 1348803)
Backed out changeset f966aef934b1 (bug 1348803)
2017-03-27 21:47:02 -07:00
Alastor Wu 7509784040 Bug 1348803 - part2 : modify event name to lower case letter. r=sebastian
Other events in browser.js are all lower case letter, also change these two to make them consistent.

MozReview-Commit-ID: LkzYUo6OrEA

--HG--
extra : rebase_source : 8b134332e32cae29a1f963e604f2507433c694b8
2017-03-28 10:58:32 +08:00
Alastor Wu 31d5fff67b Bug 1348803 - part1 : move fennec-only code to android/browser.js. r=sebastian
We could register media control related event after the tab has active media.
But we still need to register "audioFocusChange" in the beginning, because it
affect every tab even the tab has no active media.

MozReview-Commit-ID: 4pBKIR8F5tV

--HG--
extra : rebase_source : fc26c98ed7b33552b4eba5b20168394b1b1a4390
2017-03-28 10:57:50 +08:00
Tom Klein 6e212e59a3 Bug 1337933 - Make the tabs grid layout decorations work with RTL. r=maliu
This patch affects all grided tabs panel layouts: tablets, phones in landscape
mode, and phones in portrait mode with the "Compact tabs" setting on.

MozReview-Commit-ID: 5cqVJA57ARu

--HG--
extra : rebase_source : c71d4e028bcef921f6a2725d14aaf27940d87f5e
2017-04-06 19:52:10 -05:00
Nick Alexander a4d5b2310a Bug 1320310 - Post-process Gradle-produced Android manifest. r=sebastian
Layer on the hacks!  This:

1) Reinstates the <activity-alias android:name=".App"> that we have in
   the moz.build produced Android manifest.  I found no way to do this
   using placeholders or the manifest merger.

2) Culls manifest entries provided by
   com.google.android.gms.measurement.  We know they're not necessary,
   since they're not present in the existing Fennec Android manifest.

These are strictly workarounds to avoid doing the real work of fixing
the issues.  To fix 1), we'd need to migrate all existing users with
homescreen shortcuts to .App.  This could be difficult, especially if
partners have deployed packages out of our update control.  To fix 2),
we'll need to upgrade our Google Play Services to at least version
9.0.0 and then use the finer-grained AAR dependencies to not build
with the measurement split at all.

MozReview-Commit-ID: 21CaZ2KMeIa

--HG--
extra : rebase_source : c45694814145946425031064cf59d3b863d3bde4
2017-04-11 20:49:05 -07:00
Carsten "Tomcat" Book f2b3183dfe Bug 1338867 - Strip username/password after strip reader mode url prefix, r=sebastian
MozReview-Commit-ID: KCr7cBdetq7

--HG--
extra : rebase_source : 7aa4614a8664be1a40ac1a857adf92b592125e4d
2017-03-14 14:07:57 +08:00
Valentin Gosu 8460873144 Bug 1325341 - Racing cache with network should be disabled by default r=michal
MozReview-Commit-ID: CjidldaaJvQ
2017-04-10 14:22:21 +03:00
nechen e470b697ec Bug 1329157 - Safely collect caller app information. r=frank,sebastian data-r?bsmedberg
MozReview-Commit-ID: 7oXYArRyWKY

--HG--
extra : rebase_source : 61697025808692eab1a2f78fda8d552e525ffe8c
2017-03-14 12:06:08 +08:00
maliu 612509973d Bug 1350661 - Extract layout attributes into styles in order to separate api 15 and 17 style tree, r=sebastian
__Device_Configuration__|__o_Applied_Style_______________
      ldrtl-v17    v17   v15 |
             o      o     o  |  UrlBar.Entry
              \     |     |  |
               -----o     |  |  UrlBar.V17.Entry(start/end)
                     \    |  |
                      \   o  |  UrlBar.V15.Entry(left/right)
                       \  |  |
                        --o  |  UrlBar.Base.Entry(original style)

Though Android support RTL since API level 17(JB_MR1), it's really buggy at that moment.
This patch fix a severe UI layout attribute bug, which only happen on android 4.2 in RTL language context:
  If view attributes "start/end" and "left/right" are both written in a view layout xml, they will both be applied and cause UI abnormal. In API 18 and above, "left" will be ignored if "start" also exist.

For example, as below show, alignLeft and alignStart are both exist in ImageView. On android 4.2 with RTL context, it's width will both align Left and Start(Right), cause the symptom that ImageView have the same width and cover on the view "back."
```
<ImageView android:id="@+id/url_bar_entry"
  android:layout_alignLeft="@+id/back"
  android:layout_alignStart="@+id/back"
```

MozReview-Commit-ID: JptLuWX2w15

--HG--
extra : rebase_source : ef89a31f77f56f6f4e936e20644c243abfa7239f
2017-01-16 15:32:59 +08:00
Delphine Lebédel 407f92e9cf Bug 1036978 - Localization of un-used toolkit strings shouldn't be reported by compare-locales, r=Pike
Change filter_py to only report on toolkit files referenced in
mobile/locales/jar.mn.

We ignore netwerk, security/manager, devtools/shared, services/sync
on the module level.

MozReview-Commit-ID: 4YRwZHUD1gE

--HG--
extra : rebase_source : 2613456c9c3442ba2d27468fdc106c1778273f6f
2017-03-31 11:59:28 +02:00
Wes Kocher 23ba88918a Merge m-c to autoland, a=merge 2017-03-31 17:52:17 -07:00
Michael Kaply 5608a57441 Bug 1324045 - Move mobile searchplugins into mozilla-central. r=flod
MozReview-Commit-ID: 1IpUCM2EW6U

--HG--
rename : mobile/locales/en-US/searchplugins/amazondotcom.xml => mobile/locales/searchplugins/amazondotcom.xml
rename : mobile/locales/en-US/searchplugins/bing.xml => mobile/locales/searchplugins/bing.xml
rename : mobile/locales/en-US/searchplugins/duckduckgo.xml => mobile/locales/searchplugins/duckduckgo.xml
rename : mobile/locales/en-US/searchplugins/google-nocodes.xml => mobile/locales/searchplugins/google-nocodes.xml
rename : mobile/locales/en-US/searchplugins/google.xml => mobile/locales/searchplugins/google.xml
rename : mobile/locales/en-US/searchplugins/qwant.xml => mobile/locales/searchplugins/qwant.xml
rename : mobile/locales/en-US/searchplugins/twitter.xml => mobile/locales/searchplugins/twitter.xml
rename : mobile/locales/en-US/searchplugins/wikipedia.xml => mobile/locales/searchplugins/wikipedia.xml
rename : mobile/locales/en-US/searchplugins/yahoo.xml => mobile/locales/searchplugins/yahoo.xml
extra : rebase_source : a64c41b5df51388b8b482a562449c876cba09eaf
2017-03-29 15:39:23 -05:00
brainbreaker 2baa0a9e9f Bug 1271570 - Ask for storage permission when accessing file:// uris; r=sebastian
This commit adds a check for not prompting the user in case
 the permissions have already been granted for accessing
 file:// uris

MozReview-Commit-ID: A62AUqqTJSb

--HG--
extra : rebase_source : c5109c2fede109e1942cce240e26b12a220e8574
2017-03-29 00:43:43 +05:30
Sebastian Kaspari 9df10fe34f Bug 1351295 - Add ActivityStreamPreference to moz.build. r=Grisha
MozReview-Commit-ID: LAZbc7qsoqJ

--HG--
extra : rebase_source : 30c6c838cfdfd1d5adf55f00699b6f57436655d6
2017-03-28 16:48:04 +02:00
Edouard Oger b52bdd3388 Bug 1265314 - Set tabs record lastModified to clients.lastModified. r=nalexander
MozReview-Commit-ID: 84g7WXxRwdX

--HG--
extra : rebase_source : 3b041d9f3cb0b9285b5e7bad66a8f14f9c71410e
2017-03-24 15:40:34 -04:00
Jim Chen 9a410052b9 Bug 1351964 - Use UI thread for "Tabs:TabsOpened" event; r=sebastian
Use the UI thread for handling "Tabs:TabsOpened", so we don't race with
other tab events that are already handled on the UI thread.
2017-04-05 14:23:44 -04:00
Jim Chen 926495281b Bug 1321418 - Update menu items using the correct ID; r=sebastian
Regression caused by an incorrect ID used to update menu items.
2017-04-05 14:23:44 -04:00
Jim Chen 6962d3f0f6 Bug 1351000 - 2. Separate out GeckoView chrome/JS files; r=snorp
Put GeckoView chrome content and JS module files into their own
GeckoView-specific directories, to make it easier to build separate JARs
for GeckoView and Fennec.

--HG--
rename : mobile/android/chrome/content/GeckoViewContent.js => mobile/android/chrome/geckoview/GeckoViewContent.js
rename : mobile/android/chrome/content/geckoview.js => mobile/android/chrome/geckoview/geckoview.js
rename : mobile/android/chrome/content/geckoview.xul => mobile/android/chrome/geckoview/geckoview.xul
rename : mobile/android/modules/AndroidLog.jsm => mobile/android/modules/geckoview/AndroidLog.jsm
rename : mobile/android/modules/GeckoViewContent.jsm => mobile/android/modules/geckoview/GeckoViewContent.jsm
rename : mobile/android/modules/GeckoViewModule.jsm => mobile/android/modules/geckoview/GeckoViewModule.jsm
rename : mobile/android/modules/GeckoViewNavigation.jsm => mobile/android/modules/geckoview/GeckoViewNavigation.jsm
rename : mobile/android/modules/GeckoViewProgress.jsm => mobile/android/modules/geckoview/GeckoViewProgress.jsm
rename : mobile/android/modules/GeckoViewSettings.jsm => mobile/android/modules/geckoview/GeckoViewSettings.jsm
rename : mobile/android/modules/Messaging.jsm => mobile/android/modules/geckoview/Messaging.jsm
2017-04-05 14:23:44 -04:00
Jim Chen 9be065dee7 Bug 1351000 - 1. Generate separate omni.ja for GeckoView; r=glandium
Generate a separate omni.ja for GeckoView during the packaging step,
under dist/geckoview. Define a MOZ_GECKOVIEW_JAR flag to optionally
include/exclude files in the package manifest.
2017-04-05 14:23:43 -04:00
Julian_Chu 16ee3a27ec Bug 1352999 - Close activity if user asks to open page in full browser r=sebastian
Once user click "Open in browser" from menu, we are going to open a tab
in full browser, and close this activity. Therefore we won't have two
tabs which confuse user.

MozReview-Commit-ID: Co9gAdWweFX

--HG--
extra : rebase_source : 2f8f783783491ef480ca5266268d9d3b21bcab23
2017-04-13 18:47:23 +08:00
Delphine Lebédel b09171226d Bug 1348206 - Update central list.json with latest l10n changes, r=mkaply
MozReview-Commit-ID: KxVVsXxn4hy

--HG--
extra : rebase_source : 70fea2db666f97c07f210f777d4d91cfa40dc4cb
2017-03-30 17:00:27 +02:00
Eugen Sawin 8bc705604d Bug 1357287 - [1.1] Catch and ignore runtime exception during media codec query. r=snorp 2017-04-19 23:39:16 +02:00
Eugen Sawin 8d96f69cfa Bug 1357581 - [1.0] Don't override URL when restoring and avoid accessing uninitialized intent data. r=snorp 2017-04-19 22:52:03 +02:00
Eugen Sawin a439cf46a2 Bug 1332331 - [1.1] Add multiprocess GeckoView setting. r=snorp DONTBUILD 2017-04-19 22:35:17 +02:00
Eugen Sawin d6ef64ba74 Backed out changeset 07e9e794d4ff (bug 1332331) for wrong bug ID in commit message. r=backout
This reverts commit fa055f1b66eeeb9ddaf6f04172676ffe85e9e6f7.
2017-04-19 22:28:39 +02:00
Eugen Sawin 27037fbd73 Bug 1357287 - [1.1] Add multiprocess GeckoView setting. r=snorp 2017-04-19 22:10:54 +02:00
Nevin Chen 950025683c Bug 1317191 - Return when onPause is called before onResume and add Telemetry ping for future debugging. r=mcomella
MozReview-Commit-ID: HsLP061zOKb

--HG--
extra : rebase_source : 5b5414ddb9fd6e4f2d688073dc1b4ab08c16b353
2017-03-21 14:16:34 +08:00
Jan Henning 55037bf730 Bug 1265818 - Part 6 - Test PresState restoring on Android, too. r=sebastian
Expand the existing test by navigating to a different page and then going back after the tab has been restored again.

Proper restoration of the zoom level for anything other than the current history entry depends on resolution of bug 1312605.

MozReview-Commit-ID: Aspg2RRcY53

--HG--
extra : rebase_source : 4c70ebc82c682878506005007798db4fda0a613e
2017-02-21 19:47:30 +01:00
Jan Henning c425149110 Bug 1265818 - Part 5 - Tidy up and improve mobile scroll position test. r=sebastian
Just as the comparable test on desktop we should use a really big document with enough space for scrolling in both Y *and* X directions. We should also randomise the scroll positions used for testing instead of hardcoding them.

MozReview-Commit-ID: 9FvaOnaKJ6

--HG--
extra : rebase_source : af57219a92a7ad84a58c186fde9bd4c60ef16a76
2017-02-20 22:25:06 +01:00
Sebastian Kaspari b464c542ca Bug 1348820 - Always collect metadata from visited pages. r=Grisha
We are going to need this in the future and starting collection even before releasing
Activity Stream will create a better experience once we turn it on.

And this flag is hard to miss. So let's just get rid of it.

MozReview-Commit-ID: 5oDzXhpQdSA

--HG--
extra : rebase_source : c96800257070af9287d5236625150dbb62985c4b
2017-03-21 12:08:30 +01:00
Sebastian Kaspari d60800bd78 Bug 1348820 - Setup A/B experiment for enabling Activity Stream in Nightly. r=Grisha
This is a bit complicated. But most of that code should go away again as soon as
we can stop shipping the opt-out preference.

With this patch we have three flags that can be controlled via Switchboard:

* activity-stream: This is our global kill switch and allows us to pull the feature
  if needed. A user has to be in this experiment to ever see activity stream. The
  goal is to enable this experiment for 100% of the Nightly audience.

* activity-stream-opt-out: This is experiment will enable the Activity Stream by
  default. The goal is to enable this experiment for 50% of the Nightly audience.

* activity-stream-settings: This experiment controls the visibility of a setting
  to enable/disable activity stream (settings -> advanced -> experimental features).
  This allows us to control whether users can opt-in or opt-out of the activity
  experiment. The goal is to enable this for 100% of the Nightly audience.

MozReview-Commit-ID: BwEoTK6QMQx

--HG--
extra : rebase_source : dbe9815127c1aa620bbc2f1623aa4726438d3285
2017-03-20 19:46:39 +01:00
Kan-Ru Chen 31ae8ff78f Bug 1194751 - Part 2. Remove unused nsIScreen::LockMinimumBrightness and related methods. r=snorp
It's not used anywhere in gecko or addons. Remove it will make
removing PScreenManager easier.

MozReview-Commit-ID: K3BHnktO7wU

--HG--
extra : rebase_source : 6f481759d1fb82d222ea6a92ebfd50dbb6cb63d5
2017-03-09 19:16:29 +08:00
Alastor Wu ba792d4c7e Bug 1347648 - part3 : only request audio focus from gecko. r=sebastian
Media control would also be displayed for non-audible media, we shouldn't
arbitrary request audio focus . Only request audio focus from gecko which know
whether the media is audible.

MozReview-Commit-ID: Ke9DCYd0Qh2

--HG--
extra : rebase_source : 6ca2f83de877495f7249ee5e7f5cf2165f6f7f6b
2017-03-27 10:59:10 +08:00
Jan Henning f271a23fd4 Bug 1328868 - Part 10 - Make about:config handle text zoom changes a bit more gracefully. r=sebastian
This means scaling the the size of the images used for buttons and making sure that at large magnifications, the toolbar's text input properly moves into its own line instead of simply overlapping the preference immediately below. We also want to make sure that the text on any buttons remains vertically centred.

MozReview-Commit-ID: 7rUf1tucAzL

--HG--
extra : rebase_source : d227729955d15bc74d7502e116d0e71b97d76828
2017-02-18 15:50:08 +01:00
Jan Henning 5433c5ddda Bug 1328868 - Part 9 - Check that zooming via "font.size.systemFontScale" actually has any effect. r=sebastian
MozReview-Commit-ID: F2YtTER17xQ

--HG--
extra : rebase_source : f3366b0547de3993231378fc9d4abf530864a366
2017-02-10 19:21:32 +01:00
Jan Henning f1b64b555f Bug 1328868 - Part 8 - Add a test to check that flipping the Android pref enables/disables font inflation. r=esawin,sebastian
A basic check that the listener is indeed operational.

MozReview-Commit-ID: 6KijcsRaScI

--HG--
extra : rebase_source : c999d7bd78101f16efffedbfddbce89c83b39f9c
2017-03-24 18:24:52 +01:00
Jan Henning e8e6742199 Bug 1328868 - Part 7 - Move MakeObserver() into head.js r=esawin
We can use this function for our upcoming test as well, so we should move it into the common header.

MozReview-Commit-ID: H5ANDAlnpmm

--HG--
extra : rebase_source : 9d873d45ec7f701bc993e3b5f676c0638d58656d
2017-02-05 17:11:02 +01:00
Jan Henning 1126c640ca Bug 1328868 - Part 6 - Remove the old font size preference and its associated code and resources. r=sebastian
MozReview-Commit-ID: EgL3WFo6mdo

--HG--
extra : rebase_source : 5f5cf02433c83408283aeffaf8fa7cde6ecb5a62
2017-02-04 23:57:57 +01:00
Jan Henning 20e720f0f1 Bug 1328868 - Part 5 - Add a Java-side listener watching the new pref and the Android system font scale. r=sebastian
The state of the switch added in Part 4 is stored in our Android-side shared preferences. For this to have any actual effect on rendering, we now add a class that is initialised when Gecko starts up and listens to changes of that particular pref.

When it is turned on, we enable font inflation and add another listener for the system font scale, which then forwards the current font scale as well as any changes to Gecko, so mobile mode pages can be scaled correspondingly as well.

When the setting is turned back off again, the system font scale listener is stopped again and the Gecko font size settings reverted back to their default values.

MozReview-Commit-ID: GyffpZTQQX8

--HG--
extra : rebase_source : 23fcadbf04505f78ff1531c5d3c212d4f98eab9e
2017-02-05 13:22:49 +01:00
Jan Henning d19eabfecf Bug 1328868 - Part 4 - Add a new switch offering to honour the system font size to Fennec's preferences. r=sebastian
MozReview-Commit-ID: HZqxl6T90mZ

--HG--
extra : rebase_source : c262913f59eb776399267f250c67c8326b2c686a
2017-02-04 23:54:17 +01:00
Jan Henning 9606419e96 Bug 1328868 - Part 0 - Remove unneeded imports. r=esawin
MozReview-Commit-ID: 5mCrZ8aOAiw

--HG--
extra : rebase_source : 05322f92fd957c602f7d07fb1e1761f5fe71d92d
2017-02-03 22:50:30 +01:00
Andrew Swan f1085e3c9d Bug 1197420 Part 1 Schema groundwork for optional permissions r=kmag
MozReview-Commit-ID: JIfPYjxjFfM

--HG--
extra : rebase_source : 511dea13ceacc25a46505165962c1b01dfcc7b6e
extra : source : 4232cbc11710c9c9e9eb8757b54140e87307274f
2017-03-24 11:10:26 -07:00
Sebastian Hengst 2b746620b0 Backed out changeset b6af7d779efc (bug 1197420) on request of developer. r=backout 2017-03-25 17:40:08 +01:00
Andrew Swan 3cbd0a58c4 Bug 1197420 Part 1 Schema groundwork for optional permissions r=kmag
MozReview-Commit-ID: JIfPYjxjFfM

--HG--
extra : rebase_source : 511dea13ceacc25a46505165962c1b01dfcc7b6e
extra : source : 4232cbc11710c9c9e9eb8757b54140e87307274f
2017-03-24 11:10:26 -07:00
Makoto Kato 4d5b7f9b2d Bug 1350169 - Part 1. Remove Android backend for Alarm API. r=snorp
After landing bug 1300884 and B2G is dead, Web Alarm API is removed.  So we should remove Android backend for Alarm API. This implementation was for B2GDroid.

MozReview-Commit-ID: ItmjOQrVSgs

--HG--
extra : rebase_source : 1844b81c515c043245c9bed034698a1904f03286
2017-03-24 10:35:38 +09:00
Phil Ringnalda 25fd452953 Backed out 5 changesets (bug 1197420) for test_ext_permissions.js and test_chrome_ext_permissions.html timeouts on Fennec
CLOSED TREE

Backed out changeset 8a0125e00903 (bug 1197420)
Backed out changeset 925e3a9499ee (bug 1197420)
Backed out changeset 46e135035f10 (bug 1197420)
Backed out changeset 440bab141509 (bug 1197420)
Backed out changeset 3e690bbe8b5a (bug 1197420)
2017-03-24 20:43:24 -07:00
Andrew Swan a0a12d8239 Bug 1197420 Part 1 Schema groundwork for optional permissions r=kmag
MozReview-Commit-ID: JIfPYjxjFfM

--HG--
extra : rebase_source : 511dea13ceacc25a46505165962c1b01dfcc7b6e
extra : source : 4232cbc11710c9c9e9eb8757b54140e87307274f
2017-03-24 11:10:26 -07:00
Carsten "Tomcat" Book 5f408d092d Merge mozilla-central to mozilla-inbound 2017-03-24 14:29:00 +01:00
Matthew Wein 32477d70c1 Bug 1329027 - Fix regression caused by bug 1300808 r=kmag
MozReview-Commit-ID: CM5cyueJcNk

--HG--
extra : rebase_source : cd24e1485959f3d8513a1d5b4dfa60cca75fe1ba
2017-03-15 15:57:38 -04:00
Iris Hsiao 985089f6a8 Backed out changeset 565c6c66205d (bug 1295675) for android-checkstyle failure
--HG--
extra : rebase_source : 83190877a5cc199fc967738b686d4157a5cf76b3
2017-03-24 11:31:35 +08:00
Samael Wang d19130f17a Bug 1303838 - Switch to existing target tab when clicking links. r=smaug
Merge "DOMServiceWorkerFocusClient" & "DOMWebNotificationClicked"
to "DOMWindowFocus" event. Utilize the event to switch tab when
loading links to an existing target tab.

MozReview-Commit-ID: Hd1NkVkrJA1

--HG--
extra : rebase_source : 745c0d66c3afd8e487c616891c0f10bd820da1fe
2017-03-23 15:59:01 +08:00
Julian_Chu f8586f5270 Bug 1336373 - CustomTabsActivity supports tint in Action Button r=sebastian
If 3-rd party app specify to use tint for Action Button, use primary
text color as the tint color for Action Button.

MozReview-Commit-ID: 3sX0MH8P0dM

--HG--
extra : rebase_source : a50256dd16675f2a329eb182c6aed9e564386315
2017-03-20 13:59:43 +08:00
Nevin Chen 5a7c44e1cd Bug 1295675 - Allow app level preferences. r=sebastian
MozReview-Commit-ID: yv97PSkL5n

--HG--
extra : rebase_source : 3c8c931e093d470606612e7a679a0f4b10978881
2017-03-23 10:57:20 +08:00
Carsten "Tomcat" Book 332688962a Merge mozilla-central to mozilla-inbound
--HG--
rename : testing/web-platform/tests/storage/interfaces.html => testing/web-platform/tests/storage/interfaces.https.html
2017-03-23 13:57:16 +01:00
Carsten "Tomcat" Book 9b6d088496 merge autoland to mozilla-central a=merge
--HG--
rename : browser/components/preferences/in-content/tests/browser_advanced_siteData.js => browser/components/preferences/in-content-old/tests/browser_advanced_siteData.js
rename : dom/media/mediasink/DecodedAudioDataSink.cpp => dom/media/mediasink/AudioSink.cpp
2017-03-23 13:42:40 +01:00
Dylan Roeh b2b30c26f8 Bug 1349200 - Ensure mozglue is loaded before checking NEON compatibility in GeckoApp.onCreate(). r=jchen 2017-03-21 08:49:15 -05:00
Carsten "Tomcat" Book 62f6c37109 merge mozilla-inbound to mozilla-central a=merge 2017-03-22 14:26:27 +01:00
Nevin Chen c74aecf8f0 Bug 1329155 - Send telemetry when custom tab is used. r=sebastian data-r?bsmedberg
MozReview-Commit-ID: 2ulEeO4DPc4

--HG--
extra : rebase_source : e55048375db95946724f9c776a10fb7bc6138946
2017-02-22 14:33:22 +08:00
Gabriele Svelto 1ab1c1e41b Bug 1322611 - After a crash compute the SHA256 hash of a minidump and attach it to the crash ping; r=Ted, nchen
This patch changes the crashreporter client code as well as the crash service
code to compute a SHA256 hash of a crash' minidump file and add it to the
crash ping. The crash service code computes the hash on the fly before handing
over the crash to the crash manager; the crash manager will then add it to the
crash ping. The crashreporter client on the other hand sends the hash via the
ping it generates but it also adds it to the event file so that the crash
manager can pick it up and send it along with its own crash ping. On Fennec
the crashreporter activity takes care of computing the hash.

SHA256 hash computation uses nsICryptoHash in the crash service, the
java.security.MessageDigest class in Fennec, the bundled NSS library in the
crashreporter when running on Windows and Mac and the system-provided NSS
library under Linux. The latter is required because the crashreporter client
uses the system curl library which is linked to NSS and which would thus clash
with the bundled one if used together.

This patch introduces two new methods for the nsICrashService interface:
|getMinidumpForID()| and |getExtraFileForID()|, these reliably retrieve the
.dmp and .extra files associated with a crash and ensure the files exist
before returning. These new methods are used in the CrashService for
processing and will become the only way to reliably retrieve those files
from a crash ID.

MozReview-Commit-ID: 8BKvqj6URcO

--HG--
extra : source : a4d8291c56fcde00238ab3166bbe6af6dd602340
2017-02-16 07:36:57 +01:00
Jan Henning 1d3de902a3 Bug 1345460 - Implement FX_SANITIZE telemetry on Android. r=liuche
To gauge the impact of bug 1343995 on perceived shutdown times, we want to measure how long sanitising actually takes in practice on Android.

MozReview-Commit-ID: 3gSfT8IoO70

--HG--
extra : rebase_source : 19ffdfbf1005ae4beebaa0c9d8befea31e1aa01f
2017-03-08 20:17:06 +01:00
maliu 0f3d8554f7 Bug 1337440 - [RTL] Get drawing offset relatively when rtl and horizontal, r=sebastian
MozReview-Commit-ID: JZAnNJwxCyI

--HG--
extra : rebase_source : c8fba2c54ed9b8b9bdfb9547fe17021e69ed1b98
2017-03-22 14:55:31 +08:00
Phil Ringnalda 4a0b7c1001 Backed out changeset 5a84ab13274a (bug 1337440) for Android build bustage 2017-03-22 21:07:39 -07:00
maliu 3e39bf264a Bug 1337440 - [RTL] Get drawing offset relatively when rtl and horizontal, r=sebastian
MozReview-Commit-ID: JZAnNJwxCyI

--HG--
extra : rebase_source : 20e7104f47670446b365083a54114724c6391643
2017-03-22 14:55:31 +08:00
Jing-wei Wu fde16a6369 Bug 1339884 - Adjust DateTimePicker's upper and lower bound. r=Grisha
MozReview-Commit-ID: GuefY4Sp4wF

--HG--
extra : rebase_source : c96ea175bd479bb9a026197d32530183e5732603
2017-03-22 11:41:07 +08:00
Iris Hsiao fdb0902465 Bug 1329160 - follow up fix for android-checkstyle failure. r=me
commit cfdceed7ac0f3a01c0ba26e5cbad9bf00d7fc41d
Author: Nevin Chen <cnevinchen@gmail.com>
    add space

    MozReview-Commit-ID: G12OwXykTZx
2017-03-22 14:48:44 +08:00
maliu aad3222a91 Bug 1321981 - [RTL] ViewPager Support - part 4. Switch to RtlViewPager, r=sebastian
MozReview-Commit-ID: 2s695og8Umo

--HG--
extra : rebase_source : 783cc65585ebecc5f3a57658697f3d01985af885
2017-03-21 14:34:08 +08:00
maliu 3fc1180e7a Bug 1321981 - [RTL] ViewPager Support - part 3. Skip set current item if adapter is empty, r=sebastian
MozReview-Commit-ID: L82yxhdG5bd

--HG--
extra : rebase_source : 71615c37c4e5b4abc67d2eb92a6e4662dc59b149
2017-03-21 14:58:03 +08:00
maliu a699dea057 Bug 1321981 - [RTL] ViewPager Support - part 2. Notify dataset change with calling super, r=sebastian
MozReview-Commit-ID: LUvWH3Sq8IJ

--HG--
extra : rebase_source : 3a9a8d657619f877f0d17e8f5870113dfd87da0e
2017-03-21 14:49:40 +08:00
maliu 2f076a0ebd Bug 1321981 - [RTL] ViewPager Support - part 1. Import thirdparty RtlViewPager, r=sebastian
MozReview-Commit-ID: E3VP2SoRKTt

--HG--
extra : rebase_source : 975e73220f66ff00265082f28e1de247bf0ab3e7
2017-03-21 13:47:23 +08:00
Nevin Chen 74a6aca7ac Bug 1329160 - Send an event when warmup() is called. r=jchen,liuche,sebastian
MozReview-Commit-ID: LAz80Pt6KVV

--HG--
extra : rebase_source : aab97e5f5194ba0063d45495f566f267a3519978
2017-03-07 17:31:38 +08:00
Jan Henning 6a3517605c Bug 1346004 - Part 5 - Replace Gecko customtab tab attribute by a generic type attribute. r=sebastian
This'll allow customising context menu/session store/... behaviour in Gecko depending on the tab type, since in the future we might not only have special behaviour for custom tabs, but for web app tabs etc. as well.

MozReview-Commit-ID: LS6oGfO4KpR

--HG--
extra : rebase_source : 677a013a05cc683cae82c84864509d8f4799b474
2017-03-12 16:13:10 +01:00
Jan Henning 0c3fc3bbc6 Bug 1346004 - Part 4 - Filter non-browsing tabs from the TabsLayout/TabStrip. r=sebastian
Custom tabs etc. shouldn't show up in the main browser activity.

MozReview-Commit-ID: 1yrLZP6HJ3e

--HG--
extra : rebase_source : 6f3a1b8149d4747ef665f1a90a589940d12526a9
2017-03-11 20:48:54 +01:00
Jan Henning 82058233f4 Bug 1346004 - Part 3 - getNextTab() should fall back to browsing-type tabs if no tabs of the same type are available. r=sebastian
We always want at least one browsing type tab open to match current behaviour and assumptions built into the app, but the same doesn't hold true for other tab types. A CustomTabActivity instance e.g. only holds a single tab, so the lifetime of the tab is tied to the lifetime of the CustomTabActivity. If we're exiting the activity, we just want to close the corresponding tab without opening a new replacement for it.

Since we have to select some other tab instead in that case (so the selected tab in the tab list and the selected tab in Gecko remain in sync and so we always have a selected tab), getNextTab() therefore has to fall back to browsing-type tabs as a default if no other tabs of the same type are available.

MozReview-Commit-ID: IpvINlu5Qq9

--HG--
extra : rebase_source : 6b934209c06dd8ed2b199f92a768a37c028bb689
2017-03-11 20:57:54 +01:00
Jan Henning 8f872bf77f Bug 1346004 - Part 2 - Tabs helper functions for searching next/previous tab should take the Tab type into account. r=sebastian
MozReview-Commit-ID: DRBjBrndDWW

--HG--
extra : rebase_source : 0394f93bb767d11955b9e65fd8c91caace7235e6
2017-03-11 20:29:17 +01:00
Jan Henning 0c9a69e4ab Bug 1346004 - Part 1 - Keep track of a tab type on the Java tab object. r=sebastian
As long as the tabs are opened in the same Gecko browser window, splitting the Java UI tabs list into multiple parts breaks too many assumptions, so the easier solution is to allow setting a type attribute on each tab object, which will allow filtering of them later on.

MozReview-Commit-ID: 1PbxMkWTK47

--HG--
extra : rebase_source : ea7b82271b681e04590046a1d5cf9c2230729781
2017-03-11 20:04:07 +01:00
Jan Henning e6ea2d8f8c Bug 1346004 - Part 0 - Remove unneeded imports. r=sebastian
MozReview-Commit-ID: GsXHhrvNRSy

--HG--
extra : rebase_source : c4c0a23e5007be65465a8dde1c80f48a5f15227b
2017-03-12 16:18:48 +01:00
maliu bf7feabf64 Bug 1347476 - [RTL] Update TouchDelegate Rect for tab close button relatively, r=sebastian
MozReview-Commit-ID: 2ptzHWBVvUq

--HG--
extra : rebase_source : a8e65e3ff8328e7867812def7339a6374ac9c799
2017-03-16 11:11:13 +08:00
Julian_Chu 90c5f53183 Bug 1337238 - Involve ProgressBar to CustomTabsActivity for page loading r=sebastian
To add a progressbar to CustomTabsActivity then user knows page loading
progress.

MozReview-Commit-ID: L1Qc7Oj81bZ

--HG--
extra : rebase_source : c55813f271d3bbdaacf485809290c935d2b6ef7b
2017-03-10 15:29:35 +08:00
Julian_Chu 22ddc100d0 Bug 1337238 - Reuse some id resources in layout xml file r=sebastian
No need to create id resources for common widgets in each activities, e.g.
toolbar. Reuse id resources to make less ambiguous when invoking `findViewById`

In BrowserApp and CustomTabsActivity, both of them have ActionBar and
Progress-Bar. Let them use the same id resource.

MozReview-Commit-ID: 2jq18dwlBlm

--HG--
extra : rebase_source : 7d8d2bcb3da6969b1471e267527f27ea1bbeaab7
2017-03-10 12:39:27 +08:00
Wes Kocher b5269f8dbf Merge m-c to autoland, a=merge
MozReview-Commit-ID: BDOTGJBgUrr
2017-03-20 18:27:32 -07:00
Wes Kocher 4f5262444c Merge inbound to central, a=merge
MozReview-Commit-ID: 2omKclRg40c
2017-03-20 18:19:52 -07:00
Grigory Kruglov e7b03d35b1 Bug 1346438 - Specify X-I-U-S header value as 0 when uploading crypto/keys r=nalexander
MozReview-Commit-ID: GTcZUdvVU8E

--HG--
extra : rebase_source : 14318877ae4d52384090e99e7668e1deb19f3408
2017-03-17 19:09:43 -07:00
Grigory Kruglov 8009760a1c Bug 1346438 - Specify X-I-U-S header value while uploading meta/global r=nalexander
We upload meta/global in three scenarios:
- fresh start
- when it was modified after a successful sync
- when it was modified after an aborted sync

Use X-I-U-S header to assert what we believe about meta/global's presence (during freshStart)
and last-modified timestamp (in all other cases).

We might encounter a concurrent modification condition, manifesting as a 412 error. If we see such an error:
- on fresh start, we restart globalSession
- on regular upload, we request a re-sync of all stages

MozReview-Commit-ID: 3qyb6rUSOeY

--HG--
extra : rebase_source : 166be44aceb634b4e9fa3a8e20f7047cfec2af54
2017-03-20 16:40:13 -07:00
Dylan Roeh 863a41136f Bug 1338055 - Store a reference to the instance EventDispatcher in PromptService. r=jchen 2017-03-20 14:32:44 -05:00
Carsten "Tomcat" Book 43fb02d095 Merge mozilla-central to mozilla-inbound 2017-03-20 13:11:49 +01:00
Tomislav Jovanovic 6ec248d32c Bug 1339559 - Enable no-mixed-operators ESLint rule r=kmag
MozReview-Commit-ID: LjuiizBh1OK

--HG--
extra : rebase_source : 0423cca6e47ed593ec79d56c96a16f63628b15d1
2017-03-17 14:28:14 +01:00
Tomislav Jovanovic 8dd875bed5 Bug 1339559 - Identify script that resulted in non-structured-clonable data r=kmag
MozReview-Commit-ID: AURB4Qpwimh

--HG--
extra : rebase_source : 51c70e2d18745c49494b2dead4b5863eba88c08b
2017-03-13 09:04:45 +01:00
Sebastian Hengst c9f5cc6b45 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 8nsStTZt40O
2017-03-18 16:24:53 +01:00
Dylan Roeh e9e8faf6a8 Bug 1345267 - Check NEON compatibility in BrowserApp/GeckoApp.onCreate() and fail with an appropriate error message if necessary. r=jchen 2017-03-17 18:38:54 -05:00
Julian_Chu ff25bd957c Bug 1332546 - Add SiteIdentityPopup to CustomTabsActivity r=sebastian
Similiar to GeckoApp, once user click icon in ActionBar, it displays
a popup menu for site identity.

MozReview-Commit-ID: LpvhFjx2BSk

--HG--
extra : rebase_source : 6771f9d2b50da26306222072aa85d42b26a3ebce
2017-03-10 13:08:19 +08:00
Julian_Chu 9cd94a439f Bug 1332546 - add initialization checking to SiteIdentityPopup r=sebastian
If there are multiple SiteIdentityPopup instances.(ie. in GeckoApp and
in CustomTabsActivity), each instances will start receiving events once
attached to window. However it might have not call init() yet.

MozReview-Commit-ID: 1dIAUOTeTLg

--HG--
extra : rebase_source : e38d5b734fc057e44b3fe8bba82c6aedbcf65dd4
2017-03-10 12:54:09 +08:00
Julian_Chu 8222acd68f Bug 1332546 - Add CustomView to ActionBar of CustomTabsActivity r=sebastian
The CustomView has three components

  * Icon - for site info to indicate whether the visited site is security
  * Title
  * Url

Icon is for site info to indicate whether the visited site is security.
Its icon type is decided by SecurityModeUtil. All of the components' color
are the same as TextView color.

When onTabChanged happens, it updates CustView of ActionBar to reflect
current site security status. Sometimes the callback will be invoked rapidly
several times in very short time. To avoid icon twinkle, to add a delay when
updating CustomView.

MozReview-Commit-ID: KCu3XLObmmV

--HG--
extra : rebase_source : 4f2ad2517124b59168b6d6b5149800b4be4bd5a9
2017-03-09 15:17:36 +08:00
Julian_Chu dcd968069b Bug 1332546 - Apply default actionbar color r=sebastian
Designer provides a color code as default background color for
ActionBar.

Also get rid of `NO_COLOR`: -1 equals 0xFFFFFFFF, so it always ignores
white color.

MozReview-Commit-ID: 6YJDxsSOhkZ

--HG--
extra : rebase_source : f0c7e5f3d004eff2df557b4b6f448a534718384f
2017-03-08 11:43:24 +08:00
Julian_Chu 2a51952e86 Bug 1332546 - ensure ActionBar color is not translucent r=sebastian
Translucent color cause some rendering problem in Toolbar. For example,
if we set translucent color to toolbar and changes title, we will see
new title convers the old-translucent title.

Since ActionBar is usually on the top and nothing behind it, it does not
make sense use translucent color as its background.

MozReview-Commit-ID: LdZyuYZ7IgX

--HG--
extra : rebase_source : 5839a1ef14c28dc75f55772c3209b334b4b8391a
2017-03-08 11:13:48 +08:00
Julian_Chu cb7ce66ae0 Bug 1332546 - Refactory ActionBar by extracting methods to another class r=sebastian
ActionBar of CustomTabsActivity is getting complicated. There will be
more components in ActionBar, such as Site-identity-icon.

Move some action-bar related view code to another class.

MozReview-Commit-ID: I5sOSCQKnlv

--HG--
extra : rebase_source : 6822593af92c657c496339ba8df7769ea463c681
2017-03-03 13:02:16 +08:00
Wes Kocher b58db2c9cb Merge m-c to autoland, a=merge
MozReview-Commit-ID: Ccc8rDMJMfn
2017-03-17 11:13:53 -07:00
Carsten "Tomcat" Book 3e0a5441c6 Merge mozilla-central to mozilla-inbound 2017-03-17 14:55:15 +01:00
Carsten "Tomcat" Book d9ee923985 Backed out changeset 20537ebcebdb (bug 1303838) for eslint failure 2017-03-17 11:21:32 +01:00
Samael Wang 9e49902c09 Bug 1303838 - Switch to existing target tab when clicking links. r=smaug
Merge "DOMServiceWorkerFocusClient" & "DOMWebNotificationClicked"
to "DOMWindowFocus" event. Utilize the event to switch tab when
loading links to an existing target tab.

MozReview-Commit-ID: Hd1NkVkrJA1
2017-03-16 18:39:31 +08:00
Jim Chen b00f1b075f Bug 1344892 - Let native calls dispatch to XPCOM event queue; r=snorp
Bug 1344892 - 1. Add option to dispatch to priority queue; r=snorp

For the regular "gecko" option, change to dispatching to the XPCOM event
queue, and add a new "gecko_priority" option that dispatches calls to
the widget event queue. GeckoThread.waitOnGecko is changed to wait on
both the widget queue and the XPCOM queue. nsAppShell::SyncRunEvent is
changed to avoid a possible deadlock condition involving locking
sAppShellLock twice.

Bug 1344892 - 2. Update dispatchTo = "gecko" options; r=snorp

Update some existing dispatchTo = "gecko" options to "gecko_priority",
which typically involve UI events or JNI management calls like
disposeNative. As a rule, disposeNative is dispatched to the queue with
the least priority among the queues that other native members of the
same class dispatch to (i.e. "gecko_priority" if all other native
members dispatch to "gecko_priority", or "gecko" if any native members
dispatch to "gecko").

Bug 1344892 - 3. Update auto-generated bindings; r=me
2017-03-16 23:30:54 -04:00
Michael Kaply b02f7f556f Bug 1347830 - Remove actual list.txt and remaining references. r=flod
MozReview-Commit-ID: 9sU5SDuqCTu

--HG--
extra : rebase_source : b20757bcf1b000632ebe3e7bb2e1aa84ae4d794e
2017-03-16 10:05:13 -05:00
Florian Quèze 9c4d40bb54 Bug 1345294 - script generated patch (+ some hand cleanup) to replace {get,set}ComplexValue for nsISupportsString by {get,set}StringPref, r=Mossop. 2017-03-16 19:26:01 +01:00
Geoff Brown 7e2388e217 Bug 1347407 - Add an Android 7.0 AVD for mach android-emulator; r=me,test-only
Add support for 'mach android-emulator --version 7.0'. This AVD is somewhat
experimental but has worked well in my initial testing.
2017-03-16 10:44:42 -06:00
Jim Chen 8ae81abdc5 Bug 1345967 - Use global EventDispatcher for update messaging; r=sebastian
Use the global EventDispatcher for signaling update results. The event
listener in about.js must be unregistered after every event to prevent
memory leaks, so expectUpdateResult() is added and called whenever we
are expecting update results.
2017-03-16 12:37:41 -04:00
Carsten "Tomcat" Book ac913a6db5 merge autoland to mozilla-central a=merge 2017-03-16 15:34:56 +01:00
Dale Harvey dfeaec0a75 Bug 1336355 - follow up to fix lint. r=sebastian a=tomcat 2017-03-16 04:19:00 +01:00
Michael Kaply 77f33bf9f9 Bug 1300201 - Switch Fennec to use list.json. r=sebastian,r=flod
MozReview-Commit-ID: JNtFSCOQhJ

--HG--
extra : rebase_source : ee63b3d2bc9f82a0e0a9c8ca4ef752e7a32106b9
2017-03-09 14:58:57 -06:00
Dale Harvey 6895048221 Bug 1336355 - Open webapps in new activity. r=sebastian 2017-03-15 15:39:01 +00:00
Wes Kocher 253f5fb58d Bug 1036764 - Checkstyle followup a=bustage
MozReview-Commit-ID: DCTaCnF9SEi
2017-03-16 17:00:09 -07:00
nechen 5f8404dfd0 Bug 1036764 - Add telemetry for flash. r=bsmedberg,snorp data-r?bsmedberg
MozReview-Commit-ID: 1tsNZlEmx6s

--HG--
extra : rebase_source : 81bae8d6a3b4fb5c1ab037d4bb83722d3152dd86
2017-03-14 14:12:26 +08:00
John Lin 5a454c0c9d Bug 1345599 - part 2: queue empty buffer when fail to copy input data. r=snorp
MozReview-Commit-ID: 3XkxZDOk6PQ

--HG--
extra : rebase_source : 7a471590b31a687b2bed9fecb5dfc10884faaaaf
2017-03-14 14:53:36 +08:00
John Lin da26ca9e41 Bug 1345599 - part 1: reduce InputExhausted() calls to avoid input queue flood. r=snorp
MozReview-Commit-ID: Kgl77k9Cx7w

--HG--
extra : rebase_source : 0eb81069bb44e26dac3a3f62d782f912e381aebb
2017-03-14 14:51:52 +08:00
Wes Kocher 1d6765414b Merge m-c to autoland, a=merge
MozReview-Commit-ID: AcDLWqQhcBe
2017-03-15 14:29:24 -07:00
Carsten "Tomcat" Book f807b332df merge mozilla-inbound to mozilla-central a=merge 2017-03-15 13:12:42 +01:00
Iris Hsiao 4f73e7bc5f Backed out changeset 4f5a93b89b2b (bug 1344892) for Mochitest rc4 failures in Android 2017-03-15 17:37:39 +08:00
Jim Chen 61f2f7ff7b Bug 1344892 - Let native calls dispatch to XPCOM event queue; r=snorp
Bug 1344892 - 1. Add option to dispatch to priority queue; r=snorp

For the regular "gecko" option, change to dispatching to the XPCOM event
queue, and add a new "gecko_priority" option that dispatches calls to
the widget event queue.

Bug 1344892 - 2. Update dispatchTo = "gecko" options; r=snorp

Update some existing dispatchTo = "gecko" options to "gecko_priority",
which typically involve UI events or JNI management calls like
disposeNative.

Bug 1344892 - 3. Update auto-generated bindings; r=me
2017-03-14 17:47:16 -04:00
Jim Chen 1e1e74942d Bug 1347280 - Update EventDispatcher default map sizes; r=me
Update the default map sizes in EventDispatcher as determined
empirically. r=me for trivial patch.
2017-03-14 17:46:14 -04:00
Jim Chen c27710ffad Bug 1346942 - Fix "Menu:Clicked" event listener; r=me
Change the undefined `aTopic` reference in the "Menu:Clicked" event
listener to `event`. r=me for trivial patch.
2017-03-14 17:46:14 -04:00
Geoff Brown 834f5465ad Bug 1346423 - Add manifest for Android x86 6.0 AVD; r=me,test-only
This adds support for 'mach android-emulator --version x86-6.0', a fast,
modern Android emulation environment for testing x86 builds of Firefox.
2017-03-14 08:08:45 -06:00
Zibi Braniecki 7cb5e257c7 Bug 1346617 - Add LocaleService::SetRequestedLocales. r=jfkthame
MozReview-Commit-ID: FrziO9fOs3R

--HG--
extra : rebase_source : a2f1b5c31317c80666fbda334ea7bfcef28397b6
2017-03-12 12:34:56 -07:00
Wes Kocher 8f1654d5da Merge m-c to autoland, a=merge
MozReview-Commit-ID: FnlgTDNtM67
2017-03-14 17:24:12 -07:00
Alphan Chen 3a09e7487d Bug 1287660 - New implementation of nsIHandlerService for the JSON backend. r=Paolo
MozReview-Commit-ID: 46fQq1Pr8bT

--HG--
extra : rebase_source : a04153c9507b7f18c94b81d12e4167d1a12e9cce
2017-03-10 17:41:33 +08:00
Edouard Oger ec0e5f70b8 Bug 1254643 - Delete FxA device when Fennec Firefox Account is removed. r=Grisha
MozReview-Commit-ID: H4lJlXGYIBg

--HG--
extra : rebase_source : f5862b9591def7ee300c6f02ff7750ead043241a
2017-03-13 14:35:41 -04:00
Carsten "Tomcat" Book e078579f28 Merge mozilla-central to mozilla-inbound 2017-03-13 15:25:16 +01:00
Carsten "Tomcat" Book c1edc7067d merge mozilla-inbound to mozilla-central a=merge 2017-03-13 15:22:26 +01:00
Jan Henning a6d3db031b Bug 1346171 - Part 2 - Test synchronous session file deletion on clearing history. r=sebastian
MozReview-Commit-ID: JUrbSD2t41t

--HG--
extra : rebase_source : b563dc9944f13f1fc2fccdc1b88786282f8d6379
2017-03-12 11:13:33 +01:00
Jan Henning bb40130b5e Bug 1346171 - Part 1 - Check correct file before attempting do delete it. r=sebastian
MozReview-Commit-ID: 29UT51xRoVN

--HG--
extra : rebase_source : e197b97e53c46732beb5e356dd12932f288b3053
2017-03-12 11:13:22 +01:00
Dão Gottwald 40034ab5b7 Bug 1345432 - Clean up XUL checkbox styling, remove fallback styling and fix the focus indicator. r=karlt
MozReview-Commit-ID: CcqLKFVvLwC

--HG--
extra : rebase_source : 8665cf698dfc561a2bdc84de27a75bea00cd44f9
2017-03-13 13:12:37 +01:00
Julian_Chu 1cbe8809db Bug 1315937 - Add share item to menu if necessary r=sebastian
3rd-party app could ask to add default share item to menu, and share
the data url to other activities if user click the share-menu-item.

MozReview-Commit-ID: HkDyENJtFn9

--HG--
extra : rebase_source : 2312d7d0fcab7a7c45933bded7f173aface9912c
2017-03-02 17:05:28 +08:00
Julian_Chu cc55dbf6b2 Bug 1315937 - Add custom items to menu of CustomTabsActivity r=sebastian
If 3rd-party app provides any custom menu items, add them to PopupMenu
and handle corresponding pending intent.

MozReview-Commit-ID: 5STg49hsCWF

--HG--
extra : rebase_source : 34240988a8b89bacb8baef206cf9bf9f93dbf8ef
2017-03-02 16:44:56 +08:00
Julian_Chu a0f2a53d84 Bug 1315937 - Add basic custom menu to CustomTabsActivity r=sebastian
Besides custom-menu-items from 3-rd party apps, we designed a custom
menu which always has
  * buttons for Forward, Reload
  * One menu item for 'Open by Firefox'
  * a footer 'Powered by Firefox'

This patch adds a button as an anchor to standard menu. Once user click
it, to show a custom menu (GeckoPopupMenu) base on the anchor.

In current design, there is only one style for menu, regardless of Dark
or Light theme.

MozReview-Commit-ID: 5RMiGDlxLTU

--HG--
extra : rebase_source : 0d867d1b2aa4fd72dbf4eda14ab3ed5ce841f9cc
2017-03-01 13:42:10 +08:00
Julian_Chu be6df56f1d Bug 1315937 - add theme to CustomTabsActivity r=sebastian
CustomTabsActivity is usually be used by 3rd-party apps. Its look and
feel is usually different from GeckoApp. To give separated themes to
ensure any change to CustomTabs won't effect GeckoApp.

MozReview-Commit-ID: 7aBnnPXv3nQ

--HG--
extra : rebase_source : 019778cdadbe1ec6239e85e0fae1e873f453edcd
2017-03-01 11:43:35 +08:00
Julian_Chu cecf566099 Bug 1315937 - Only create option menu items once. r=sebastian
Menu items in CustomTabsActivity are static. Not necessary to create
items several times. However `onPrepareOptionsMenu()` will be called
before menu is shown.

Cannot use `onCreateOptionsMenu()` due to GeckoApp overwrited
`onCreatePanelMenu()` and pass different instance to sub-class. Since
CustomTabsActivity does not use custom menu, just overwrite
`onCreatePanelMenu()` should be safe.

MozReview-Commit-ID: 2oTN85GurqS

--HG--
extra : rebase_source : 3006b661eefab1cf191db6f9a660a7a618f4cb12
2017-02-23 18:42:18 +08:00
Eugen Sawin 03be261a54 Bug 1345976 - [1.1] Add GeckoView.loadUri based on bundle events. r=snorp,jchen 2017-03-13 12:26:06 +01:00
Eugen Sawin 2091e1b9ee Bug 1345966 - [1.0] Remove redundant browserDOMWindow overrides. r=snorp 2017-03-13 12:26:06 +01:00
John Lin d65535053d Bug 1346235 - part 4: recycle unpopulated input samples. r=jchen
MozReview-Commit-ID: Lr0aSQ0OfRg

--HG--
extra : rebase_source : 71f37d29c5d3a08e63171956fa5a02e716bcec0a
2017-03-17 15:06:39 +08:00
John Lin f737b4804b Bug 1346235 - part 3: forward shared memory allocation error to peer process. r=jchen
MozReview-Commit-ID: KDIMylv9tVt

--HG--
extra : rebase_source : fa4326ce1ca97a46ed9f3cb639a17dfa9950fe4e
2017-03-17 15:17:16 +08:00
John Lin bbbc27bc08 Bug 1346235 - part 2: translate memory error to I/O failure. r=jchen
MozReview-Commit-ID: F2ca0q2JQp

--HG--
extra : rebase_source : 9c23a461dbd2ebe3c61ee08e066af51d3b6fe249
2017-03-17 15:04:26 +08:00
John Lin 106b6939c6 Bug 1346235 - part 1: translate native error to Java exception. r=jchen
MozReview-Commit-ID: BcpfJLSzTvk

--HG--
extra : rebase_source : 53d6e9efa064b4a5ab32676d349a5c0cadb78ea7
2017-03-17 14:21:27 +08:00
Dragana Damjanovic dd.mozilla@gmail.com 1a2aee5585 Bug 1348675 - Remove the separate prefs for the pipelining on the android version of firefox. r=mcmanus 2017-03-19 09:38:00 +01:00
Wes Kocher 77632ccd1b Merge m-c to inbound, a=merge
MozReview-Commit-ID: JXQqoTEXxwz
2017-03-10 17:22:54 -08:00
Wes Kocher 3d76fcb59e Backed out changeset 0cbf58746cae (bug 1345267) under suspicion of causing android x86 chrome mochitest failures a=backout
MozReview-Commit-ID: CrUlU8uVeLx
2017-03-10 16:26:10 -08:00
Mike Conley a62a9a5c3c Bug 1345956 - Back out bug 1320732 (changeset 36be06539887) for sometimes making checkboxes / radio buttons hard to see. r=snorp
MozReview-Commit-ID: 4ZX0zT8JGTI

--HG--
extra : rebase_source : 5a8fd5b3dab9aef912d0e6b2cf3b025ccd12451e
2017-03-09 13:27:29 -05:00
Michael Kaply 4d301ff840 Bug 1345014 - Add max_aspect to support 16.74:9 screens. r=snorp
MozReview-Commit-ID: 9b7BveqBOX1

--HG--
extra : rebase_source : 931e7fe04325b419f394954d8672edf387768db9
2017-03-08 15:49:50 -06:00
Jim Chen 1ca602cde7 Bug 1343562 - Look for omni.ja from multiple sources; r=nalexander
Look for omni.ja to copy from in dist/fennec and in dist/fennec/assets,
but throw an error if we find multiple copies of omni.ja that are
potentially conflicting.
2017-03-10 16:29:41 -05:00
Sebastian Hengst 772d7c9a4f Backed out changeset ffeffef36f34 (bug 1344892) on request of developer for issues with Android reftests. r=backout on a CLOSED TREE 2017-03-10 21:53:00 +01:00
Jim Chen c96d20e3f4 Bug 1344892 - Let native calls dispatch to XPCOM event queue; r=snorp
Bug 1344892 - 1. Add option to dispatch to priority queue; r=snorp

For the regular "gecko" option, change to dispatching to the XPCOM event
queue, and add a new "gecko_priority" option that dispatches calls to
the widget event queue.

Bug 1344892 - 2. Update dispatchTo = "gecko" options; r=snorp

Update some existing dispatchTo = "gecko" options to "gecko_priority",
which typically involve UI events or JNI management calls like
disposeNative.

Bug 1344892 - 3. Update auto-generated bindings; r=me
2017-03-10 14:10:15 -05:00
Jim Chen e6b653c89a Bug 1346019 - Guard against null GeckoApp in GeckoUpdateReceiver; r=me
Don't dispatch the "Update:CheckResult" event if we don't have an active
GeckoApp. r=me for trivial patch.
2017-03-10 13:48:07 -05:00
Dylan Roeh 767a13c3cf Bug 1325021 - Set mDoorHangerPopup to null after destroying it. r=sebastian 2017-03-09 13:28:35 -06:00
Dylan Roeh dc1e041d78 Bug 1345267 - Check NEON compatibility in BrowserApp/GeckoApp.onCreate() and fail with an appropriate error message if necessary. r=jchen 2017-03-10 10:29:31 -06:00
Grigory Kruglov 9c2a8e93e0 Bug 1329793 - Re-subscribe for a push channel periodically r=eoger,nalexander
On startup and at the beginning of a sync we check how long it has been since we've subscribed
to a channel for fxa service. If it's been over 21 days, request re-subscription.

MozReview-Commit-ID: GzvPecZ9hTy

--HG--
extra : rebase_source : d0292acddbdd231502808469d4e5502a4ac93779
2017-03-08 18:14:43 -08:00
Carsten "Tomcat" Book 45b510057b Merge mozilla-central to autoland
--HG--
extra : rebase_source : dcccfd463c74743c692814695c9a7f0cba61e3ee
2017-03-09 11:26:20 +01:00
Carsten "Tomcat" Book 6d06361383 merge mozilla-inbound to mozilal-central a=merge 2017-03-09 11:23:25 +01:00
Eugen Sawin 30669c12dd Bug 1343613 - [1.7.1] Add missing file. r=me 2017-03-09 00:54:33 +01:00
Timothy Guan-tin Chien 0127cd03e2 Bug 1344431 - Tell parent the non-reader-able reader page is not readable, r=Gijs
Although regression window testing pin this to bug 1260276, I believe
this is a regression from bug 1126967. Bug 1260276 just make it more
visible because we stop automatically redirect users to the original
page.

This patch fix the bug by checking if the current page is in readerable
state (i.e. not error state), and send the message accordingly.

MozReview-Commit-ID: B5UJcPvVlAc

--HG--
extra : rebase_source : 630347e1f4256550857d84bc6e8a30036b114362
2017-03-06 16:31:47 +08:00
Tom Klein 13fdc02ec9 Bug 1331154 - 10. Add testReorderTabs UI test. r=sebastian
MozReview-Commit-ID: InLNHxFhClB

--HG--
extra : rebase_source : 3f1c33f2d38ab3455eb582cd882bfd07caf804d5
2017-02-25 19:28:36 -06:00
Tom Klein 5c35217bc3 Bug 1331154 - 9. Add TabsPanelComponent. r=sebastian
TabsPanelComponent and TabStripComponent share a lot of functionality, so factor
out TabsPresenterComponent.

MozReview-Commit-ID: Gnbo8gvowj6

--HG--
extra : rebase_source : 5f6738723893ac055354aafd7e872686598c0a8b
2017-02-25 19:28:05 -06:00
Tom Klein 43d91a5467 Bug 1331154 - 8. Add a long-press-then-drag test helper. r=sebastian
MozReview-Commit-ID: AZF76PBfXz0

--HG--
extra : rebase_source : 52d3f1f59a76e59059aec80b7f2290b84c45a4dd
2017-02-27 22:29:23 -06:00
Tom Klein 00ebd942d3 Bug 1331154 - 7. Update the tab strip after tabs are moved in the tabs tray. r=sebastian
The tabs tray is drawn on top of the tab strip, not instead of it, so the tab
strip needs to be updated after tabs are moved in the tabs tray before the tab
strip becomes user-visible again.

This introduces a slight change in behavior: *if* a move (of a tab matching the
privacy state of the tab strip) occurs while the tabs panel is open, the tab
strip will be scrolled to the currently selected tab when the tabs panel is
closed - previously the tab strip maintained its old scroll position if a tab
wasn't closed or added while the tabs panel was open.

MozReview-Commit-ID: Ipy5huthNYB

--HG--
extra : rebase_source : e7a3432cdad104b3cec45eeb798f239ae08dd9b9
2017-02-25 19:22:01 -06:00
Wes Kocher c1d1ad8a06 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 1huLsbfIJEB
2017-03-08 17:15:08 -08:00
Andrea Marchesini 12b54aa0f5 Bug 1299500 - Get rid of DeviceStorage API - part 10 - DeviceStorage, r=ehsan, r=billm 2017-03-08 20:15:45 +01:00
Dylan Roeh eb065403f2 Bug 1338055 - Prevent crash from destroying PromptService multiple times. r=sebastian 2017-03-07 08:59:10 -06:00
Carsten "Tomcat" Book f6885163cd Merge mozilla-central to mozilla-inbound 2017-03-08 14:28:34 +01:00
Luca Greco 5640e485c4 Bug 1345574 - Fix missing tab details in pageAction.onClicked events on Android. r=kmag
MozReview-Commit-ID: EqnNcku8LHE

--HG--
extra : rebase_source : 3a7e69856f60c5468fcd75edace54148137170bf
2017-03-08 18:52:17 +01:00
Jim Chen 53a1107cd1 Bug 1343075 - Use GeckoEditableSupport from PuppetWidget; r=masayuki r=rbarker r=snorp r=esawin
Bug 1343075 - 1a. Add TextEventDispatcherListener::GetIMEUpdatePreference; r=masayuki

Add a GetIMEUpdatePreference method to TextEventDispatcherListener to
optionally control which IME notifications are received by NotifyIME.
This patch also makes nsBaseWidget forward its GetIMEUpdatePreference
call to the widget's native TextEventDispatcherListener.

Bug 1343075 - 1b. Implement GetIMEUpdatePreference for all TextEventDispatcherListener; r=masayuki

This patch implements GetIMEUpdatePreference for all
TextEventDispatcherListener implementations, by moving previous
implementations of nsIWidget::GetIMEUpdatePreference.

Bug 1343075 - 2. Allow setting a PuppetWidget's native TextEventDispatcherListener; r=masayuki

In PuppetWidget, add getter and setter for the widget's native
TextEventDispatcherListener. This allows overriding of PuppetWidget's
default IME handling. For example, on Android, the PuppetWidget's native
TextEventDispatcherListener will communicate directly with Java IME code
in the main process.

Bug 1343075 - 3. Add AIDL interface for main process; r=rbarker

Add AIDL definition and implementation for an interface for the main
process that child processes can access.

Bug 1343075 - 4. Set Gecko thread JNIEnv for child process; r=snorp

Add a JNIEnv* parameter to XRE_SetAndroidChildFds, which is used to set
the Gecko thread JNIEnv for child processes. XRE_SetAndroidChildFds is
the only Android-specific entry point for child processes, so I think
it's the most logical place to initialize JNI.

Bug 1343075 - 5. Support multiple remote GeckoEditableChild; r=esawin

Support remote GeckoEditableChild instances that are created in the
content processes and connect to the parent process GeckoEditableParent
through binders.

Support having multiple GeckoEditableChild instances in GeckoEditable by
keeping track of which child is currently focused, and only allow
calls to/from the focused child by using access tokens.

Bug 1343075 - 6. Add method to get GeckoEditableParent instance; r=esawin

Add IProcessManager.getEditableParent, which a content process can call
to get the GeckoEditableParent instance that corresponds to a given
content process tab, from the main process.

Bug 1343075 - 7. Support GeckoEditableSupport in content processes; r=esawin

Support creating and running GeckoEditableSupport attached to a
PuppetWidget in content processes.

Because we don't know PuppetWidget's lifetime as well as nsWindow's,
when attached to PuppetWidget, we need to attach/detach our native
object on focus/blur, respectively.

Bug 1343075 - 8. Connect GeckoEditableSupport on PuppetWidget creation; r=esawin

Listen to the "tab-child-created" notification and attach our content
process GeckoEditableSupport to the new PuppetWidget.

Bug 1343075 - 9. Update auto-generated bindings; r=me
2017-03-07 22:34:39 -05:00
Phil Ringnalda 394951281e Backed out 2 changesets (bug 1343613) for Android crashes in nsWindow::GeckoViewSupport::EnableEventDispatcher]
Backed out changeset f9632a8f4b14 (bug 1343613)
Backed out changeset 4aa287ae1cec (bug 1343613)
2017-03-07 18:56:35 -08:00
Eugen Sawin 5728cb6576 Bug 1343613 - [2.3] Add GeckoView event queuing in EventDispatcher. r=jchen,snorp 2017-03-08 00:19:42 +01:00
Eugen Sawin 5db48b0409 Bug 1343613 - [1.7] Refactor native call queuing out of GeckoThread. r=jchen 2017-03-08 00:19:42 +01:00
Jim Chen 1294cccf48 Bug 1337467 - Convert observers to bundle events; r=rbarker r=sebastian
Bug 1337467 - 1. Convert "Window:Resize" observer to event; r=rbarker

Bug 1337467 - 2. Convert "ScrollTo:FocusedInput" observer to event; r=rbarker

Bug 1337467 - 3. Convert "Update:CheckResult" observer to event; r=sebastian

Also remove notifyCheckUpdateResult from GeckoInterface.

Bug 1337467 - 4. Convert "GeckoView:ImportScript" observer to event; r=sebastian

Bug 1337467 - 5. Convert accessibility observers to events; r=sebastian

Bug 1337467 - 6. Convert media/casting observers to events; r=sebastian

Bug 1337467 - 7. Convert "Sanitize:ClearData" observer to event; r=sebastian

Bug 1337467 - 8. Convert "Notification:Event" observer to event; r=sebastian

Bug 1337467 - 9. Convert BrowserApp observers to events; r=sebastian

Bug 1337467 - 10. Convert Tab observers to events; r=sebastian

Bug 1337467 - 11. Convert "Passwords:Init" and "FormHistory:Init" observers to events; r=sebastian

Bug 1337467 - 12. Convert Reader observers to events; r=sebastian

Bug 1337467 - 13. Convert Distribution observers to events; r=sebastian

Bug 1337467 - 14. Convert "Fonts:Reload" observer to event; r=sebastian

Bug 1337467 - 15. Convert RecentTabsAdapter observers to events; r=sebastian

Bug 1337467 - 16. Convert "Session:Prefetch" observer to event; r=sebastian

Bug 1337467 - 17. Convert "Browser:Quit" and "FullScreen:Exit" observers to events; r=sebastian

Bug 1337467 - 18. Convert SessionStore observers to events; r=sebastian

The "Session:NotifyLocationChange" observer is sent by browser.js and
requires passing a browser reference, so it's left as an observer.

Bug 1337467 - 19. Remove unused "Tab:Screenshot:Cancel" notifyObserver call; r=me

Bug 1337467 - 20. Convert "Session:Navigate" observer to event; r=sebastian

Bug 1337467 - 21. Convert "Locale:*" observers to events; r=sebastian

Bug 1337467 - Add log for unhandled events; r=me

Add back the log indicating no listener for an event, which can be
useful when reading logcat. r=me for trivial change.

Bug 1337467 - Don't return error from EventDispatcher when OnEvent fails; r=me

When a listener's OnEvent method returns an error, continue to dispatch
to other listeners and don't return an error from the dispatch function.
This avoids unexpected errors when dispatching events. r=me for trivial
patch.
2017-03-07 12:34:04 -05:00
Florian Quèze 37bbced84d Bug 1344711 - hand cleanup of remaining useless try blocks around get*Pref calls identified by eslint, r=jaws.
--HG--
extra : rebase_source : 18c027010838faba91f0ac699f9bde07f85500e7
2017-03-07 15:29:48 +01:00
Florian Quèze cd762cc83c Bug 1344711 - script-generated patch to remove try blocks around get*Pref calls, r=jaws.
--HG--
extra : rebase_source : c6e20e6e79b0ca5de751c52712d96cbea9432d26
2017-03-07 15:29:48 +01:00
Carsten "Tomcat" Book 41ba400533 Merge mozilla-central to mozilla-inbound 2017-03-07 15:18:32 +01:00
Carsten "Tomcat" Book 087da3f0d9 merge mozilla-inbound to mozilla-central a=merge 2017-03-07 15:13:31 +01:00
John Lin 434199e7be Bug 1340160 - catch more local and remote Java exceptions. r=snorp
MozReview-Commit-ID: JkfIFsKc5oe

--HG--
extra : rebase_source : 8f2a437a20ebdf803b90d9cefa1088de02037887
2017-03-06 14:30:00 +08:00
Phil Ringnalda 9676504256 Backed out changeset 00daf2c5342a (bug 1340661) for Android reftest failures in ua-style-sheet-checkbox-radio-1.html 2017-03-07 20:57:57 -08:00
Randall Barker 1b04875fd3 Bug 1344517 - Keep dynamic toolbar visible while page is loading r=kats 2017-03-06 14:01:46 -08:00
Jim Chen 3f746133a9 Bug 1337910 - Notify observers from Gecko event queue; r=snorp
Call NotifyObservers from the Gecko event queue instead of the Android
event queue, to better support Promises in notified JS code.
2017-03-06 15:32:37 -05:00
Wes Kocher bfc6ee87c5 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 7cTf6LvHTEo
2017-03-07 16:44:35 -08:00
Mike Conley 9036c3c896 Bug 1340661 - Manually draw checkbox and radio frames on Android. r=snorp,tnikkel
MozReview-Commit-ID: 8IiaRZNJs16

--HG--
extra : rebase_source : 8844292c6bbfec709752a51d293fc3b9bdfdced8
2017-03-03 18:36:12 -05:00
suman 165770f91e Bug 1326374 Changed the method spelling from Lollopop to lollipop. r=sebastian,walkingice
MozReview-Commit-ID: FSOglE5UuRa

--HG--
extra : rebase_source : 0f4d67bc9c22e3e2038d931d9c86f7d153f2a5a4
2017-02-25 22:06:07 +05:30
Tom Klein c68bc06849 Bug 1331154 - 6. Notify session store when a tab is moved. r=JanH
MozReview-Commit-ID: 66PqTqMiy0T

--HG--
extra : rebase_source : 99fa467f136a8ba7d2a970fc5f416c0bf952f9a3
2017-02-02 21:32:26 -06:00
Tom Klein 9994c5b150 Bug 1331154 - 5. Notify browser.js when a tab gets moved. r=sebastian
Session store will be notified in the next patch.

MozReview-Commit-ID: APTJykdnMF2

--HG--
extra : rebase_source : f3cdd3e5529f470834c32d6ae2289a6d272cba67
2017-02-02 21:02:51 -06:00
Tom Klein 8494bb4923 Bug 1331154 - 4. Don't use deck for user-visible tabs order. r=JanH,sebastian
Every way I've tried to move a browser in the deck results in the browser being
reset (it loses its docShell and contentDocument).  So now we treat
deck.children as a set of browsers instead of a list, and make BrowserApp._tabs
the sole keeper of the user visible tabs list order.  That means
deck.selectedIndex should no longer be used to get the user visible index of the
currently selected tab (deck.selectedPanel is still valid), and that all
additions to deck can be appends.

Note if this gets reverted at some later date: there's currently a bug, which
this change renders moot, where we reinsert a close-undo tab correctly in the
_tabs list, but incorrectly append it to the deck instead of inserting it.

MozReview-Commit-ID: Id7FR1p1nfN

--HG--
extra : rebase_source : 1506f513e653c67d066601fb9038bee098be9479
2017-02-12 16:17:29 -06:00
Tom Klein f892b6de0a Bug 1331154 - 3. Add a cache to remember the position of the last tab move. r=sebastian
MozReview-Commit-ID: 5gEpwYuphKm

--HG--
extra : rebase_source : 52da5edee5e8ebdb797cdd3d17787156eba66796
2017-02-02 15:55:25 -06:00
Tom Klein e58cc999fc Bug 1331154 - 2. Update the tabs list in Tabs when a tab is moved. r=sebastian
A cache to remember the position of the tab that was just moved will be added in
the next commit.

MozReview-Commit-ID: 5V4FSpcJ69Z

--HG--
extra : rebase_source : b81d9f4de6d72244ec314d8edf27397fbe601668
2017-02-05 10:47:47 -06:00
Tom Klein be99c1abe9 Bug 1331154 - 1. Add TabsLayout support for reordering tabs. r=sebastian
Future commits will update the tabs lists in Tabs and gecko; for now we're just
updating the TabsLayoutAdapter list.

When considering some of the changes in TabsTouchHelperCallback, note that
TabStripView uses the new drag and drop, but not swipe to close.

MozReview-Commit-ID: EEseqmVIZmY

--HG--
extra : rebase_source : 779b8ac3f0f9b7b57f9932205890b564aea86d9d
extra : source : 54bfd72900af26472346f75f9fe50334ed273481
2017-02-02 17:15:27 -06:00
Sebastian Hengst 9913356b39 Backed out changeset 8bd27accc2a0 (bug 1340661) for mass-failing on Android at gfx/thebes/gfxPrefs.h:377. r=backout on a CLOSED TREE 2017-03-07 21:36:20 +01:00
Mike Conley 8c8d67a332 Bug 1340661 - Manually draw checkbox and radio frames on Android. r=snorp,tnikkel
MozReview-Commit-ID: 8IiaRZNJs16

--HG--
extra : rebase_source : 7cedbc046bd7bff552b16d2f10d16af56a9c3f79
2017-03-03 18:36:12 -05:00
Jan Henning 2669dd3183 Bug 1343603 - Part 2 - Test that clearing history clears the cached session store data, too. r=ahunt
MozReview-Commit-ID: 3YhHnmnkgCS

--HG--
extra : rebase_source : ce9cdf0df97d7bf6be116037f690a3a44c97346e
2017-03-02 20:19:58 +01:00
Jan Henning ff6a093d9d Bug 1343603 - Part 1 - Immediately clear cached session store history data when clearing history. r=ahunt
The session store keeps a serialised copy of a tab's session history around so that the gathering of the data (which can be somewhat expensive) can be decoupled from writing it to disk.

When the user clears Firefox's history, we therefore need to discard this data as well (except for the currently open entry), so it doesn't stick around until the next time some navigation/history change occurs in that tab. Otherwise, if Firefox or just the tab is closed before the purged state has been re-collected by the session store, the supposedly purged session history will resurface when the tab is restored again.

Bug 1337940 means that we'll now catch the history notifications caused by the session history being purged, however
- we still need to handle zombified tabs separately, since as far as the rest of Gecko is concerned, those simply consist of a plain "about:blank" browser with the true state being stashed away in the session store data, so the purging of the live session history data won't have any real effect
- the history purging on the tab happens after the session store receives the "browser:purge-session-history" notification, meaning that these changes received through the regular history notifications won't get written to disk immediately

Therefore we now explicitly purge the session history data of all tabs in our notification handler, so this state can then immediately be saved to disk.

MozReview-Commit-ID: KkR0Tif9BBk

--HG--
extra : rebase_source : 5744c88e2871cd873e2484e9688deb53bf8d44f2
2017-03-02 20:29:52 +01:00
Jan Henning 51cfb79ec0 Bug 1343174 - Part 3 - Test that selectOrAddTab() finds zombified tabs as well. r=ahunt
MozReview-Commit-ID: AXeAgRltRP1

--HG--
extra : rebase_source : 2c1b3bd951b04b605368d6b4caa67a22ecd0e9c4
2017-02-28 20:55:29 +01:00
Jan Henning f05b95948c Bug 1343174 - Part 2 - Rewrite test_selectoraddtab to track tabs instead of browsers. r=ahunt
It's easy to get a tab's browser, but going the other way round requires always calling getTabForBrowser(), which then additionally has to search each open tab in turn to find the tab with the matching browser.
Also, the browser won't survive tab zombification, so for Part 3 we'll have to start keeping a reference to the tab object anyway.

MozReview-Commit-ID: B2aC7vB0cuj

--HG--
extra : rebase_source : 233b6deec58c0c47640e8a0b597d77324ce66963
2017-02-28 20:44:03 +01:00
Jan Henning 702a8c80a6 Bug 1343174 - Part 1 - When looking for tabs with the same URL, fall back to the session store data for zombie tabs. r=ahunt
Delay-loaded tabs all have browsers pointing to about:blank, so there's not much sense in querying browser.currentURI for them. Instead we read their session data to determine the correct URL, which allows selectOrAddTab to successfully detect duplicate tabs even when they are zombified.

MozReview-Commit-ID: JZ179Y85Ehe

--HG--
extra : rebase_source : bc34d34d501a994ce989c27858cc529b78b5ae3d
2017-02-28 21:09:39 +01:00
Jan Henning 659b62bd26 Bug 1340828 - Part 3 - Switch Fennec's session store over to SessionHistory.jsm. r=sebastian
Fennec's session store code was forked from Desktop a few years ago. Since then, the Desktop session store code has been refactored and modularised, which allows us to pull in again the bits the are compatible with our session store architecture and don't require any mobile-specific handling.

The handling of session history is such a case - with the exception of the "wyciwyg" filtering, any differences between SessionHistory.jsm and our equivalent in sessionstore.js seems to stem from Desktop bugfixes that were never ported over to our copy of the code.

Switching Fennec's session store over to use SessionHistory.jsm will prevent those sort of errors from occurring again in the future and hopefully simplify the maintenance of the session history code going forward.

MozReview-Commit-ID: Hm0TWTwtPsI

--HG--
extra : rebase_source : 5935c7baeefbd2c75754fe609b684aaf40ee85e9
2017-02-18 23:35:48 +01:00
Jan Henning 73b4249e96 Bug 1344464 - Part 1 - Restart input after removing autocomplete text for keyboards that require it. r=jchen
When we detect text being deleted from the URL bar via setComposingText while we're displaying an autocomplete suggestion, we clear the autocomplete text and prevent the keyboard's delete from having any effect on the URL bar by returning false.

Some keyboards might not handle this correctly and assume that they've in fact successfully set the new text, so the next time the user presses a key can lead to weird behaviour. As a workaround, we therefore additionally restart the input for affected keyboards.

MozReview-Commit-ID: DucveafL3AB

--HG--
extra : rebase_source : 3ba1701adf7e4e8a03d263a75c04717aadaab663
2017-03-04 21:09:15 +01:00
Jan Henning 19159002e9 Bug 1344464 - Part 0 - Remove unneeded code. r=jchen
MozReview-Commit-ID: 2mPPx4fMTM2

--HG--
extra : rebase_source : 3a9fd58de214649dba8fd66b22ae4c5fbf0442cd
2017-03-04 21:59:35 +01:00
Jan Henning 53cf8e265c Bug 743662 - Restore session once when addons require a restart. r=sebastian
MozReview-Commit-ID: C5Q9cYnxnhj

--HG--
extra : rebase_source : 3f50c6a4a207e7950dd9eeaaf089fbeac078d627
2017-03-03 19:05:49 +01:00
Carsten "Tomcat" Book d0bd960945 merge mozilla-inbound to mozilla-central a=merge 2017-03-06 10:53:27 +01:00
Tushar Saini (:shatur) ab529e5e79 Bug 1305528 - Remove ignoreEvent from API events for which it is inappropriate. r=bsilverberg,mixedpuppy
MozReview-Commit-ID: Cado1fxLYxr

--HG--
extra : rebase_source : 263d0ef1bc2f38866571d2bb6d555b8dcc9dca38
2017-03-02 02:01:44 +05:30
Wes Kocher 1b29a33fce Merge m-c to autoland, a=merge
MozReview-Commit-ID: K0Q4b2wzvlJ
2017-03-03 17:29:54 -08:00
Wes Kocher c4f1f63f47 Merge autoland to central, a=merge
MozReview-Commit-ID: tSEg2GfeWi
2017-03-03 17:27:33 -08:00
Carsten "Tomcat" Book 45d42cf9c7 Merge mozilla-central to autoland 2017-03-03 13:07:34 +01:00
Carsten "Tomcat" Book cf269a43bd merge mozilla-inbound to mozilla-central a=merge 2017-03-03 13:03:48 +01:00
Sebastian Kaspari 3824713252 Bug 1342329 - Only link the "default browser" setting to the default apps screen. r=ahunt
MozReview-Commit-ID: I7mrsbXGng1

--HG--
extra : rebase_source : eae4762aabd973b56dba7e2be584e9638fd5bc3a
2017-03-03 11:12:48 +01:00
Carsten "Tomcat" Book 06813a3df9 Merge mozilla-central to mozilla-inbound 2017-03-03 13:06:37 +01:00
Wes Kocher 901a8c09c1 Merge m-c to autoland, a=merge
MozReview-Commit-ID: AZeTEvGhLd1
2017-03-02 15:03:44 -08:00
Wes Kocher a9419110b3 Backed out 2 changesets (bug 1334975, bug 1335539) for merge conflicts a=backout
Backed out changeset 429ff39f3d28 (bug 1335539)
Backed out changeset eea959a93ce4 (bug 1334975)

MozReview-Commit-ID: GlvA0B0vHRT
2017-03-02 14:57:21 -08:00
Ben Kelly 9e4cb4f2f0 Bug 1343895 Tune dom.timeout.max_consecutive_callbacks on fennec. r=smaug 2017-03-02 11:33:12 -05:00
Andrea Marchesini b54dc840c3 Bug 1335539 - Get rid of nsIDOMWindowUtils.wrapDOMFile, r=smaug, r=Gijs 2017-03-02 17:15:29 +01:00
Carsten "Tomcat" Book 4a4777d1aa merge mozilla-inbound to mozilla-central a=merge 2017-03-02 14:02:48 +01:00
Jan Henning ef37784cd5 Bug 1342820 - Reset navigation button state when clearing history. r=ahunt
Clearing history purges a tab's session history as well. Normally, we only update the navigation button state in the UI for a location change, so now we need to start listening for the appropriate message as well.

BrowserApp has already registered a background thread listener for "Sanitize:ClearHistory" - since this can be called during shutdown as well and their listener is more important (clearing the history DB), we defer to them and redispatch to the UI thread ourselves, so BrowserApp doesn't have to do this during shutdown.

MozReview-Commit-ID: C83mk6Z56Oq

--HG--
extra : rebase_source : 6dc40b1ff816b373783afa6bd34546a961e75571
2017-03-01 21:08:11 +01:00
Zibi Braniecki 3613954ec3 Bug 1339892 - Refactor mozIntl to have a nicer API and thin logic. r=smaug
MozReview-Commit-ID: J4QXXBy7JII

--HG--
rename : toolkit/components/mozintl/MozIntl.cpp => toolkit/components/mozintl/MozIntlHelper.cpp
rename : toolkit/components/mozintl/MozIntl.h => toolkit/components/mozintl/MozIntlHelper.h
rename : toolkit/components/mozintl/mozIMozIntl.idl => toolkit/components/mozintl/mozIMozIntlHelper.idl
extra : rebase_source : 9753dbeea2e11c7fde550df1a20b1c3d1b2063fe
2017-03-01 16:58:11 -08:00
Andrea Marchesini 4d21d3a57a Bug 1335539 - Get rid of nsIDOMWindowUtils.wrapDOMFile, r=smaug, r=Gijs 2017-03-03 09:42:54 +01:00
Nevin Chen 6a40b60418 Bug 1342354 - Add pref pref on/off switch for new bookmark features. r=ahunt
MozReview-Commit-ID: 1Rz7rAao5Is

--HG--
extra : rebase_source : b63e96e28a9367d16db40e3eeb47f714b04c8b0b
2017-02-24 18:05:10 +08:00
Alfredo.Yang 69731f92d5 Bug 1341967 - remove MOZ_RUST_MP4PARSE. r=kinetik
MozReview-Commit-ID: SgTlIo8wEi

--HG--
extra : rebase_source : 263a6cfcf50ee3582f3dc1bfc43d4fa0dcc00800
2017-03-01 14:44:42 +08:00
Jan Henning 0c214f050c Bug 1343995 - Wait for sanitizing to really finish before shutting down. r=jchen
BrowserApp's sanitize() function assumed that the Sanitizer would return promises for each sanitization handler, so it could wait for them to resolve before proceeding with shutdown (which was also the assumption behind the patch for bug 1266594). In fact even the Sanitizer expected to do this is well, since it wrapped each of its handling functions within a promise/task/sendRequestForResult. However it turns out that Sanitizer's clearItem function then failed to actually return this promise - apparently ever since this was implemented.

MozReview-Commit-ID: 6hN3UTXUIuV

--HG--
extra : rebase_source : 4971bc02962c817037a565595d3c1cedb0532d76
2017-03-02 21:34:23 +01:00
Wes Kocher bd0bfddf8e Merge m-c to inbound, a=merge
MozReview-Commit-ID: Fypud50dqYw
2017-03-02 15:03:11 -08:00
Kris Maglione 95a63cc7ea Bug 1339872: Bump max tries for earliest runAt states. r=me
MozReview-Commit-ID: 6LeWXrgMcCE
2017-03-02 11:21:03 -08:00
Jim Chen c7d526d4ee Bug 1339685 - Split GeckoEditable into parent and child classes; r=nalexander r=esawin r=snorp
Bug 1339685 - 1. Support compiling GeckoView aidl from multiple packages; r=nalexander

Specify a list of AIDL files for GeckoView so we can include AIDLs from
multiple packages, and not just those from the org.mozilla.gecko.process
package.

Bug 1339685 - 2. Add AIDLs for GeckoEditable; r=esawin

Add IGeckoEditableParent.aidl and IGeckoEditableChild.aidl for two-way
communication between the parent, which lives in the main process, and
the child, which lives in the main process or a child content process.

Bug 1339685 - 3. Refactor some GeckoEditable code; r=esawin

Auto-generate native constants for the constants in GeckoEditableClient,
instead of keeping a separate set of constants in native code.

Bug 1339685 - 4. Add GeckoEditableChild; r=esawin

Add the GeckoEditableChild class, which is currently only used in the
main process as the interface between the native nsWindow and
GeckoEditable. Eventually, it will be expanded to child content
processes as the interface between the native PuppetWidget and
main process GeckoEditable.

Bug 1339685 - 5. Use GeckoEditableChild from GeckoEditable; r=esawin

Make calls to GeckoEditableChild from GeckoEditable, and remove code
that exists in GeckoEditableChild from GeckoEditable.

Bug 1339685 - 6. Add GetNativeObject member to proxied native calls; r=snorp

Add a convenience function for getting the C++ object that is the target
of the native call.

Bug 1339685 - 7. Use GeckoEditableChild from native code; r=esawin

Make nsWindow and GeckoEditableSupport use GeckoEditableChild for
communication. nsWindow still keeps a reference to GeckoEditable for
switching views.

Bug 1339685 - 8. Updated generated bindings; r=me
2017-03-02 13:47:14 -05:00
Sebastian Kaspari ff5dce313b Bug 1330973 - Use website description length for highlights ranking. r=Grisha
MozReview-Commit-ID: 7kZjNb2MSJ7

--HG--
extra : rebase_source : 8a5e12aaa78cee002330d57219465fd89c4c9c08
2017-02-02 17:08:30 +01:00
Sebastian Kaspari 4e6612f2c4 Bug 1330973 - WebsiteMetadata.jsm: Add description length to Metadata JSON. r=Grisha
MozReview-Commit-ID: 4zxaHPLEWJ6

--HG--
extra : rebase_source : 861de1b6e5f47435963d641aa6a2245f18a77128
2017-02-02 16:21:54 +01:00
Sebastian Kaspari fd87861e7b Bug 1312016 - Activity Stream: Implement highlights ranking to mirror desktop add-on behavior. r=Grisha
This patch has multiple changes folded into:
* Remove old highlights query
* Add new query for retrieving recent history to consider for highlights
* First version of highlights ranking implementation
* Add new loader implementation that will return a list of Highlight objects instead of a Cursor
* Modify UI code to work with Highlight objects instead of a Cursor.

MozReview-Commit-ID: Pdx2YxrZKA

--HG--
extra : rebase_source : 495bd97e40270fb15c05d5b5f511d5dcf89fbd1b
2017-02-13 18:14:23 +01:00
Dylan Roeh a21a7f8f67 Bug 1305815 - Issue EOL warning if non-NEON-compatible device detected. r=glandium 2017-03-01 13:26:12 -06:00
Jim Chen e559b260ee Bug 1137567 - Make nsWindow for Android use TextEventDispatcher; r=esawin r=rbarker r=masayuki r=snorp
Bug 1137567 - 1. Allow dispatching key events during composition; r=esawin

We potentially dispatch key events during composition to provide
compatibility for pages that only listen to key events.

Bug 1137567 - 2. Allow keyboard events in DispatchInputEvent when not on APZ thread; r=rbarker

We use nsIWidget::DispatchInputEvent to dispatch our keyboard events on
the Gecko thread, which on Android is not the APZ controller thread. We
should allow these events to pass instead of crashing.

Bug 1137567 - 3. Add GeckoEditableSupport class to support TextEventDispatcher; r=masayuki

Add a separate GeckoEditableSupport class, which implements
TextEventDispatcherListener and uses TextEventDispatcher for IME
operations. The new class is entirely separate from nsWindow to allow it
to be independently used in content processes as well.

Most of the code is copied from nsWindow::GeckoViewSupport, and adapted
to use TextEventDispatcher.

Bug 1137567 - 4. Make nsWindow::WindowPtr available for outside classes; r=snorp

Make nsWindow::WindowPtr available not just for classes inside nsWindow
but for outside classes as well. Also, add support for RefPtr native
objects to nsWindow::NativePtr.

Bug 1137567 - 5. Use GeckoEditableSupport in nsWindow; r=esawin

Use the new GeckoEditableSupport class in nsWindow to replace the
previous code in nsWindow::GeckoViewSupport. GeckoEditable native
methods now go to GeckoEditableSupport instead of GeckoViewSupport.

Several native methods in GeckoEditable are changed from
dispatchTo="proxy" to dispatchTo="gecko", because we no longer need the
special nsWindow::WindowEvent wrapper for our native calls.

Bug 1137567 - 6. Use pushPrefEnv in test_assign_event_data.html; r=masayuki

setAndObserveCompositionPref in test_assign_event_data.html does not
invoke the callback if the pref is already set. This patch changes it to
use SpecialPowers.pushPrefEnv so the callback is always invoked.
2017-03-01 15:29:30 -05:00
Krishna 512218087a Bug 1276588 - Handling Hyphenation-Dictionaries in DownloadAction. r=sebastian
MozReview-Commit-ID: GTuR0IarjGe

--HG--
extra : rebase_source : 3718d249a0413d278b8a5e7d77a77086caafbd9e
2016-12-04 23:06:35 +08:00
Tom Klein 84ea537291 Bug 1216489 - 3. Remove unnecessary touch intercept code for TabsPanel. r=sebastian
MozReview-Commit-ID: 7pf9GRLgHXg

--HG--
extra : rebase_source : 3c7d376baffbe7577cdac923ef9ac2aebf7f33c0
2016-11-30 18:30:57 -06:00
Tom Klein 1540860821 Bug 1216489 - 2. Cleanup width and height calculations in TabsPanel. r=sebastian
MozReview-Commit-ID: I1chEZDnOyR

--HG--
extra : rebase_source : b0cab7c838c4cc51ae8b1bf49ebad6870c7c95bd
2016-11-30 17:31:37 -06:00
Tom Klein 64e697ee77 Bug 1216489 - 1. Cleanup TabsPanel includes and remove member variable. r=sebastian
MozReview-Commit-ID: 9eTBEf8xj1l

--HG--
extra : rebase_source : 368250516367973b35e7ae6a4206462619c8a35d
2016-11-30 17:02:53 -06:00
Tom Klein ce402fbf10 Bug 1340929 - Don't scroll to a new tab opened from a link. r=sebastian
We used to scroll in addTab to make sure a new tab created by a close-tab-undo
at the start or the end of the list was made visible instead of staying where it
was created off the edge.  We're now taking care of that in selectTab (where it
should have stayed in the first place), where the select in that case occurs
between the time when the new tab is added to the adapter and when the layout
gets updated.  In the case where the new tab is at the start, that means the
check 'position < layoutManager.findFirstCompletelyVisibleItemPosition()' in
selectTab reads '0 < 0', which fails (which is why we need the new check for
'position == 0'), but the check 'position >
layoutManager.findLastCompletelyVisibleItemPosition()' for a tab added at the
end reads 'new_lengh -1 > old_length - 1' which already passes, so we don't need
a special case for undo-tab-close adds at the end in selectTab.  Tabs added at
the end by a normal "create new tab" still scroll for the same reason.

Robotium was confused by the duplicate 'add_tab' ids from the tab strip and the
tabs panel, so I renamed one of them.  Also note that the 'getTabId' added to
TabStripItemView for testing already exists on TabLayoutItemView, but the two
classes don't share a common base.

MozReview-Commit-ID: BzG2r8BSs90

--HG--
rename : mobile/android/tests/browser/robocop/src/org/mozilla/gecko/tests/testTabStripPrivacyMode.java => mobile/android/tests/browser/robocop/src/org/mozilla/gecko/tests/testTabStrip.java
extra : rebase_source : b2859647d9e26cdca24e1b03065d3c62e20f7b1b
extra : source : 119ee2655404e277c13d0e436fba1cad1272797e
2017-02-22 21:54:11 -06:00
Jan Henning 52460f6ad2 Bug 1337115 - Part 2 - Send telemetry if session restore completely fails and we're not on the first run. r=sebastian
For a fresh profile it is expected that there are no session files to restore from, however afterwards we should normally always have a valid - if possibly empty - session file available. We try excluding the first run case by checking the first run pref used by Telemetry so far and see whether we get any reasonable results out of this...

MozReview-Commit-ID: 2ZxmLqwhk32

--HG--
extra : rebase_source : 6e76cad14017aced2e4b5f00b8c385dc544529bf
2017-02-17 20:02:33 +01:00
Jan Henning 9e83e205d6 Bug 1337115 - Part 1 - Make "Is first run" pref generally useable. r=sebastian
This pref could be useful for things outside of the TelemetryCorePingDelegate as well, so we have it live in GeckoApp now.

MozReview-Commit-ID: 2JZ3vNqSzcl

--HG--
extra : rebase_source : 0cf6d4f799a705d4e47be89de409925079bf661b
2017-02-23 22:16:26 +01:00
maliu be25472639 Bug 1331995 - Reset text direction to locale in order to reveal text hint, checkstyle, r=sebastian 2017-03-01 18:34:59 +01:00
Carsten "Tomcat" Book 0c91af7ef6 Merge mozilla-central to autoland 2017-02-28 13:04:30 +01:00
Carsten "Tomcat" Book 9c1c7106ee merge mozilla-inbound to mozilla-central a=merge 2017-02-28 11:24:33 +01:00
cnevinchen@gmail.com c1ccdd63f5 Bug 1337692 - Ask for permission on input=file/accept. r=sebastian,grisha 2017-02-27 21:02:00 -06:00
Michael Kaply eaf1c195a8 Bug 1031210 - Add junit tests for StringUtils.stripScheme. r=snorp 2017-02-27 16:21:47 -06:00
Eugen Sawin 585bf70c8b Bug 1342508 - [2.1] Make code style consistent across GeckoView. r=jchen 2017-02-27 20:39:45 +01:00
Eugen Sawin 4df1593760 Bug 1342508 - [1.0] Add GeckoView.reload. r=snorp 2017-02-27 20:39:45 +01:00
Jan Henning 644356e330 Bug 1337325 - Remove unused zoom and scroll code from browser.js r=kats
More JPZ leftovers, I presume. In any case what's left doesn't do anything really useful and a DXR search didn't reveal any remaining users, so this can be thrown out.

MozReview-Commit-ID: 9dN6Jifpbvw

--HG--
extra : rebase_source : 04614d729a55e00c5331ecc321ca2ef5b5e73747
2017-02-12 13:33:42 +01:00
Jing-wei Wu 165f0d5d00 Bug 1323366 - Create new IconRequest to prevent ConcurrentModificationException, r=sebastian
--HG--
extra : rebase_source : fd06f0ae3632eb9436b7295afc57243aa3a3edf3
2017-02-20 09:45:16 +08:00
Masatoshi Kimura 7be7b11a1c Bug 1342144 - Remove version parameter from the type attribute of script elements. r=jmaher
This patch is generated by the following sed script:
find . ! -wholename '*/.hg*' -type f \( -iname '*.html' -o -iname '*.xhtml' -o -iname '*.xul' -o -iname '*.js' \) -exec sed -i -e 's/\(\(text\|application\)\/javascript\);version=1.[0-9]/\1/g' {} \;

MozReview-Commit-ID: AzhtdwJwVNg

--HG--
extra : rebase_source : e8f90249454c0779d926f87777f457352961748d
2017-02-23 06:10:07 +09:00
Grisha Kruglov 8e54812b61 Bug 1291821 - Post: remove unused files r=rnewman
MozReview-Commit-ID: 4qM5vx4AQyQ

--HG--
extra : rebase_source : 5428e67f40947d58521b635cda86121d21ebe275
2016-11-29 13:36:26 -08:00
Grisha Kruglov 283d1a3450 Bug 1291821 - Allow BatchingDownloader to resume downloads using offset r=rnewman
BatchingDownloader uses provided RepositoryStateProvider instance in order to track
offset and high water mark as it performs batching.

The state holder objects are initialized by individual ServerSyncStages, and prefixes are used to ensure keys
won't clash.

Two RepositoryStateProvider implementations are used: persistent and non-persistent. Non-persistent
state provider does not allow for resuming after a sync restart, while persistent one does.

Persistent state provider is used by the history stage. It is fetched oldest-first, and records are applied
to live storage as they're downloaded. These conditions let use resume downloads. It's also possible to
resume downloads for stages which use a persistent buffer, but currently we do not have any.

Offset value and its context is reset if we hit a 412 error; it is maintained if we hit a sync deadline, allowing us to
minimize number of records we'll redownload. BatchingDownloaderController owns resuming and context checking logic.

High water mark (h.w.m.) is maintained across syncs and used instead of stage's "last-synced" timestamp if said stage is
set to fetch oldest-first and explicitely allows use of a h.w.m. Server15RepositorySession provides correct timestamp
to RecordsChannel, decoupling BatchingDownloader from this logic.

MozReview-Commit-ID: IH28YrDU4vW

--HG--
extra : rebase_source : 63bd7daaa1fd2a63e10289d6d4cd198aaf81498b
2017-01-19 13:11:18 -08:00