478595 Commits

Author SHA1 Message Date
Bob Silverberg
c192826ab8 Bug 1265835 - Implement browser.history.getVisits, r=aswan
MozReview-Commit-ID: lhFdMTHYUl

--HG--
extra : amend_source : a65036e2420795601486c9e5f9adca4e557029db
2016-06-08 08:50:08 -04:00
Eddy Bruel
72591e2414 Bug 1265724 - Decouple TimelineFront from TimelineActor; r=ejpbruel 2016-06-08 15:51:55 +02:00
Marco Bonardo
a6cebf30a9 Bug 1209027 - add missing explicit. r=bustage
MozReview-Commit-ID: 7rAmfjSDSvZ
2016-06-08 15:17:16 +02:00
Marco Bonardo
41b74693db Bug 1277235 - add typed and visitCount to onVisit. r=adw
MozReview-Commit-ID: 3XfBCiOgyAu

--HG--
extra : rebase_source : 9f98a7a838e4ac56ae82bd13c330f181268228e5
2016-06-01 16:42:15 +02:00
Marco Bonardo
22a82c8e00 Bug 1209027 - Reduce queries load on visits addition. r=adw
MozReview-Commit-ID: AvW7WB2LXZE

--HG--
extra : rebase_source : bb5ab637dfe69f2b4587932bd1c506e18b81bca2
2016-05-31 15:19:16 +02:00
Henry Chang
c8e28547cf Bug 1275198 - Part 2: Simple test cases. r=francois. 2016-05-30 05:29:00 +02:00
Henry Chang
074726d052 Bug 1275198 - Part 1: Add safebrowsing protobuf related files in proto2 format. r=francois. 2016-06-06 23:30:00 +02:00
Nicolas Chevobbe
6901d27224 Bug 1276468 - Fix sheetToUrl function for inline style. r=jwalker
The function was trying to access `stylesheet` parameter's ownerNode property,
which is undefined when the parameter is a StyleSheetActor. In the latter case,
we use nodeHref and styleSheetIndex properties to match what is done when the
parameter is a StyleSheet.

MozReview-Commit-ID: 7FNoKasFYLL
2016-06-06 21:48:54 +02:00
Jan Henning
c37347cd35 Bug 1251362 - Part 19 - Remove code and resources for the old Recent Tabs panel. r=liuche
MozReview-Commit-ID: FQJ7j8YlV6E

--HG--
extra : transplant_source : H%B7Ul%94%E3%C9%9A%C3m%A7%E7At%84%D4%B3%85%5BY
2016-05-26 17:40:19 +02:00
Jan Henning
17fe927454 Bug 1251362 - Part 18 - Migrate (customised) home panel configurations. r=liuche
For people with customised home panels, we need to explicitly remove the Recent Tabs panel. We also unhide the Combined History panel if it was previously hidden and additionally turn it into the default panel if the Recent Tabs panel was the previous default panel.

MozReview-Commit-ID: 5CSJUTRysQU

--HG--
extra : transplant_source : A.%23%F5%5D%CE%09%E4%F1%BE%24%7E%13Q%1B%0Bx%15e%91
2016-05-21 14:39:15 +02:00
Jan Henning
b3e0d8a8bb Bug 1251362 - Part 17 - Turn reading list panel migration function into a generic panel removal function. r=liuche
By passing the panel types to be removed/set as new default panel as arguments instead of hard coding them, we can reuse that function for our own home panel config migration.

MozReview-Commit-ID: BsMxcbInRbX

--HG--
extra : transplant_source : %89zh6%85%F9r%D5%BDu%3E%80%86%AB%7C%1D%B6P%8E%0B
2016-05-21 18:27:55 +02:00
Jan Henning
d0ea6f3ea5 Bug 1251362 - Part 16 - Remove the Recent Tabs panel from the default home panel config. r=liuche
MozReview-Commit-ID: IX6AkBoa3Mg

--HG--
extra : transplant_source : %C0%C6m%D9%83-I%05%FC%8F%05k%88T%3D%96%BD%2B%EB%F7
2016-05-15 02:22:03 +02:00
Jan Henning
1a868a596f Bug 1251362 - Part 15 - Redirect direct loads of the Recent Tabs panel about:home URL to the Recent Tabs folder of the Combined History panel. r=liuche
After detecting multiple successive crashes in a row, we temporarily switch off automatic session restoring and display the Recent Tabs panel instead. As that panel is going to be removed, we intercept loads of the Recent Tabs panel about:home?panel=... URL and redirect them to the Combined History panel. We also use the facilities provided by bug 1060544 to jump directly to the Recent Tabs folder in that case.

MozReview-Commit-ID: 7dQ7tW2dD1M

--HG--
extra : transplant_source : %AA%1C%F1%2AD%DDR%29%D5%A2%AA%8D%1B%B6%EE%81%BE%A9%0B%CF
2016-05-26 23:04:53 +02:00
Jan Henning
9c0527fbb4 Bug 1251362 - Part 14 - Add telemetry for restoring tabs. r=liuche
This adds telemetry for clicking on a closed tab or the "Open all" button. Methods and extras strings are based on those used for the old Recent Tabs panel.

MozReview-Commit-ID: 1Kc8fACkmIc

--HG--
extra : transplant_source : m%09%FA%DB%8E%E5%DEG%FF%D1%83%AB%EA%D8%3B%10%9E%08%E3%85
2016-05-18 19:04:49 +02:00
Jan Henning
6f59a5b498 Bug 1251362 - Part 13 - Only enable swipe to refresh within the Synced devices smart folder. r=liuche
Recently closed tabs aren't synced, therefore being able to swipe to refresh within the Recent tabs folder isn't necessary. To avoid triggering a refresh by accident, we restrict swipe to refresh to the Synced devices folder itself.

MozReview-Commit-ID: YwekSwQr2q

--HG--
extra : transplant_source : %BB%AE%CB%A8W%9B%9F%CD%ECM%C5%B1%94u%9A%25%EE%FDN%AD
2016-05-14 23:38:29 +02:00
Jan Henning
96a4071908 Bug 1251362 - Part 12 - Remember more recently closed tabs. r=liuche
MozReview-Commit-ID: 37mYEiJKfTz

--HG--
extra : transplant_source : %1E%20%05%F8%D6%B8wN3%3C%0E%0C%E2%1E%2A%83%8Fa%F4%10
2016-05-26 13:46:00 +02:00
Jan Henning
c442f23a2f Bug 1251362 - Part 11 - Directly notify the RecentTabsAdapter when clearing history. r=liuche
Sessionstore.bak is only read when we are initialising the home panels, so after clearing all history from the button in the Combined History panel, the "Tabs from last time" section would still linger around until the home panels have been closed and reopened. To prevent this, we now directly notify the RecentTabsAdapter when all history has been deleted, so it can immediately clear its own copy of the last session's tabs.

MozReview-Commit-ID: 3EFY2WbWqzh

--HG--
extra : transplant_source : %C1%3FyzYZ%81F%5E%F9%98%FE%DC%B0%3F%0D%D3%18%7Bt
2016-05-14 21:27:23 +02:00
Jan Henning
6b24235a53 Bug 1251362 - Part 10 - Display a context menu for closed tab entries. r=liuche
MozReview-Commit-ID: Gv2tJoNRldX

--HG--
extra : transplant_source : N%8C%22%19%CD%7F%9E%CC%E4T%BEU%01D%29HZ%A6%0A%D5
2016-05-14 19:42:00 +02:00
Jan Henning
17ac1af323 Bug 1251362 - Part 9 - Display a button to open all recently closed tabs. r=liuche
Depending on the History panel's PanelLevel state, we now dynamically set the panel footer button's text and determine its onClick behaviour.

MozReview-Commit-ID: EjesnHsntyC

--HG--
extra : transplant_source : NCs%94C%DE%F5%FC%E6%D7%EA%F8%05%1E%D4%0E%2B%2B6%02
2016-05-26 16:36:25 +02:00
Jan Henning
4af4b8a0fa Bug 1251362 - Part 8 - Handle Recent Tabs in onItemClicked(). r=liuche
Clicking a tab in the list of recently closed tabs now sends the appropriate message back to the session store.

MozReview-Commit-ID: KF3UJjq5zQK

--HG--
extra : transplant_source : %3FU%EB%87%1B%C4%13I/a%FB%C5%C2v%06%26V%0C%A0%D8
2016-05-18 18:55:32 +02:00
Jan Henning
0df288dda3 Bug 1251362 - Part 7 - Update closed tabs count in the History panel main view. r=liuche
We need to update the recent tabs count displayed by the smart folder as necessary. To do this, we copy the approach used for updating the synced devices count.

MozReview-Commit-ID: BFwv5bY1DWk

--HG--
extra : transplant_source : %1A%EB%B0g%05%94%F3%E9%26%D8%1F%15%DF7%C3%EB%1E%27%C6_
2016-05-14 20:35:07 +02:00
Jan Henning
a8cf872eed Bug 1251362 - Part 6 - Update empty panel state when recent tabs count changes. r=liuche
The recent tabs count might change while the Recent Tabs folder is open, e.g. immediately after startup, once we receive the first "ClosedTabs:Data" message from the session store. Therefore, we need to hide/unhide the empty view as necessary, which is normally handled by the Combined History panel's updateEmptyView() function. Since we aren't using a cursor, we can't hinge calling that on the CursorLoader's onLoadFinished() callback, so instead, we include our own callback to the Combined History panel, modelled after the DeviceUpdateHandler used for updating the count of synced devices.

MozReview-Commit-ID: GLHM9LoWk2h

--HG--
extra : transplant_source : %09E%B2D%DCB%F6%D3%B5%8A%28%DCx%94e%A2%0F%14%A3%96
2016-05-15 01:41:45 +02:00
Jan Henning
ebe769ff81 Bug 1251362 - Part 5 - Actually show recently closed tabs when opening the smart folder. r=liuche
This fills the new smart folder we've previously added with life and displays the recently closed tabs as we receive them from the session store. If we can find a sessionstore.bak file (previously the "Tabs from last time"), we also add those tabs to the bottom of the list.

Most of the code for communicating with the session store and reading sessionstore.bak is adapted from the original Recent Tabs panel, however unlike the previous implementation, I've opted for a cursor-less approach of storing and retrieving the recent tabs data, since the recent tabs data isn't actually powered by a database anyway. Instead, the RecentTabsAdapter maintains two arrays for storing "Recently closed tabs" (as received through messages from the Gecko session store) and "Tabs from last time" (as read from sessionstore.bak during panel initialisation).

Also, as per the other Combined History panel adapters and because we're now using a RecyclerView instead of a ListView, list item types are now determined on demand through getItemTypeForPosition() instead of precalculating them during a data update and directly storing together with the tab data items in a cursor.

MozReview-Commit-ID: IpoUr9f0JBP

--HG--
extra : transplant_source : %C4%D5%AF%CA%A4_-%85%1AL%1D%9CF%2B%20Lh%7B%02%21
2016-06-02 18:08:23 +02:00
Jan Henning
2b737b8819 Bug 1251362 - Part 4 - Add a Recent Tabs folder to the Combined History panel. r=liuche
This folder can be opened and closed to get back to the history view, however it doesn't contain any actual content (closed tabs) yet. Its empty view is based on the original empty view of the Recent Tabs panel.

For displaying the recently closed tabs count within the smart folder similarly to how we display the number of synced devices, two new strings need to be added.

MozReview-Commit-ID: IAL0yDrc2Ld

--HG--
extra : transplant_source : %A1%80jZ%1Eg%14p%7D%DD%DD%EA%E8%7E%CA%0E%CD%28%99%3C
2016-05-13 23:52:24 +02:00
Jan Henning
0df88b27db Bug 1251362 - Part 3 - Add new "Recent" icon. r=liuche
Bug 1277277 will track getting this icon used for the search term history, too, so we can remove the old resources (icon_most_recent_empty.png) completely.

MozReview-Commit-ID: GFFovwiRokc

--HG--
extra : transplant_source : %5C%E5%EA%E4%D5%B7%F7%11%8E%DDSG%3C%93%13%DE%18%14%0E%03
2016-06-04 12:32:02 +02:00
Jan Henning
82c02802b1 Bug 1251362 - Part 2 - Import OnPanelLevelChangeListener.PanelLevel. r=liuche
OnPanelLevelChangeListener.PanelLevel.CHILD_SYNC really is a mouthful.

MozReview-Commit-ID: 3uEHQjUlTxf

--HG--
extra : transplant_source : %C8%E3%7E%D3%DB%84%92%0DPQ5/a%23%18%8F%8D%FD%BB7
2016-05-15 01:24:13 +02:00
Jan Henning
2e5e99233a Bug 1251362 - Part 1 - Increase SwipeRefreshLayout weight. r=liuche
Otherwise, depending on the device's display dimensions, a second smart folder would be overlapped by the empty view message that is displayed when no history is present for the history panel to display.

Once we've updated to a newer version of the support library (see bug 1267884), we should revisit this and see if using "wrap_content" is working properly instead.

MozReview-Commit-ID: 1xBCeiST9n4

--HG--
extra : transplant_source : %E5%A6%C7%DB%8E%DCQ%3D%B29%94%9BZ%EC%0CbJ%0F%08%B0
2016-05-16 17:53:01 +02:00
Kumar McMillan
b349539a68 Bug 1273229 - auto-generate IDs for temp installs from dir path. r=kmag
MozReview-Commit-ID: JFuEVUZs2Ci

--HG--
extra : transplant_source : W%7B%3D%11%90%19%BE1%3C%1Fp%0A%27%F9%C3G0%9C%0D%B8
2016-06-03 16:43:45 -05:00
moby
c4cfe0699b Bug 1278306 - Remove all uses of 'content.location = ' in the webconsole tests; r=bgrins 2016-06-06 13:35:00 +02:00
Carsten "Tomcat" Book
fa87aab90d Merge mozilla-central to fx-team 2016-06-08 12:15:05 +02:00
Carsten "Tomcat" Book
6439e7004c merge mozilla-inbound to mozilla-central a=merge 2016-06-08 11:57:53 +02:00
Carsten "Tomcat" Book
1bd67fd288 merge fx-team to mozilla-central a=merge 2016-06-08 11:56:38 +02:00
Bob Owen
7144380893 Bug 1278547: Don't attempt to delete the content process temp directory when it is the normal temp. r=jimm
MozReview-Commit-ID: t0rLIuFVMj
2016-06-08 07:46:57 +01:00
Nicholas Nethercote
3078d330ba Bug 1278452 - Fix up bad null checks in Skia. r=lsalzman.
--HG--
extra : rebase_source : 02ee975dff8d5666e132a3140fe13e77c94f850b
2016-06-08 14:12:10 +10:00
J. Ryan Stinnett
b48b79960b Bug 1278413 - Clean up code style in worker.js, event-emitter.js. r=tromey
MozReview-Commit-ID: LVbo9i0rPqI
2016-06-07 22:32:40 -05:00
Nicholas Nethercote
26dee45a45 Bug 1278452 - Avoid a null deref in dom/media/platforms/omx/. r=ayang.
|aData| can be null, because FindAndRemoveBufferHolder() can return null.

--HG--
extra : rebase_source : 033d1e574919b0a02f2f1390795a0c18f9d1de7d
2016-06-08 10:28:31 +10:00
Dustin J. Mitchell
fcd62b03ae Bug 1274611: fix indentation in mulet_simulator.yml; r=pmoore a=Tomcat
MozReview-Commit-ID: 6PzUWsZfeZ5

--HG--
extra : amend_source : 3da070432030498bd0417338b415e609f1e29fff
2016-06-07 14:10:17 +00:00
Benjamin Bouvier
22d4cffa7a Bug 1248555: Don't use the expected error directive in wasm/spec/; r=bustage
(because of platforms not supporting wasm at all)

MozReview-Commit-ID: 4GNERAe3YTD

--HG--
extra : rebase_source : 43fd616838fd5fca8d69081461d09b968c3a0622
2016-06-07 15:53:55 +02:00
Carsten "Tomcat" Book
c1439093ab Merge mozilla-central to mozilla-inbound 2016-06-07 15:34:15 +02:00
Carsten "Tomcat" Book
c6d661cfe2 merge mozilla-inbound to mozilla-central a=merge 2016-06-07 15:23:03 +02:00
Kaku Kuo
12e8630c37 Bug 1278228 - use MOZ_DIAGNOSTIC_ASSERT() to confirm that AccurateVideoOnly seek might reach MDSM::InitiateSeek(); r=jwwang
MozReview-Commit-ID: LLZn65yZib5

--HG--
extra : transplant_source : %DB%1E%01%0B%0D.%B1%A3%C6%21M%E1e%07S%0E%BCn%13y
2016-06-07 15:22:29 +08:00
Nicholas Nethercote
e341134774 Bug 1278452 - Move a misplaced null check in layout/forms/. r=mattwoodrow.
--HG--
extra : rebase_source : 49e80108b0970c0b2c649b3f78a606e0edfed378
2016-06-07 16:21:58 +10:00
Nicholas Nethercote
829225e78d Bug 1278452 - Remove a redundant null check in xpcom/glue/. r=froydnj.
There's another null check just a little earlier.

--HG--
extra : rebase_source : 24968e6bc5f12c3aa5d53711ebbb7f849c4501c3
2016-06-07 16:13:17 +10:00
Nicholas Nethercote
0068688a33 Bug 1278452 - Avoid a null deref in widget/. r=karlt.
--HG--
extra : rebase_source : 26464185d98b7b616b4bb819f4c13f49d66e5d2f
2016-06-07 16:03:34 +10:00
Nicholas Nethercote
a06aec9a0b Bug 1278452 - Avoid a null deref in dom/events/. r=mccr8.
--HG--
extra : rebase_source : 2ea15ae1cc93409d3657a820a74ba750223a93e2
2016-06-07 16:03:34 +10:00
Nicholas Nethercote
509ff29387 Bug 1278452 - Add some null checks when getting streams. r=froydnj.
--HG--
extra : rebase_source : 92d6792f23599f51f65022f61539b84faefe9c6b
2016-06-07 16:03:32 +10:00
Phil Ringnalda
305ac3c2cf Back out c88f2cb8e4fa (bug 1256475) for Android failures in test_imagebitmap_extensions.html
CLOSED TREE
2016-06-06 22:26:25 -07:00
Nicholas Nethercote
3c7909e181 Bug 1278452 - Fix some null checks in dom/xbl/. r=mrbkap.
--HG--
extra : rebase_source : 2ffe1b24834ee863705b36085da44cefe331f951
2016-06-07 15:24:48 +10:00
Nicholas Nethercote
ba949d4617 Bug 1278452 - Fix a typo in mozEnglishWordUtils::GetLanguage. r=ehsan.
|aLanguage| must be dereferenced when checked.

--HG--
extra : rebase_source : 8e5125c2eb99d66f731d58590a377b8238a81e70
2016-06-07 15:15:56 +10:00
Nicholas Nethercote
642d2ef877 Bug 1278452 - Avoid a possible null deref in netwerk/base/. r=valentin.
--HG--
extra : rebase_source : a538aeb4e261a1462fb276e8600481ab9e80339d
2016-06-07 15:07:54 +10:00