Commit Graph

2521 Commits

Author SHA1 Message Date
Mark Banner
4d7f6f4623 Bug 1446325 - Stop inserting the default smart bookmarks into new profiles. r=mak,lina
MozReview-Commit-ID: AGQaw1rgukO

Differential Revision: https://phabricator.services.mozilla.com/D1831
2018-07-02 16:25:09 +00:00
Dão Gottwald
aea1bcf707 Bug 1468992 - Remove the Library infopane More/Less toggle. r=mak
MozReview-Commit-ID: LRNXWTHaGYS
2018-06-30 01:12:13 +02:00
Dave Townsend
0f2c3bd648 Bug 1453751: Load favicons in the content process. r=mak, r=gijs, r=aswan, r=mixedpuppy
Summary:
This moves the load of favicons into the content process. We use the same logic
for finding favicons (based on waiting until none have shown up for a short
time) but then load the favicon and convert it to a data uri which we then
dispatch to the parent process. Along the way this fixes asssociating the load
with the tab for WebExtension and devtools, fixes CSP usage for the load, fixes
expiry detection of the favicon and stops us from loading the same resource
twice.

This change also merges the prefs browser.chrome.site_icons and
browser.chrome.favicons leaving just the former controlling favicon loading. It
adds the pref browser.chrome.guess_favicon to allow disabling guessing where
a favicon might be located for a site (at <hostname>/favicon.ico). This is
mainly to allow disabling this in tests where those additional yet automatic
requests are uninteresting for the test.

There are multiple clean-ups that can follow this but this is a first step along
that path.

MozReview-Commit-ID: E0Cs59UnxaF

Reviewers: mak

Tags: #secure-revision

Bug #: 1453751

Differential Revision: https://phabricator.services.mozilla.com/D1672
Differential Revision: https://phabricator.services.mozilla.com/D1673
Differential Revision: https://phabricator.services.mozilla.com/D1674
Differential Revision: https://phabricator.services.mozilla.com/D1850
Differential Revision: https://phabricator.services.mozilla.com/D1869
2018-06-28 16:06:09 -07:00
James Teh
c8f1cc85d6 Bug 1470779: label History and Bookmarks sidebar containers for accessibility. r=mak
Without this, accessibility reports the chrome:// URL of the page element as the label, which is ugly for screen reader users in particular.

MozReview-Commit-ID: AIInSb79YcN
2018-06-27 10:53:03 +10:00
Mark Banner
9272396ce0 Bug 1471215 - Remove now unnecessary classInfo definition in PlacesTreeView. r=mak
MozReview-Commit-ID: 2BJGohgrA2l

Differential Revision: https://phabricator.services.mozilla.com/D1828
2018-06-26 20:45:41 +00:00
Mark Banner
dce383b8e6 Bug 1467996 - Remove all the code adding a description annotation. r=mak,lina
MozReview-Commit-ID: CRBSxJtJELp

Differential Revision: https://phabricator.services.mozilla.com/D1748
2018-06-26 12:33:45 +00:00
Mark Banner
b24bddc9dc Bug 1452645 - Remove load in sidebar functionality. r=lina,mak
Based on patch by mixedpuppy.

MozReview-Commit-ID: BZwOtr4VbCH
2018-06-06 21:00:45 +01:00
Mark Banner
6f1bbc0764 Bug 1469418 - Fix updating the folder name in the bookmarks properties menulist when it changes. r=mak
MozReview-Commit-ID: C1uPLL4SDd7

Differential Revision: https://phabricator.services.mozilla.com/D1701
2018-06-19 22:59:47 +00:00
Mark Banner
47dd667387 Bug 1465347 - Remove the ability to sort results by annotation as it is no longer used. r=mak
MozReview-Commit-ID: bl588eAmkD

Differential Revision: https://phabricator.services.mozilla.com/D1662
2018-06-15 07:39:32 +00:00
Mark Banner
41a7e9b97e Bug 1468309 - Fix double clicking on a special folder on right side pane on the bookmarks library view. r=mak
MozReview-Commit-ID: AtYCQZmR62K

Differential Revision: https://phabricator.services.mozilla.com/D1637
2018-06-14 17:42:00 +00:00
Mark Banner
f07877cb27 Bug 1414224 - Remove unnecessary async annotations around getTransactionsForTransferItems. r=mak
MozReview-Commit-ID: 4XEv3IO5YvB

Differential Revision: https://phabricator.services.mozilla.com/D1611
2018-06-13 23:40:07 +00:00
Joel Maher
d0823df1ef Bug 1405428 - skip-if = verify on mochitests which do not pass test-verify. r=gbrown 2018-06-10 05:01:47 -04:00
Mark Banner
6a062609a2 Bug 1404909 - Improve performance of moving bookmarks via cut/paste or drag/drop by providing a bulk-move handling API. r=mak
The moveBookmark implementation is largely a simplification of the updateBookmark but with a focus on optimising for moves, and handling multiple-move cases.

The performance improvements come from only having one places wrapper, and one database transaction, rather than one-per-item to be moved. There's also some minor optimisations in the flow, as it can be simplified compared to a full update.

MozReview-Commit-ID: 5So28A7Dcpp
2018-04-24 16:38:16 +01:00
Mark Banner
be1eb92de2 Bug 1467807 - Stop supporting passing ids to (places)tree.selectItems and selectLeftPaneContainerByHierarchy. r=mak
MozReview-Commit-ID: 8E1VUKU2Ya2

Differential Revision: https://phabricator.services.mozilla.com/D1594
2018-06-08 16:09:37 +00:00
Kris Maglione
0847e8227e Bug 1464548: Part 3 - Update callers to use defineLazyGlobalGetters. r=mccr8
MozReview-Commit-ID: 9APGewiDDYB
2018-05-25 17:02:29 -07:00
Kris Maglione
b88b064b81 Bug 1464548: Part 1b - Don't delete properties before redefining them, because deleting properties kills JIT performance. r=mccr8
MozReview-Commit-ID: IUMg59xRoIu
2018-05-25 19:17:58 -07:00
Mark Banner
115f213671 Bug 1466929 - Fix intermittent issues in browser_bookmarkProperties_remember_folders.js. r=mak
Ensure we wait for the onItemMoved notification before proceeding, to avoid async issues. Also improve the wait for checks to provide better debug.

Differential Revision: https://phabricator.services.mozilla.com/D1579
2018-06-07 11:42:11 +00:00
Marco Bonardo
cdc2c9dc96 Bug 1467049 - Fix a couple comments about disabled tests. r=standard8
MozReview-Commit-ID: 5CNMRnAj9XC
2018-06-06 10:02:22 +02:00
Mark Banner
04568e0b5a Bug 1460579 - Replace the 'bookmarkPropertiesDialog/folderLastUsed' annotation with a key/value pair in moz_meta. r=mak
MozReview-Commit-ID: GpEPxOMDret
2018-05-11 07:35:59 +01:00
Dão Gottwald
306f193ab6 Bug 1464489 - When creating a new bookmark, the bookmark panel should be titled "New Bookmark" instead of "Page Bookmarked". r=standard8
MozReview-Commit-ID: 1OeIdsf3bx
2018-05-25 20:22:35 +02:00
Mark Banner
8853e86675 Bug 1463738 - Remove the Bookmark description UI. r=dao
This removes the bookmark description UI, but leaves the backend in-place for a release or two, so that users have time to save anything they want (e.g. via backup).
The backend will be removed in bug 1402890.

MozReview-Commit-ID: La4AYFar7eK
2018-05-23 17:15:09 +01:00
Tawny Hoover
ec89441940 Bug 1400323 - Refactor code for openInTabClosesMenu pref to avoid needing setTimeout on Mac. (cleanup on popuphidden) r=mak
MozReview-Commit-ID: FR6vZksnFEz
2018-05-17 22:32:47 -04:00
Mark Banner
d9f890e77d Bug 824502 - Fix unit tests for the folder=<id> to parent=<guid> transition. r=mak
MozReview-Commit-ID: FCaiJrSAMAV
2018-05-01 08:14:53 +01:00
Mark Banner
bcb5601b9f Bug 824502 - Change folder=<id> to parent=<guid> in Places' bookmark queries. r=mak
This allows queries to be stable across devices, and requires less work to obtain the ids.

MozReview-Commit-ID: 5KAKKags7o9
2018-04-26 09:05:00 +01:00
Dão Gottwald
8a4e4ea835 Bug 1459885 - Implement new header style and lay out labels above input fields in the new bookmarks dialog. r=mak
MozReview-Commit-ID: 9FmGhfP9aDo
2018-05-22 12:21:52 +02:00
Mark Banner
9e457b164d Bug 1209518 - Fix highlighting of cut bookmarks. r=mak
Fix the ownership check to correctly check if we're cutting or copying.

MozReview-Commit-ID: 1eLt4Fyy2nE
2018-05-21 16:55:26 +01:00
Marco Bonardo
3c437dd9d9 Bug 1461685 - The bookmarks toolbar is empty if the first bookmark is a separator. r=standard8
MozReview-Commit-ID: JcDokxD2wXh
2018-05-16 15:24:23 +02:00
Mark Banner
a6205d63b1 Bug 1461997 - Enable ESLint rule mozilla/require-expected-throws-or-rejects for browser/components. r=Gijs
MozReview-Commit-ID: JXqwIyF6v6k
2018-05-16 20:23:06 +01:00
Marco Bonardo
bb40ab662a Bug 1458910 - Merge nsPIPlacesDatabase into nsINavHistoryService. r=standard8
MozReview-Commit-ID: LacXKR32Jn3
2018-05-10 10:39:12 +02:00
Csoregi Natalia
2bbe13fc8e Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-05-10 19:45:06 +03:00
Gurzau Raul
f98512b180 Backed out changeset 6bc652b4e61a (bug 1439832) for failing on /tests/browser/browser_toolbar_overflow.js on a CLOSED TREE 2018-05-10 19:35:09 +03:00
Cosmin Sabou
6057dea296 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-05-10 01:16:27 +03:00
George Echim
51d288cbfe Bug 1439935 - Add a test for testing backup JSON file export/import. r=standard8 a=reland on a CLOSED TREE
MozReview-Commit-ID: CCra06PhLNm
2018-03-08 15:42:51 +02:00
Gurzau Raul
f5b689a92c Backed out changeset 4092dcafedd0 (bug 1439935) for failing on /tests/browser/browser_toolbar_overflow.js on a CLOSED TREE 2018-05-10 16:44:00 +03:00
George Echim
c10601d593 Bug 1439935 - Add a test for testing backup JSON file export/import. r=standard8
MozReview-Commit-ID: CCra06PhLNm
2018-03-08 15:42:51 +02:00
George Echim
8a5ab3e216 Bug 1439832 - Add a test for checking that bookmarks can be opened from Bookmarks Menu - Recently Added Bookmarks section. r=standard8
MozReview-Commit-ID: 69rAIfo2w06
2018-03-06 17:03:50 +02:00
Kris Maglione
c03fa450d6 Bug 1460092: Add ESLint rule to enforce use of ChromeUtils.generateQI. r=Gijs
Also fixes existing code which fails the rule.

MozReview-Commit-ID: CkLFgsspGMU
2018-05-08 18:36:22 -07:00
Yuri Khan
d0eca16502 Bug 1417133 - When loadBookmarksInTabs is true and current tab is blank, reuse it. r=Standard8 2018-04-29 20:28:05 +07:00
jakehm
6494c8336e Bug 1089691 - Convert consumers of removePagesByTimeframe and removePagesFromHost to PlacesUtils.history.removeByFilter. r=mak
MozReview-Commit-ID: HevUcwPhYhd
2018-02-25 14:27:03 -05:00
Mark Banner
b9768ba42a Bug 1458230 - Fix various Assert.ok tests that should be using Assert.equals in places related code. r=Paolo
MozReview-Commit-ID: 7i1fPn10Xbe
2018-05-01 15:25:18 +01:00
Gijs Kruitbosch
16ff687c65 Bug 1447619 - avoid reflowing when returning items to the toolbar from the overflow menu, r=florian
MozReview-Commit-ID: BFGRssWb9F
2018-04-20 15:09:44 +01:00
Andreea Pavel
8aa53073af Backed out changeset 1ce48405e58a (bug 1447619) for creating bug 1457257 and bug 1457289 on a CLOSED TREE 2018-04-28 20:46:51 +03:00
Kris Maglione
582a21b473 Bug 1456035: Part 5 - Convert manual QueryInterface to ChromeUtils.generateQI. r=mccr8
Manually-implemented QueryInterface functions don't benefit from the
MozQueryInterface optimizaions, and a lot of them are in hot code, and
implement a large number of interfaces.

MozReview-Commit-ID: 8OzglraowZt
2018-04-23 12:58:34 -07:00
Kris Maglione
fd7e9e6a69 Bug 1456035: Part 4 - Convert callers of XPCOMUtils.generateQI to ChromeUtils.generateQI. r=mccr8
This also removes any redundant Ci.nsISupports elements in the interface
lists.

This was done using the following script:

acecb401b7/processors/chromeutils-generateQI.jsm

MozReview-Commit-ID: AIx10P8GpZY
2018-04-22 20:55:06 -07:00
Neil Deakin
ddc248eb52 Bug 1446961, remove obsolete calls to showPopup and replace usages of the popup box object with the same methods defined on popups, r=paolo 2018-04-27 11:04:36 -04:00
Michal Novotny
b0fcd7f102 Bug 1448476 - Cache entry corruption after writing the alternate data. r=honzab
When writing to alt-data output stream fails for whatever reason, we now try to
truncate alternative data and keep the original data instead of dooming the
whole entry. The patch also changes how is the predicted size passed to the
cache. Instead of a dedicated method it's now an argument of openOutputStream
and openAlternativeOutputStream methods which fail in case the entry would
exceed the allowed limit.
2018-04-25 07:01:00 +03:00
Boris Zbarsky
c9145e654e Bug 1455674 part 19. Get rid of JS uses of nsIDOMElement. r=qdot
In nsBlocklistService.js we know we're dealing with actual nodes, so .nodeType
checks should be fine.
2018-04-26 23:37:34 -04:00
Gijs Kruitbosch
e4d0017659 Bug 1447619 - avoid reflowing when returning items to the toolbar from the overflow menu, r=florian
MozReview-Commit-ID: BFGRssWb9F
2018-04-20 15:09:44 +01:00
sreeise
a641c4640f Bug 1448081 - Replaced tests using updatePlaces with PlaceTestUtils.addVisits. r=Standard8
PlacesTestUtils.addVisits provides a better api for adding history visits to the database for testing.

MozReview-Commit-ID: 3VIeWz59ErM
2018-04-22 00:33:55 -07:00
Dorel Luca
216454e5e1 Backed out changeset 9c339f571d35 (bug 1448081) for browser chrome failures on browser/components/places/tests/browser/browser_library_downloads.js. a=backout" 2018-04-21 04:49:45 +03:00