Commit Graph

16682 Commits

Author SHA1 Message Date
Grigory Kruglov
782ab6a25d Backed out changeset 5e2a5623088f (bug 1278301) because this feature is pending further investigation r=ahunt
MozReview-Commit-ID: ErVAafkRkqh

--HG--
extra : rebase_source : 4be19a6b3561a9b194b0f117b1ddfb5bc1bb82d8
2016-07-11 09:17:24 -07:00
Carsten "Tomcat" Book
9c84360118 Merge mozilla-central to fx-team 2016-07-13 17:28:49 +02:00
Carsten "Tomcat" Book
564f508e43 merge mozilla-inbound to mozilla-central a=merge 2016-07-13 17:27:34 +02:00
Carsten "Tomcat" Book
d50eba7171 merge fx-team to mozilla-central a=merge 2016-07-13 17:24:54 +02:00
Sebastian Kaspari
19871f936c Bug 1285926 - Add preference for enabling/disabling custom tabs support. r=grisha
MozReview-Commit-ID: 8KmJo5IM7JS

--HG--
extra : rebase_source : 276e646d04b1060f5e0a2575408dac266d94f28d
2016-07-11 15:41:55 +02:00
Jonathan Almeida (:jonalmeida)
c3adc70e06 Bug 1283478 - Tapping the download notification does not open the downloaded file r=mcomella
We were incorrectly retrieving the cookie from the notification intent
and passing that along which affected the invocation of the notification.

MozReview-Commit-ID: FxL8sw6lByJ

--HG--
extra : rebase_source : 503ab15c58b9403851477b380ffe7ac3bd2f7215
extra : amend_source : 8dd88a72795184f825a1e43f0cb163691cf97181
2016-07-05 15:44:17 -07:00
Carsten "Tomcat" Book
a7e954de09 Merge mozilla-central to fx-team 2016-07-12 16:42:42 +02:00
Carsten "Tomcat" Book
010d84a620 merge mozilla-inbound to mozilla-central a=merge 2016-07-12 16:30:18 +02:00
Sebastian Kaspari
ab950918d5 Bug 1284372 - URL bar: Force LTR for the URL. r=grisha
MozReview-Commit-ID: 3WnPTRmk5VO

--HG--
extra : rebase_source : 883ef94e601c2251db40dc59895289c2af957d61
2016-07-06 13:57:19 +02:00
Carsten "Tomcat" Book
02ea56d596 merge mozilla-inbound to mozilla-central a=merge 2016-07-12 10:58:33 +02:00
Jim Chen
247c8dadf2 Bug 1285570 - Implement VISITED event as native method; r=snorp
Convert the VISITED event in GeckoEvent to a native method call in
GeckoAppShell.
2016-07-11 18:07:35 -04:00
Jim Chen
71a6e62f73 Bug 1283739 - Prevent reentrant calls to showSoftInput and hideSoftInput; r=esawin
Add a check to showSoftInput and hideSoftInput To prevent an infinite
recursive loop of showSoftInput indirectly calling
onCreateInputConnection, which calls showSoftInput again,
2016-07-11 18:07:35 -04:00
Jim Chen
77a100ac1c Bug 1280446 - Follow-up to fix another possible crash; r=me 2016-07-11 17:16:57 -04:00
Carsten "Tomcat" Book
c4f94c21a0 Merge mozilla-central to fx-team 2016-07-11 16:25:10 +02:00
Carsten "Tomcat" Book
bd92616152 merge mozilla-inbound to mozilla-central a=merge 2016-07-11 16:21:15 +02:00
Grigory Kruglov
172be55891 Bug 1245791 - Part 2: Use LocalBroadcastManager for account change broadcasts r=nalexander
MozReview-Commit-ID: 493TXqS29Xt

--HG--
extra : rebase_source : 57499bb32019f5e4268fd02785cc3641785215f6
2016-07-07 18:15:08 -07:00
Grigory Kruglov
a3e84b7d79 Bug 1245791 - Part 1: Start FxAccountDeletedService directly, not through an intent r=nalexander
MozReview-Commit-ID: Ll1YkUhrQTJ

--HG--
extra : rebase_source : f7be09abe5f3950043549cf44ac8d0c092fda9d3
2016-07-07 11:32:52 -07:00
Grigory Kruglov
1e81008e49 Bug 1245791 - Pre: Remove unnecessary AccountLoaderNative r=nalexander
MozReview-Commit-ID: J1kzldfRTjx

--HG--
extra : rebase_source : 7137cc6b2edd1dc642dd31f0ce67ba3d4d94c653
2016-07-07 18:15:23 -07:00
Grigory Kruglov
150370f940 Bug 1245795 - Split Stumbler BroadcastReceivers into Local, System and Safe r=nalexander
SafeReceiver is responsible for registering LocalReceiver with a LocalBroadcastManager.
SystemReceiver is responsible for handling BOOT_COMPLETE and EXTERNAL_APPLICATIONS_AVAILABLE intents.
LocalReceiver is responsible for handling passed in Stumbler preferences (enabled state, API key, user agent).

StumblerPreferences are now sent using LocalBroadcastManager, avoiding any possibility of leaking API key.

MozReview-Commit-ID: J8pRN6pbLOg

--HG--
rename : mobile/android/stumbler/java/org/mozilla/mozstumbler/service/mainthread/PassiveServiceReceiver.java => mobile/android/stumbler/java/org/mozilla/mozstumbler/service/mainthread/LocalPreferenceReceiver.java
extra : rebase_source : 0f11bb5aa38c27849f1a4f35ed51bdf259c418c8
2016-07-07 19:40:11 -07:00
Sebastian Kaspari
071a04afd9 Bug 1283881 - Read homepage from Android's "Partner Customizations" content provider if read_partner_customizations_provider is set. r=grisha
MozReview-Commit-ID: 8He4sv8MoUw

--HG--
extra : rebase_source : 24e06b07c67cfe46383954abe4cef1914524f950
2016-07-05 14:48:23 +02:00
Grigory Kruglov
af2a097cb4 Bug 1245795 - Pre: Purge OrderedBroadcast r=nalexander
MozReview-Commit-ID: Ad1ENG0XJX1

--HG--
extra : rebase_source : dea0a39f6340e84f1fabee5abf8b861b26c92b2e
2016-07-04 17:51:15 -07:00
Sebastian Kaspari
7544d420b6 Bug 1283881 - Add PartnerBrowserCustomizationsClient for reading customizations from Android's "partner browser customizations" content provider. r=grisha
MozReview-Commit-ID: 3qVXGHC6LfE

--HG--
extra : rebase_source : 29d545e4e6ac606558a4f4cdf3f8f474d0606af0
2016-07-04 16:14:36 +02:00
Shih-Chiang Chien
004be13dbc Bug 1272197 - Part 3, backward compatibility for connecting TV 2.5 devices. r=junior
MozReview-Commit-ID: 1znjwuoO27b

--HG--
rename : dom/presentation/provider/MulticastDNSDeviceProvider.cpp => dom/presentation/provider/LegacyMDNSDeviceProvider.cpp
rename : dom/presentation/provider/MulticastDNSDeviceProvider.h => dom/presentation/provider/LegacyMDNSDeviceProvider.h
2016-07-04 18:27:09 +08:00
Sebastian Kaspari
8c58d6891e Bug 1283025 - Add support for PartnerBookmarksProvider. r=grisha
If a distribution sets "distribution.read_partner_bookmarks_provider" (Android preference)
to 'true' then Fennec will read from Android's PartnerBookmarksProvider [1] and add them
to the bookmarks panel UI.

[1] https://android.googlesource.com/platform/packages/providers/PartnerBookmarksProvider/+/master/src/com/android/providers/partnerbookmarks/PartnerBookmarksProvider.java

MozReview-Commit-ID: Lr50X4HhoC8

--HG--
extra : rebase_source : dae3ab3b1808db09eb82785c43e11c4e00f8f117
2016-07-04 20:00:01 +02:00
Wes Kocher
bacab7c0f8 Merge m-c to autoland, a=merge 2016-07-12 16:54:34 -07:00
Wes Kocher
0dcab503c5 Merge m-c to inbound, a=merge CLOSED TREE 2016-07-12 17:16:47 -07:00
Justin Wood
27f34d80f1 Bug 1223385 - use in-tree compare-locales in Makefiles, r=gps
Also fix that the default merge dir in the mach command creates a directory
that's the merge make target, and thus keeps that make target from actually
running.

MozReview-Commit-ID: HWZBPxWuHSy

--HG--
extra : rebase_source : a39157ad9eb99f3eef5d149d003e62a235f92fc1
2016-07-08 11:59:27 -04:00
Yoshi Huang
e24cc195d9 Bug 1274893 - remove -forbid- list from SafeBrowsing. r=francois 2016-07-11 16:11:32 +08:00
Phil Ringnalda
bc94fc8653 Merge f-t to m-c, a=merge 2016-07-09 08:53:47 -07:00
Wes Kocher
f5f39f87cc Merge m-c to inbound, a=merge CLOSED TREE 2016-07-08 15:04:23 -07:00
Wes Kocher
2a800a6763 Merge fx-team to central, a=merge CLOSED TREE 2016-07-08 15:02:31 -07:00
Jim Chen
ff2fd08d62 Bug 1283882 - Implement LOCATION_EVENT as native call; r=snorp
Convert LOCATION_EVENT in GeckoEvent to a native method call in
GeckoAppShell.
2016-07-08 11:39:10 -04:00
Jim Chen
976590c3b2 Bug 1283882 - Move location listener to GeckoAppShell; r=snorp
Move LocationListener implementation from GeckoApp to GeckoAppShell
because the LocationListener consumer is in GeckoAppShell.
2016-07-08 11:39:09 -04:00
Jim Chen
e01ee0921d Bug 1283844 - Implement SENSOR_EVENT as native call; r=snorp
Remove SENSOR_EVENT from GeckoEvent and implement it as a native method
in GeckoAppShell that is invoked by the sensor event listener in
GeckoAppShell.
2016-07-08 11:39:09 -04:00
Jim Chen
2b7ff3f3e5 Bug 1283844 - Implement sensor event listener in GeckoAppShell; r=snorp
Implement SensorEventListener directly in GeckoAppShell instead of
indirectly through GeckoInterface and GeckoApp, because the
SensorEventListener consumer is in GeckoAppShell.
2016-07-08 11:39:09 -04:00
Nicholas Rosbrook
8e773e93eb Bug 1280794 - Updated WebURLFinder to use new WebURL regular expression that supports new TLDs r=nalexander,ahunt
MozReview-Commit-ID: 42dfexg5qCs

--HG--
extra : rebase_source : 1f9461868c1d7ba251f16119cb616c95a1825b69
2016-07-04 16:56:07 -04:00
Jan Henning
3dda0750ac Bug 1282902 - Part 4 - Include zoom level recalculation in session store test. r=sebastian
Because we can't actually rotate the emulator within the test, we just manipulate the session store's stored display size to pretend that the device was rotated between tab data capturing and restoring.

MozReview-Commit-ID: L2HzTLHcBQu

--HG--
extra : transplant_source : %5D%E1%08i%15%E8%14nu%EC0%F8-%B4%3B%0D%11_%13%B3
2016-07-04 22:12:34 +02:00
Jan Henning
47101d08ae Bug 1282902 - Part 3 - Let the MobileViewportManager recalculate the saved resolution if the display width changed before restoring. r=kats
The mobile session store saves the current document resolution in order to restore the previous zoom level when restoring a page. If the display width has changed since the session data was captured (e.g. because the device was rotated), the resolution might have to be scaled appropriately.
Currently, the session store does this scaling by itself by comparing the stored and current window widths, however this implementation is slightly simplified and doesn't cover all use cases, which means some pages can be restored at a wrong zoom level after rotation. To correctly cover all cases, the session store would have to compare viewport widths, too.

Because the MobileViewportManager doesn't wait for the session store to set the restore resolution, the latter has to call setRestoreResolution() as early as possible in order to guarantee that the restore resolution is set before the first paint of the document. Therefore the session store currently calls this after receiving a LocationChange notification. However at that time, the correct viewport for the current document is not yet available, which means the resolution cannot be recalculated by the session store at that point.

Therefore, this patch changes the approach taken and lets the MVM handle all resolution calculations instead. The session store now simply passes the stored previous display dimensions along with the previous document resolution to the MVM, which can then compare them to the current display and viewport widths and scale the resolution appropriately before using it during first paint.


MozReview-Commit-ID: IGxWw87yftK

--HG--
extra : transplant_source : e%8D%BD%26%D2%C3%8E5%E3%2B%C0t%BA%DB%C1%BBs%3F%13%1F
2016-07-01 21:23:25 +02:00
Justin Wood
60e9d13dc3 Bug 1283438 - Set AUTOCLOBBER to empty for l10n r=glandium.
Needed because buildbot clones/checks out from the repo head (of default)
and then updates to the rev for the nightly we're pulling, which can cause
CLOBBER file changes to initiate an unwanted clobber of the object directory
where we just pulled the nightly binary from. Even when CLOBBER hasn't actually
been touched in the changeset range we're looking at between nightlies.

MozReview-Commit-ID: 154d2iZeHgd

--HG--
extra : rebase_source : 504b821955a870cabf6fc727d13e44a33aabb45c
2016-06-30 15:25:55 -04:00
Michael Comella
66c7c16be5 Bug 1283318 - Improve comments for adjust keyfile build config. r=chmanchester
MozReview-Commit-ID: LPI4ZVM9TR

--HG--
extra : rebase_source : 10170667d0061ae58d4bdc3370f130160c3aa8bc
2016-06-29 16:37:09 -07:00
Wes Kocher
4725525760 Merge m-c to fx-team, a=merge CLOSED TREE 2016-07-08 15:04:54 -07:00
Sebastian Kaspari
9a353f444c Bug 1261008 - Do not restore tabs pointing to about:home and with no history. r=janh,ahunt
If the browser is set to always restore the session (default) then we will never
start with an empty session. Even if the user closes all tabs we will re-create
a new tab pointing to about:home. So we will always at least restore this tab on
the next startup. As a consequence we will never open the 'homepage' on app start
because we will never have a non-empty session.

With this patch we won't restore tabs that point to about:home and do not contain
any other history. As a result we might restore an empty session and load the
homepage or about:home (depending on configuration) in a new tab.

In case we decide to not restore the currently selected tab, we just select the
first restored tab if there's any.

MozReview-Commit-ID: DuN03M60Gi8

--HG--
extra : rebase_source : 92ec12d32dfe62ebb0e7ae8e299f579dcd8c1a84
2016-07-06 16:04:01 +02:00
Jan Henning
14cc31c7f4 Bug 1279443 - Don't capture session state during startup before we've restored history. r=sebastian
When restoring tabs on startup, the Java UI creates tab stubs for the tabs from the previous session. The selected foreground tab then starts loading as soon as Gecko is up and running. Meanwhile, the session store gets initialised, too and starts restoring history and other things for that tab.

After history has been restored for an active tab, the session store reloads the current history entry, however by that time, depending on device speed, page size and how many other tabs the session store has to process during startup, the initial page load might have progressed far enough to have already triggered various events monitored by the session store, e.g. "pageshow".

If those events arrive before tab restoring has finished, the session store will attempt to capture that tab's state, which will overwrite the values stored from the previous session. Once the page is then reloaded for restoring, wrong values (e.g. form data, scroll position, zoom level) might then be restored.

Therefore, we now abort any attempts to capture a tab's state
- for all tabs until the "sessionstore-windows-restored" notification has been received as a signal that the initial session restore during startup has finished
- for the restored foreground tab until the location change notification is received after reloading

MozReview-Commit-ID: HbhXcEUnRXQ

--HG--
extra : transplant_source : h%2C%DA%27%28%F0%9F%8F%15-%21F/b%18%B5%DF%F4.%BE
2016-06-29 18:24:13 +02:00
Jan Henning
a8c9dbb72e Bug 1282830 - Trigger session saves when closing zombie tabs, too. r=sebastian
A tab being in a delay-loaded "zombie" state or not shouldn't have any influence on the behaviour of onTabRemove - since we remove it from the session store's sphere of influence, its __SS_data can be safely deleted anyway and whether or not a session save needs to be triggered should depend only on the aNoNotfication parameter passed by the caller.

Otherwise, with the current behaviour, the fact that those tabs have been closed will not get saved to disk if no subsequent session save is triggered through any other means (e.g. selecting a different tab, scrolling, ...) before closing Firefox.

MozReview-Commit-ID: IxjZRRutc7A

--HG--
extra : transplant_source : %3E%21%7B%3F%0Cv%01%82%AC%97%E6p%C5X%C3%90%BC%C8%D8%1B
2016-06-28 23:29:57 +02:00
Wes Kocher
b013d99d86 Merge m-c to fx-team a=merge 2016-07-07 11:38:52 -07:00
Carsten "Tomcat" Book
e9a4666c05 Merge mozilla-central to autoland 2016-07-07 11:44:49 +02:00
Ting-Yu Lin
9c880ca0ff Bug 1266922 - Remove checking "visibilitychange" reason from ActionBarHandler.js. r=sebastian
After bug 1249201 landed, the "visibilitychange" reason wasn't
dispatched during scrolling anymore. See bug 1249201 comment 44 for the
reasoning.

MozReview-Commit-ID: AhHiWeR2fq7

--HG--
extra : rebase_source : 368942f3f08f305524de8a65c16cc12a702410f4
2016-07-06 13:35:46 +08:00
Gregory Szorc
54888373fe Merge mozilla-central to autoland 2016-07-06 18:17:03 -07:00
Carsten "Tomcat" Book
8e2d371484 merge fx-team to mozilla-central a=merge 2016-07-06 11:41:53 +02:00
Alastor Wu
377ac4f207 Bug 1282410 - part2 : open media with external apps. r=Margaret
MozReview-Commit-ID: KQDmOf2RURN

--HG--
extra : rebase_source : 95f26f3c2ded17008bd9201ff9a74cb52c39c92d
2016-07-06 10:53:53 +08:00