Commit Graph

20719 Commits

Author SHA1 Message Date
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
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
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
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
Alastor Wu
3d564c05b3 Bug 1282410 - part1 : open unsupported type media. r=cpearce
MozReview-Commit-ID: 4fjkDlRgdt7

--HG--
extra : rebase_source : a59607b1236c0047b97d7ca05002f1960e20ce51
2016-07-06 10:34:29 +08:00
Wes Kocher
59c25d40ac Merge m-c to fx-team, a=merge 2016-07-05 17:13:25 -07:00
Kartikaya Gupta
8296f93061 Bug 1283582 - Stop displaying the context menu in Fennec if web content did a preventDefault on the event. r=margaret
MozReview-Commit-ID: 4JQwXNfJxip
2016-07-05 10:09:38 -04:00
Wes Kocher
7c9b5f12a6 Merge m-c to autoland, a=merge 2016-07-05 17:14:16 -07:00
Nick Alexander
2b02330db2 Bug 1281890 - Allow setting chromeURI from Java. r=snorp
The intention is that GeckoView consumers will not use browser.xul,
but instead geckoview.xul; and that they'll provide content URLs from
their assets/ directories.  This lets them do things without modifying
the omnijar and in particular without setting Gecko's prefs *before*
Gecko startup.

MozReview-Commit-ID: 2QLQQ5RphFu

--HG--
extra : rebase_source : b80eb1b15a54dac3c19ba9c7bfe4f0ac7dae78c6
2016-06-23 12:05:17 -07:00
Carsten "Tomcat" Book
79d581d66d Merge mozilla-central to fx-team 2016-07-07 11:43:24 +02:00
Edouard Oger
d31d567985 Bug 1250782 - Add FxA registration details to the debug_dump command. r=nalexander
MozReview-Commit-ID: COoizpkNHaT

--HG--
extra : transplant_source : %87%07%02%D5b%D2%1D%8Al%C2%C8%BB%D4%F4%E7%91%22i%A2%B8
2016-06-30 12:31:45 -07:00
Jim Chen
dbbc213968 Bug 1280446 - Create PushService if needed; r=snorp
If PushService has not been created when getInstance is called, create
the PushService instead of throwing an error. This fixes a possible race
condition between initializing PushService and receiving a push message,
where we can receive a push message first.
2016-07-05 14:34:57 -04:00
Maja Frydrychowicz
6515d43fbd Bug 787203 - Enable Marionette on debug Fennec build (android-api-15-debug); r=gps
MozReview-Commit-ID: 5suN2OXoHuO

--HG--
extra : rebase_source : 190ca3e2d71a4189d933677c415e3829f785a15e
2016-06-08 16:32:45 -04:00
Maja Frydrychowicz
07464f6507 Bug 787203 - Get Marionette working in Fennec; r=automatedtester
MozReview-Commit-ID: LAymLrmFBSC

--HG--
extra : rebase_source : 30bb2753c161f60eff7293e963fbe206449373b5
2016-06-30 17:03:41 -04:00
Gregory Szorc
f21ec324a6 Merge mozilla-central to mozilla-inbound 2016-07-06 18:30:58 -07:00
Gregory Szorc
021d3fdfc7 Merge mozilla-central to mozilla-inbound 2016-07-06 18:26:17 -07:00
Gregory Szorc
1485dff75a Merge autoland to mozilla-central; a=merge
--HG--
extra : amend_source : cb410b4de973dc55c63e3fa8c088f71a5c00e51e
2016-07-06 18:11:34 -07:00
Kartikaya Gupta
538a46e316 Bug 1251038 - Enable APZ by default in all.js. r=botond
The only platform for which this change is *not* a no-op is Mulet. Last time
I checked Mulet worked fine with APZ enabled but there were a few test failures.
Now I don't believe it's running in automation anyhwere so that shouldn't be
an issue. If it is, they can re-disable APZ easily enough if needed.

MozReview-Commit-ID: 5xKUuTOnubM
2016-07-06 15:19:32 -04:00
Edouard Oger
89b4dbd676 Bug 1250782 - FxAccountClient: remove post method unused argument delegate. r=eoger
MozReview-Commit-ID: 7jqQ7KWZJf2

--HG--
extra : transplant_source : %AAE%FCK%E0%DF%23%95%1A%3F%DF%F0%83%E9%D9V%8A%13%97%3F
2016-05-26 15:47:00 -07:00
Edouard Oger
974ff34e5f Bug 1250782 - Include fxaDeviceId in sync client records. r=mcomella, nalexander
MozReview-Commit-ID: BjTKTN5XX4w

--HG--
extra : transplant_source : %BCrk%18%D0%5DX%B3%0F%90%BA%83%AEh%BB%BB%C6%A0%E0%29
2016-05-18 13:43:10 -07:00
Edouard Oger
0d35c21fa7 Bug 1250782 - Update device registration on device name change. r=mcomella, nalexander
MozReview-Commit-ID: Cqhej5cfKvE

--HG--
extra : transplant_source : L%98%D9%82%90%C2%85%8C%00%8CF%80w%18%94%CF%F0%B5%7B%14
2016-05-18 12:49:56 -07:00
Edouard Oger
ea3aa620c6 Bug 1250782 - Register device on married state. r=mcomella, nalexander
MozReview-Commit-ID: CswoGEpoNl3

--HG--
extra : transplant_source : %9A%BBW%DC%A1%A5%C4%B9%F8c%0EF/%D9%C9.%B1%97%5B%07
2016-05-18 12:48:49 -07:00
Edouard Oger
ad9c52e341 Bug 1250782 - Add FxAccountDeviceRegistrator. r=mcomella, nalexander
MozReview-Commit-ID: LIHuHxnfW1V

--HG--
extra : transplant_source : %40%3F%C4%CD%24%5B9%9CaR%5C4YUI%EA%C5%C6%12%EB
2016-05-18 12:48:21 -07:00
Edouard Oger
58c682c8d8 Bug 1250782 - FxAccountClient: add deviceList method. r=mcomella
MozReview-Commit-ID: GJ0fDsKkNEl

--HG--
extra : transplant_source : X%AD%08%FA%F9%A6U%CB%A1%99%D6%A3%0CC%B9%9E%5B%CF%9A%D3
2016-05-18 12:36:31 -07:00
Edouard Oger
2c7bb5dd31 Bug 1250782 - FxAccountClient: add registerOrUpdateDevice method. r=mcomella
MozReview-Commit-ID: 6cGQTZq5G1W

--HG--
extra : transplant_source : n%CD%DB%D4Y%FB%3E%A6%E5%CF%0A%FB%3Ca%07%92%F0%60%95%A3
2016-05-18 12:35:50 -07:00
Edouard Oger
aa9e80a40f Bug 1250782 - FxAccountClient: add accountStatus method and rename status method to recoveryEmailStatus. r=mcomella
MozReview-Commit-ID: 3fFQaFe14x2

--HG--
extra : transplant_source : %E1%EF%01%D2%1A%D0%A4%14%15%E6%CD%3E%ED%AD%F2%D4EE%1C%01
2016-05-18 12:28:51 -07:00
Edouard Oger
46fd9a4c88 Bug 1250782 - ResourceDelegate#handleSuccess now gives access to a JsonArray body. r=mcomella
MozReview-Commit-ID: HbRgCaMPZY7

--HG--
extra : transplant_source : %17%E9g%B6/%25%D9d%12%20B%06%E0%5Dv%B8%29%BBCO
2016-05-18 12:32:55 -07:00