Commit Graph

475 Commits

Author SHA1 Message Date
monikamaheshwari
edb30ffaec Bug 1578683 Turn on ESLint rule prefer-boolean-length-check for toolkit and browser r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D45629
2019-09-14 09:39:26 +00:00
Gijs Kruitbosch
c3d6e37670 Bug 1567414 - ensure we display the 'Open' context menu entry on bookmarks when they load in new tabs by default, r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D39025
2019-07-23 15:24:38 +00:00
Hamzah
030732a1dc Bug 1559956 - UX: Bookmark bar context menu item "Open in New Tab" is not consistent with anchor link context menu. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D37197
2019-07-15 18:38:01 +00:00
Victor Porof
8eb72fd3fc Bug 1561435 - Format browser/components/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D36042
2019-07-05 09:53:32 +02:00
Mihir
4e3e42eba6 Bug 543314 - Allow bookmarks to be moved (as well as copied) from a bookmarks search. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D32629
2019-06-11 20:33:51 +00:00
Boris Zbarsky
bc701e00cb Bug 1557847. Stop using [array] in nsIClipboard. r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D34243
2019-06-09 01:06:39 +00:00
Kris Maglione
856fa07b17 Bug 1514594: Part 3 - Change ChromeUtils.import API.
***
Bug 1514594: Part 3a - Change ChromeUtils.import to return an exports object; not pollute global. r=mccr8

This changes the behavior of ChromeUtils.import() to return an exports object,
rather than a module global, in all cases except when `null` is passed as a
second argument, and changes the default behavior not to pollute the global
scope with the module's exports. Thus, the following code written for the old
model:

  ChromeUtils.import("resource://gre/modules/Services.jsm");

is approximately the same as the following, in the new model:

  var {Services} = ChromeUtils.import("resource://gre/modules/Services.jsm");

Since the two behaviors are mutually incompatible, this patch will land with a
scripted rewrite to update all existing callers to use the new model rather
than the old.
***
Bug 1514594: Part 3b - Mass rewrite all JS code to use the new ChromeUtils.import API. rs=Gijs

This was done using the followng script:

https://bitbucket.org/kmaglione/m-c-rewrites/src/tip/processors/cu-import-exports.jsm
***
Bug 1514594: Part 3c - Update ESLint plugin for ChromeUtils.import API changes. r=Standard8

Differential Revision: https://phabricator.services.mozilla.com/D16747
***
Bug 1514594: Part 3d - Remove/fix hundreds of duplicate imports from sync tests. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16748
***
Bug 1514594: Part 3e - Remove no-op ChromeUtils.import() calls. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16749
***
Bug 1514594: Part 3f.1 - Cleanup various test corner cases after mass rewrite. r=Gijs
***
Bug 1514594: Part 3f.2 - Cleanup various non-test corner cases after mass rewrite. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16750
2019-01-17 10:18:31 -08:00
Toby Ward
207badbc32 Bug 1435562 - browser.tabs.warnOnOpen is now respected when opening multiple items from the library. r=Standard8
- Unified openContainerNodeInTabs and openURINodesInTabs in PlacesUIUtils into openMultipleLinksInTabs
- Users are now warned when the amount of links to be opened is equal to or exceeds browser.tabs.maxOpenBeforeWarn

Differential Revision: https://phabricator.services.mozilla.com/D12983
2018-12-10 17:04:18 +00:00
Csoregi Natalia
3043e2663f Backed out changeset 81a6b32f2a8b (bug 1435562) for causing Bug 1512180. a=backout 2018-12-06 14:20:20 +02:00
Toby Ward
608941107e Bug 1435562 - browser.tabs.warnOnOpen is now respected when opening multiple items from the library. r=Standard8
- Unified openContainerNodeInTabs and openURINodesInTabs in PlacesUIUtils into openMultipleLinksInTabs
- Users are now warned when the amount of links to be opened is equal to or exceeds browser.tabs.maxOpenBeforeWarn

Differential Revision: https://phabricator.services.mozilla.com/D12983
2018-12-04 19:20:59 +00:00
Tom Schuster
8b2f90e93c Bug 1493292 - Remove aDataLen parameters from nsITransferable.getTransferData. r=smaug
Depends on D11200

Differential Revision: https://phabricator.services.mozilla.com/D11201
2018-11-20 16:59:56 +00:00
Csoregi Natalia
5ada471f97 Backed out 6 changesets (bug 1493292) for bustage on /nsTransferable.cpp. CLOSED TREE
Backed out changeset f198bf91320b (bug 1493292)
Backed out changeset 6487aa307123 (bug 1493292)
Backed out changeset f2cabd69c568 (bug 1493292)
Backed out changeset 71430fceb4a3 (bug 1493292)
Backed out changeset 3a9b6d65d8c7 (bug 1493292)
Backed out changeset 55769869037c (bug 1493292)
2018-11-20 17:13:18 +02:00
Tom Schuster
e294f7e628 Bug 1493292 - Remove aDataLen parameters from nsITransferable.getTransferData. r=smaug
Depends on D11200

Differential Revision: https://phabricator.services.mozilla.com/D11201
2018-11-20 14:47:02 +00:00
Mark Banner
3b53bec3b5 Bug 1502954 - Remove livemarks code from toolkit. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D12118
2018-11-20 13:29:54 +00:00
Tom Schuster
9c64b67174 Bug 1503588 - Remove aDataLen parameter from nsITransferable.getAnyTransferData. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D10441
2018-11-02 11:02:25 +00:00
Marco Bonardo
cf3bc2c524 Bug 1502655 - Remove remaining frontend livemarks code. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D9992
2018-10-29 13:18:17 +00:00
Mark Banner
8cd25e0609 Bug 1501811 - Remove livemarks support from browserPlacesViews/treeView. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D9701
2018-10-26 07:40:15 +00:00
Marco Bonardo
5cc5f2c138 Bug 1477671 - Stop allowing creation of new live bookmarks from the backend. r=standard8
Differential Revision: https://phabricator.services.mozilla.com/D7083
2018-10-06 10:32:13 +01:00
Mark Banner
7e98ad6bc5 Bug 1476228 - Enable comma-dangle ESLint rule for Places directories. r=mikedeboer
MozReview-Commit-ID: K8HcZfyF4Sz

Differential Revision: https://phabricator.services.mozilla.com/D3796
2018-08-22 15:44:43 +00:00
Brian Grinstead
1c86f46ecd 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
2018-08-08 15:22:53 -07:00
Marco Bonardo
888d71022d 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
2018-07-27 15:16:57 +00:00
Brian Grinstead
b0a65148db Bug 1445764 - Move Places imports from XUL to JS for the Places documents;r=standard8
MozReview-Commit-ID: 1LKRgTlaupu
2018-07-03 14:26:49 -07: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
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
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
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
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
Marco Bonardo
2e80ffbe53 Bug 1453545 - Properties option disabled when right-clicking a bookmarks folder. r=standard8
MozReview-Commit-ID: 30JmVhO7sh9
2018-04-19 00:16:48 +02:00
Marco Bonardo
0e37435fdd Bug 1452621 - Cleanup some tag queries related code. r=standard8
MozReview-Commit-ID: L8L3i5W1CHe
2018-04-09 15:38:45 +02:00
Marco Bonardo
3382b7442d Bug 1293445 - 5 - Rename RESULTS_AS_TAG_QUERY. r=standard8
MozReview-Commit-ID: 7HwPKkGvAvv
2018-04-04 16:14:20 +02:00
Marco Bonardo
b2e8b679a0 Bug 1293445 - 4 - Remove RESULTS_AS_TAG_CONTENTS. r=standard8
MozReview-Commit-ID: rybSCGrfnf
2018-04-03 18:32:00 +02:00
Mark Banner
9055c0fac7 Bug 1450223 - Remove unnecessary synchronous annotation lookups from the places context menu. r=mak
MozReview-Commit-ID: Ck2eaeVAjXs
2018-03-29 15:49:39 +01:00
Marco Bonardo
36ec58e083 Bug 1421664 - 3 - Fix the UI and tests. r=standard8
test_419731.js can be removed since it is already covered by browser_bookmarkProperties_editTagContainer.js

MozReview-Commit-ID: K0LFuTptWyW
2018-03-22 14:13:07 +01:00
Marco Bonardo
39cfa2a663 Bug 1446951 - 2 - Change nsINavHistoryQueryResultNode::GetQueries to a query attribute. r=standard8
MozReview-Commit-ID: 77xEeAE13xW
2018-03-16 16:20:22 +01:00
Mark Banner
a8659a2b7c Bug 1425555 - Avoid a database fetch after showing the new bookmark dialog. r=mak
MozReview-Commit-ID: 1pjynkFFSOd
2018-03-20 23:52:58 +00:00
Brendan Dahl
8a8bb26748 Bug 1442302 - Remove placesOverlay.xul. r=Gijs,mak,standard8
The overlay was responsible for script loading and defining three elements
(bhTooltip, placesCommands, placesContext). In the majority of places where
the overlay was included only part of it was used. To remove the overlay, the
elements were each split into include files and moved into where they
were used. For the scripts, a JS file was added that defines all the lazy
modules and then this script, globalOverlay.js and utilityOverlay.js were
inlined to everywhere that would have included them from the overlay.

MozReview-Commit-ID: 8T5D46oYWLn
2018-03-12 10:43:35 -07:00
manikishan
02874947cf Bug 1431050 - Replace NS_ASSERT with conditional exceptions/console.assert and remove the debug.js module. r=mak
console.assert keeps the same semantics as NS_ASSERT in that it doesn't throw an exception,
but a lot of the places code was using it in a way that would be better served by throwing
an exception when the condition is false.

MozReview-Commit-ID: DEF5HSfYO36
2018-02-03 11:32:25 +05:30
Michael Kaply
97e2f5fdd4 Bug 1432355 - Add a policy to disable private browsing. r=Gijs
MozReview-Commit-ID: AprbL6usEv5
2018-03-01 10:20:38 -06:00
Marco Bonardo
c03dbb59bd Bug 1439315 - 6 - Move some utils into PlacesController or PlacesUIUtils. r=standard8
MozReview-Commit-ID: D7J6hY7Akro
2018-02-28 13:51:28 +01:00
Marco Bonardo
3e6ba6ed6d Bug 1439315 - 5 - defineLazyScriptGetter controller.js. r=standard8
MozReview-Commit-ID: 4Kq3XvJNNGB
2018-02-28 12:31:37 +01:00
Marco Bonardo
9755291ead Bug 1439315 - 3 - Don't use NetUtil.newURI. r=standard8
MozReview-Commit-ID: 58jYURt7EWF
2018-02-28 12:28:54 +01:00
Marco Bonardo
e0791e9a76 Bug 1439315 - 2 - Move command utils to PlacesUIUtils. r=standard8
MozReview-Commit-ID: 6hN9LxVQunX
2018-02-28 12:27:21 +01:00
Marco Bonardo
47da5f79b5 Bug 1439315 - 1 - rename InsertionPoint to PlacesInsertionPoint. r=standard8
MozReview-Commit-ID: 1NfkueEUPXC
2018-02-28 12:10:12 +01:00
Florian Quèze
f6add2cafd Bug 1433175 - scripted patch to replace Components.classes[, Components.interfaces.nsI, Components.utils. and Components.results. with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:33 +01:00
Mark Banner
8b297fe619 Bug 1434261 - Disable user actions on the places trees not in the library window to avoid accidential/unintentional actions. r=mak
MozReview-Commit-ID: ILo09hwWRsZ
2018-02-21 17:51:23 +00:00
Mark Banner
1135f98089 Bug 1437310 - Fix moving bookmarks across special folders. r=mak
MozReview-Commit-ID: dj6dOwDxOT
2018-02-12 21:51:08 +00:00
Francesco Lodolo (:flod)
a26d7198c4 Bug 1437583 - Split plural forms for Delete/Add bookmarks in separate strings r=standard8
Since the number of tabs is not actually displayed, having two separate strings from 1 vs many is preferable.

MozReview-Commit-ID: y1dgvsCxmC
2018-02-12 19:04:59 +01:00
Jared Wein
db0a992247 Bug 1436575 - Autofix errors from no-compare-against-boolean-literal. r=standard8
MozReview-Commit-ID: 66sXxnOWDgw
2018-02-08 12:57:31 -05:00
Mark Banner
5e632ca5e3 Bug 1437651 - Remove unused simulated-places-node references. r=mak
MozReview-Commit-ID: 6JzFXRykF2W
2018-02-12 20:33:07 +00:00
Mark Banner
00472aedd4 Bug 1423896 - Make the All Bookmarks folder for the left pane of the Library a virtual query. r=mak
MozReview-Commit-ID: HzJ9y1fiEz1
2017-12-07 14:15:39 +00:00