Commit graph

2552 commits

Author SHA1 Message Date
Mark Banner
bf2dba5c9f Bug 1476228 - Enable comma-dangle ESLint rule for Places directories. r=mikedeboer
MozReview-Commit-ID: K8HcZfyF4Sz

Differential Revision: https://phabricator.services.mozilla.com/D3796

--HG--
extra : moz-landing-system : lando
2018-08-22 15:44:43 +00:00
Mark Banner
f99b0cbb91 Bug 1484482 - Fix the bookmarks menu when it is displayed via the hidden window. r=paolo
MozReview-Commit-ID: 7VYNxFmedZl

Differential Revision: https://phabricator.services.mozilla.com/D3923

--HG--
extra : moz-landing-system : lando
2018-08-22 10:17:28 +00:00
Tiberius Oros
05b46cf200 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-08-22 00:59:19 +03:00
Dorel Luca
b704584332 Merge mozilla-central to autoland 2018-08-21 19:03:25 +03:00
Jonathan Kingston
203aa92dca Bug 1483148 - Add allowInheritPrincipal to current tab bookmarklets. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D3313

--HG--
extra : moz-landing-system : lando
2018-08-21 13:24:49 +00:00
Gurzau Raul
47735ea73a Backed out changeset 3f0325c0b307 (bug 1418602) for Eslint and browser_ext_sidebarAction_runtime.js failures on a CLOSED TREE 2018-08-21 05:09:05 +03:00
Tim Nguyen
aaded6fa49 Bug 1418602 - Allow theming sidebars. r=mconley
MozReview-Commit-ID: 97zkU7raehV

--HG--
extra : rebase_source : ae7fb55a913abd1d59b0dfbbca6e24a7e7b9ff15
2018-08-06 17:46:43 +01:00
Tim Nguyen
136f2e2340 Bug 1484512 - Split up places.css and only load relevant parts of it. r=dao
--HG--
rename : browser/themes/linux/places/places.css => browser/themes/linux/places/sidebar.css
rename : browser/themes/osx/places/places.css => browser/themes/osx/places/sidebar.css
rename : browser/themes/shared/places/places.inc.css => browser/themes/shared/places/sidebar.inc.css
rename : browser/themes/shared/places/tree-icons.inc.css => browser/themes/shared/places/tree-icons.css
rename : browser/themes/windows/places/places.css => browser/themes/windows/places/sidebar.css
extra : rebase_source : 14b9345e1408cf1d873f29b3c5f4ae6313afbad6
2018-08-19 10:34:33 +01:00
Brian Grinstead
4995c61b0f Bug 1482667 - Migrate mochitest-browser tests in browser/ to use element variations of firstChild, etc;r=paolo
Differential Revision: https://phabricator.services.mozilla.com/D3530

--HG--
extra : moz-landing-system : lando
2018-08-17 16:45:52 +00:00
Tim Nguyen
aec6f53828 Bug 1483251 - Clean up bookmarks/history sidebar CSS. r=jaws
--HG--
extra : rebase_source : e44e7cbdd9f418ce5d1893906b09a0e12d24adaa
2018-08-14 17:28:16 +01:00
Mark Banner
226dbd7bdc Bug 1456078 - Upgrade ESLint to version 5.3.0, and eslint-plugin-html to 4.0.5. r=mossop
MozReview-Commit-ID: 7yvvXKxYodA

Differential Revision: https://phabricator.services.mozilla.com/D2834

--HG--
extra : moz-landing-system : lando
2018-08-07 14:46:19 +00:00
Brian Grinstead
abf1620630 Bug 1479125 - Migrate calls that expect an element to be returned to use element variation firstChild etc to firstElementChild etc;r=Paolo
This allows the JS to work in HTML documents, where whitespace is preserved. In XUL
documents, whitespace is ignored when parsing so text nodes are generally not returned.

The following changes were made, with manual cleanups as necessary (i.e. when firstChild actually
refers to a text node, or when firstChild is used in a loop to empty out an element):

  firstChild->firstElementChild
  lastChild->lastElementChild
  nextSibling->nextElementSibling
  previousSibling->previousElementSibling
  childNodes->children

MozReview-Commit-ID: 95NQ8syBhYw

--HG--
extra : rebase_source : 186d805f7a2a56694dda9032aceac2dfe5424753
2018-08-08 15:22:53 -07:00
Neil Deakin
1ec6f10950 Bug 1473026, use cell coordinates for comparing tree icons rather than the selection region, r=mak 2018-08-07 09:32:07 -04:00
Mark Banner
8c39205461 Bug 1481445 - Remove the id option for PlacesUtils.isRootItem (guids only accepted). r=lina
Depends on D2850

Differential Revision: https://phabricator.services.mozilla.com/D2851

--HG--
extra : moz-landing-system : lando
2018-08-07 17:37:01 +00:00
Tim Nguyen
0c68c54d3e Bug 1418602 - Allow theming sidebars. r=mconley
MozReview-Commit-ID: 97zkU7raehV

--HG--
extra : rebase_source : 02a80c78170723bf9d7d2e72834fc26850894dbc
2018-08-06 17:46:43 +01:00
Mark Banner
f1731211b5 Bug 1479722 - Rework PlacesUtils.setCharsetForURI to PlacesUIUtils.setCharsetForPage and avoid main thread sync io. r=mak
MozReview-Commit-ID: HeO3Mm5Dibo

Differential Revision: https://phabricator.services.mozilla.com/D2582

--HG--
extra : moz-landing-system : lando
2018-08-01 10:13:59 +00:00
George Echim
b293b4d31b Bug 1439832 - Add a test for checking that bookmarks can be opened from Bookmarks in the Library Menu. r=standard8
MozReview-Commit-ID: 69rAIfo2w06

--HG--
extra : rebase_source : baf194bb08abcae140c616bceb7987f249ae06a7
2018-07-31 20:29:12 +01:00
Mark Banner
3285ea59f0 Bug 1479053 - Remove nsIAnnotationObserver::onPageAnnotationSet/Removed. r=mak
MozReview-Commit-ID: JkUhtuV1fvU

Differential Revision: https://phabricator.services.mozilla.com/D2473

--HG--
extra : moz-landing-system : lando
2018-07-31 11:40:52 +00:00
Marco Bonardo
23cf556fe1 Bug 1477996 - Move getURIsForTag to the bookmarking API. r=Standard8,lina
The tagging API is being merged into the bookmarking API. This is part of it.

Differential Revision: https://phabricator.services.mozilla.com/D2450

--HG--
extra : moz-landing-system : lando
2018-07-27 15:16:57 +00:00
Marco Bonardo
3489683af3 Bug 1452067 - Move AllTags to an async method in the bookmarking API. r=Standard8
The tagging API is moving to the bookmarking API, this is one step

Differential Revision: https://phabricator.services.mozilla.com/D2316

--HG--
extra : moz-landing-system : lando
2018-07-25 14:04:14 +00:00
Boris Zbarsky
270fa12c79 Bug 1476145 part 3. Stop using getInterface(nsIDOMWindowUtils) in browser/. r=gijs 2018-07-24 19:47:41 -04:00
Brian Grinstead
96dc530924 Bug 1476333 - Refer to AppConstants.BROWSER_CHROME_URL to get the browser URL from the frontend;r=Gijs
Before this change, we accessed the browser URL in the following ways:

- "chrome://browser/content/browser.xul"
- "chrome://browser/content/" (which redirects to chrome://browser/content/browser.xul)
- Services.prefs.getCharPref("browser.chromeURL") which returns "chrome://browser/content/"
- getBrowserURL() from utilityOverlay.js

MozReview-Commit-ID: I5vtRke1x9t

--HG--
extra : rebase_source : c525350a1954740873e85b045cbb14a8b43aa89d
2018-07-24 08:12:50 -07:00
Mark Banner
8de4344378 Bug 1462135 - Replace PlacesUtils.getCharsetForURI with PU.history.fetch with an option to fetch annotations. r=mak
This also avoids us doing main thread sync io.

MozReview-Commit-ID: KR0p7eeu1sj

Differential Revision: https://phabricator.services.mozilla.com/D2117

--HG--
extra : moz-landing-system : lando
2018-07-24 16:41:22 +00:00
Brian Grinstead
8ceaae11ca Bug 1476030 - Part 1 - Expose xulStore through Services;r=Gijs
This lets us use Services.xulStore instead of requiring
Cc["@mozilla.org/xul/xulstore;1"].getService(Ci.nsIXULStore);

MozReview-Commit-ID: 2eXifCPhlGs

--HG--
extra : rebase_source : c65b9395cc192d05d1a348cfbf92f7f59d41dc8f
2018-07-18 09:43:38 -07:00
Marco Bonardo
d8d5ab3323 Bug 1463443 - Disable browser_toolbar_overflow.js on debug linux 32bit. r=adw
MozReview-Commit-ID: 1VtrrFhBZXF

--HG--
extra : rebase_source : 3ee5a14e7a50179c6fa7179b58887d9c42528f1e
2018-07-16 15:23:46 +02:00
Noemi Erli
6143bab039 Bug 1469825 - Disable browser_bookmarkProperties_newFolder.js for frequent failures on Widnows and Linux. r=gbrown 2018-07-15 13:14:00 +03:00
Paolo Amadini
da419e0e8e Bug 1472748 - Convert the listbox in "editBookmarkPanel.inc.xul" to "richlistbox". r=mak
This uses the same event handling as the "listbox" and "listitem-checkbox" bindings that are scheduled for removal, and copies the required styles locally.

There is no need to preserve the scroll position explicitly anymore, because "richlistbox" handles scrolling like regular elements, and we don't want to persist the position when the selector is closed and reopened.

MozReview-Commit-ID: 4gYhwlprPN7

--HG--
extra : source : a92f9683c6cdaeb5541b85eb77adf46448716a7b
2018-07-13 15:37:31 +01:00
Emma Malysz
ce8c74748f Bug 1454358, removes unneccessary implementation of ScrollBoxObject rr?enndeakin+6102 r=bz,enndeakin+6102
MozReview-Commit-ID: LBQ0RoS0ZVc

--HG--
rename : dom/webidl/ScrollBoxObject.webidl => dom/chrome-webidl/XULScrollElement.webidl
rename : layout/xul/ScrollBoxObject.cpp => dom/xul/XULScrollElement.cpp
rename : layout/xul/ScrollBoxObject.h => dom/xul/XULScrollElement.h
extra : rebase_source : 6a0de76dfdacbc29d261a4aea703a44f87ad7e12
2018-06-25 10:11:31 -07:00
Bogdan Tara
6dbc2726d8 Backed out changeset b099e7e0b264 (bug 1454358) for build bustages on Element.h CLOSED TREE
--HG--
rename : dom/chrome-webidl/XULScrollElement.webidl => dom/webidl/ScrollBoxObject.webidl
rename : dom/xul/XULScrollElement.cpp => layout/xul/ScrollBoxObject.cpp
rename : dom/xul/XULScrollElement.h => layout/xul/ScrollBoxObject.h
2018-07-12 01:50:53 +03:00
Emma Malysz
c28a132d13 Bug 1454358, removes unneccessary implementation of ScrollBoxObject rr?enndeakin+6102 r=bz,enndeakin+6102
MozReview-Commit-ID: LBQ0RoS0ZVc

--HG--
rename : dom/webidl/ScrollBoxObject.webidl => dom/chrome-webidl/XULScrollElement.webidl
rename : layout/xul/ScrollBoxObject.cpp => dom/xul/XULScrollElement.cpp
rename : layout/xul/ScrollBoxObject.h => dom/xul/XULScrollElement.h
extra : rebase_source : ad00e7030e50229975b0bc0d3c622af4fe244a79
2018-06-25 10:11:31 -07:00
Brian Grinstead
4121127ab8 Bug 1445764 - Move Places imports from XUL to JS for the Places documents;r=standard8
MozReview-Commit-ID: 1LKRgTlaupu

--HG--
extra : rebase_source : ac36bf61df6d77f495e018ac6a972d78e3cbc173
2018-07-03 14:26:49 -07:00
Mark Banner
acb2be40d6 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

--HG--
extra : moz-landing-system : lando
2018-07-02 16:25:09 +00:00
Dão Gottwald
bf70cd59cf Bug 1468992 - Remove the Library infopane More/Less toggle. r=mak
MozReview-Commit-ID: LRNXWTHaGYS

--HG--
extra : rebase_source : c71bf348490ea8f3791202e65f42280bf81ed803
2018-06-30 01:12:13 +02:00
Dave Townsend
d8b7fb22e3 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

--HG--
rename : browser/base/content/test/general/browser_bug408415.js => browser/base/content/test/favicons/browser_bug408415.js
rename : browser/base/content/test/general/browser_bug550565.js => browser/base/content/test/favicons/browser_bug550565.js
rename : browser/base/content/test/general/browser_favicon_change.js => browser/base/content/test/favicons/browser_favicon_change.js
rename : browser/base/content/test/general/browser_favicon_change_not_in_document.js => browser/base/content/test/favicons/browser_favicon_change_not_in_document.js
rename : browser/base/content/test/general/browser_subframe_favicons_not_used.js => browser/base/content/test/favicons/browser_subframe_favicons_not_used.js
rename : browser/base/content/test/general/file_bug970276_favicon1.ico => browser/base/content/test/favicons/file_bug970276_favicon1.ico
rename : browser/base/content/test/general/file_bug970276_favicon1.ico => browser/base/content/test/favicons/file_bug970276_favicon2.ico
rename : browser/base/content/test/general/file_bug970276_popup1.html => browser/base/content/test/favicons/file_bug970276_popup1.html
rename : browser/base/content/test/general/file_bug970276_popup2.html => browser/base/content/test/favicons/file_bug970276_popup2.html
rename : browser/base/content/test/general/file_favicon_change.html => browser/base/content/test/favicons/file_favicon_change.html
rename : browser/base/content/test/general/file_favicon_change_not_in_document.html => browser/base/content/test/favicons/file_favicon_change_not_in_document.html
rename : browser/base/content/test/general/file_bug970276_favicon1.ico => browser/base/content/test/favicons/file_generic_favicon.ico
rename : browser/base/content/test/general/file_with_favicon.html => browser/base/content/test/favicons/file_with_favicon.html
extra : rebase_source : 6372b2681a59d267f966e9fa2ca9a54e3ff0cea0
extra : intermediate-source : b11aa832c41ac5beef9065f804d11fb7c9887990
extra : source : 638eb8a41245f6d9932861afda21edd5e0b2618a
2018-06-28 16:06:09 -07:00
James Teh
970e561de6 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

--HG--
extra : rebase_source : d39f2bc627eeb521122dbbcbdc4699af3942ca23
2018-06-27 10:53:03 +10:00
Mark Banner
7db339076c 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
1808cc5dec 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
5b8ba7f27e Bug 1452645 - Remove load in sidebar functionality. r=lina,mak
Based on patch by mixedpuppy.

MozReview-Commit-ID: BZwOtr4VbCH

--HG--
extra : rebase_source : 2e3ad3fedaf82d0e5d3db9bcebf1c2faa46447e7
2018-06-06 21:00:45 +01:00
Mark Banner
8fd7fd6712 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
a801c17c04 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
e0fe144ad7 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
296cdabdf9 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
50b91c0a14 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
183a2fd1d5 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

--HG--
extra : rebase_source : abf984135cb96d2ad12389e7a1580b4a8f494fce
2018-04-24 16:38:16 +01:00
Mark Banner
332df0f776 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
7b7264f453 Bug 1464548: Part 3 - Update callers to use defineLazyGlobalGetters. r=mccr8
MozReview-Commit-ID: 9APGewiDDYB

--HG--
extra : rebase_source : 2931dd0eec0e4206414b698a9700fc20d922eb3a
2018-05-25 17:02:29 -07:00
Kris Maglione
a4973ad0d6 Bug 1464548: Part 1b - Don't delete properties before redefining them, because deleting properties kills JIT performance. r=mccr8
MozReview-Commit-ID: IUMg59xRoIu

--HG--
extra : rebase_source : 6be1c84601ff868835cad53116ab920d2f2db317
2018-05-25 19:17:58 -07:00
Mark Banner
3623389a1b 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
9449b22908 Bug 1467049 - Fix a couple comments about disabled tests. r=standard8
MozReview-Commit-ID: 5CNMRnAj9XC

--HG--
extra : rebase_source : 2ff4cde2f92e057443e8c8252f1ffda0189c847c
2018-06-06 10:02:22 +02:00
Mark Banner
ea3dbe0fdd Bug 1460579 - Replace the 'bookmarkPropertiesDialog/folderLastUsed' annotation with a key/value pair in moz_meta. r=mak
MozReview-Commit-ID: GpEPxOMDret

--HG--
extra : rebase_source : ca691591356d12d17c6e51f5fc3b0cd4cfe687da
2018-05-11 07:35:59 +01:00