Search completed in 0.83 seconds.
nsINavBookmarksService
toolkit/components/places/nsinav
bookmarksservice.idlscriptable the
bookmarksservice interface provides methods for managing bookmarked history items.
...
bookmarks consist of a set of user-customizable folders.
... 1.0 67 introduced gecko 1.8 inherits from: nsisupports last changed in gecko 14.0 (firefox 14.0 / thunderbird 14.0 / seamonkey 2.11) implemented by: @mozilla.org/browser/nav-
bookmarks-service;1.
...And 23 more matches
places/bookmarks - Archive of obsolete content
create, modify, and retrieve
bookmarks.
... usage this module exports: three constructors: bookmark, group, and separator, corresponding to the types of objects, referred to as bookmark items, in the
bookmarks database in firefox two additional functions, save() to create, update, and remove bookmark items, and search() to retrieve the bookmark items that match a particular set of criteria.
... examples creating a new bookmark let { bookmark, save } = require("sdk/places/
bookmarks"); // create a new bookmark instance, unsaved let bookmark = bookmark({ title: "mozilla", url: "http://mozilla.org" }); // attempt to save the bookmark instance to the
bookmarks database // and store the emitter let emitter = save(bookmark); // listen for events emitter.on("data", function (saved, inputitem) { // on a "data" event, an item has been updated, passing in the // latest snapsho...
...And 21 more matches
Bookmarks - Archive of obsolete content
firefox 2 and earlier creating a new bookmark var win = mybrowser.contentwindow; // get the
bookmarks service const bmsvc = components.classes["@mozilla.org/browser/
bookmarks-service;1"] .getservice(components.interfaces.nsi
bookmarksservice); // create the bookmark bmsvc.createbookmarkincontainer(win.document.title, // bookmark name win.location.href.tostring(), // uri of the bookmark null, // shortcut win.document.title, // description win.document.characterset, // charset null, // postdata
bookmarksservice.get
bookmarkstoolbarfolder(), // bookmark folder ...
... 0); // index in the folder firefox 3 firefox 3 provides a reworked set of api for working with history and
bookmarks.
... the places
bookmarks service, provided by the nsinav
bookmarksservice interface, provides methods for creating, deleting, and manipulating
bookmarks and bookmark folders.
...And 18 more matches
Manipulating bookmarks using Places
the places
bookmarks service, provided by the nsinav
bookmarksservice interface, provides methods for creating, deleting, and manipulating
bookmarks and bookmark folders.
... this article offers examples for how to perform common bookmark management tasks using the
bookmarks service.
... initiating the
bookmarks service as is the case with nearly all interfaces, before you can use the
bookmarks service, you need to get access to it: var bmsvc = components.classes["@mozilla.org/browser/nav-
bookmarks-service;1"] .getservice(components.interfaces.nsinav
bookmarksservice); creating a bookmark folder creating a new bookmark folder is done using the nsinav
bookmarksservice.createfolder() method.
...And 16 more matches
Retrieving part of the bookmarks tree
this document provides a quick start for those wishing to quickly retrieve a portion of the
bookmarks tree.
...
bookmarks are retrieved using the places query system.
... for more basic
bookmarks examples, see manipulating
bookmarks using places.
...And 6 more matches
Places Developer Guide
this document is for extension and application developers who want to use the
bookmarks and history apis in firefox 3.
...it encompasses history,
bookmarks, tags, favicons, and annotations.
...
bookmarks the toolkit
bookmarks service is nsinav
bookmarksservice: var
bookmarks = cc["@mozilla.org/browser/nav-
bookmarks-service;1"] .getservice(ci.nsinav
bookmarksservice); this service provides methods for adding, editing and deleting items in the
bookmarks collection.
...And 45 more matches
Templates - Archive of obsolete content
numerous datasources are provided with mozilla such as
bookmarks, history and mail messages.
...mozilla provides a
bookmarks datasource so it can be used to get the data.
... this example will only get the top-level
bookmarks (or bookmark folders) as we're going to create buttons.
...And 18 more matches
Observer Notifications
if your component requires access to the user profile, or any services which require access to the profile (preferences,
bookmarks, and so on) then a common pattern is to register with the nsicategorymanager for the app-startup topic which can be done in the component's registration code, and then in that notification register with the observer service for the profile-after-change notification.
...you will not be able to access user preferences,
bookmarks, or anything that uses the profile folder until this event occurs.
... places this topic indicates when actions related to places (the history and
bookmarks database) occur.
...And 16 more matches
The Implementation of the Application Object Model - Archive of obsolete content
the data itself can be fed in from any number of different sources (e.g., from a local file system, from your
bookmarks file, or from some remote downloadable rdf file), and can then be combined into a single graph.
...rdf can suck up data from different places (like your
bookmarks and history or another web site), and it can combine them.
...for example, the traditional
bookmarks tree view could contain anything from mail messages to local files to maps of other sites.
...And 12 more matches
nsIPlacesImportExportService
implemented by: @mozilla.org/import-export-service;1 as a service: var placesimportexportservice = components.classes["@mozilla.org/import-export-service;1"] .getservice(components.interfaces.nsiplacesimportexportservice); method overview void backup
bookmarksfile(); void exporthtmltofile(in nsilocalfile afile); void importhtmlfromfile(in nsilocalfile afile, in boolean aisinitialimport); obsolete since gecko 14.0 void importhtmlfromfiletofolder(in nsilocalfile afile, in print64 afolder, in boolean aisinitialimport); obsolete since gecko 14.0 void importhtmlfromuri(in nsiuri auri, in boolean aisinitialimport); obsole...
...te since gecko 14.0 methods backup
bookmarksfile() backs up the
bookmarks.html file.
... void backup
bookmarksfile(); parameters none.
...And 12 more matches
Places utilities for JavaScript
load_in_sidebar_anno - this annotation is associated with
bookmarks or items that should load in the sidebar automatically.
... void createmenuitemfornode(nsinavhistoryresultnode anode, acontainersmap); constants mimetypes type_x_moz_place_container type_x_moz_place_separator: "text/x-moz-place-separator", type_x_moz_place: "text/x-moz-place", type_x_moz_url: "text/x-moz-url", type_html: "text/html", type_unicode: "text/unicode", services there's easy access to some of the common services used in
bookmarks or history navigation here.
... for instance, normally in order to get access to the
bookmarks service, you have to run something like: components.classes["@mozilla.org/browser/nav-
bookmarks-service;1"] .getservice(components.interfaces.nsinav
bookmarksservice); with places utils all you need to write is: placesutils.
bookmarks this should save on the number of references to the service that are needed, and can help clean up interfaces that are already fairly cluttered.
...And 10 more matches
Creating Event Targets - Archive of obsolete content
it will emit events when the user adds and visits
bookmarks, enabling users of the module to listen for these events using the sdk's standard event api.
... using the places api first, let's write some code using places api that logs the uris of
bookmarks the user adds.
... create a new directory called "
bookmarks", navigate to it, and run jpm init, accepting all the defaults.
...And 9 more matches
TPS Tests
the extension will read the test file and perform a series of actions specified therein, such as populating a set of
bookmarks, syncing to the sync server, making bookmark modifications, etc.
... asset lists a test file will contain one or more asset lists, which are lists of
bookmarks, passwords, or other types of browser data that are relevant to sync.
...
bookmarks passwords history tabs form data prefs test phases the phase blocks are where the action happens!
...And 9 more matches
Displaying Places information using views
the built-in views if you need to show the contents of
bookmarks or history in your extension or application, you may want to use the built-in places views, which are generic and will save you a lot of time writing basic functionality so that you can focus on building your extension or application.
... the following example uses the built-in tree view to display
bookmarks whose titles or urls contain "mozilla".
... <tree type="places" place="place:terms=mozilla&onlybookmarked=1&querytype=1"> <treecols> <treecol id="title" label="my
bookmarks" flex="1" primary="true" /> </treecols> <treechildren /> </tree> the next example does the same as the last but uses javascript to set the tree's place attribute: var histserv = cc["@mozilla.org/browser/nav-history-service;1"].
...And 7 more matches
Index - Archive of obsolete content
96 places/
bookmarks create, modify, and retrieve
bookmarks.
... 168 using xpcom without chrome
bookmarks, chrome, sdk, xpcom no summary!
... 174
bookmarks code snippets, developing mozilla, extensions, places no summary!
...And 6 more matches
Bookmark Keywords - Archive of obsolete content
practically every web surfer has
bookmarks, of course, and power surfers usually have hundreds stuffed into folders within folders.
... in addition to being handy pointers to useful resources,
bookmarks in mozilla can be used to make the address bar itself a power tool.
... searches, lookups, package tracking, and even word definitions can all be retrieved from user-customized
bookmarks.
...And 6 more matches
Theme changes in Firefox 2 - Archive of obsolete content
file description of change browser/
bookmarks/addbookmark.css updated to include microsummary-related css changes.
... browser/
bookmarks/
bookmarksproperties.css new file; includes microsummary-related css.
... changes in browser
bookmarks/addbookmark.css the add
bookmarks.css file should have the following lines added to the top: @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); @namespace html url("http://www.w3.org/1999/xhtml"); some microsummary-related css also needs to be added, to provide formatting for the microsummary picker.
...And 6 more matches
The Places database
places is designed to be a complete replacement for the firefox
bookmarks and history systems using storage.
...
bookmarks tables moz_
bookmarks: this table contains
bookmarks, folders, separators and tags, and defines the hierarchy.
... the hierarchy is defined via the parent column, which points to the moz_
bookmarks record which is the parent.
...And 6 more matches
nsINavBookmarkObserver
toolkit/components/places/nsinav
bookmarksservice.idlscriptable this interface is an observer for bookmark changes.
... aitemtype the type of the item that is about to be removed; this is one of the nsinav
bookmarksservice.type constants.
...this should be one of the nsinav
bookmarksservice.type constants.
...And 6 more matches
Introduction to RDF - Archive of obsolete content
resource description framework we can use the tree elements to display a set of data, such as
bookmarks or mail messages.
...it would make it very difficult to modify the
bookmarks if they were directly in the xul file.
...rdf (resource description framework) is a format that can be used to store resources such as
bookmarks or mail.
...And 5 more matches
RDF in Mozilla FAQ - Archive of obsolete content
some examples of datasources that exist today are "browser
bookmarks", "browser global history", "imap mail accounts", "nntp news servers", and "rdf/xml files".
...statements about the same rdf resource can then be intermingled: for example, the "last visit date" of a particular website comes from the "browser global history" datasource, and the "shortcut keyword" that you can type to reach that website comes from the "browser
bookmarks" datasource.
...for example, the
bookmarks service.
...And 5 more matches
Querying Places
e attribute autf8string sortingannotation attribute unsigned short resulttype attribute boolean excludeitems attribute boolean excludequeries attribute boolean excludereadonlyfolders attribute boolean expandqueries attribute boolean includehidden attribute boolean showsessions attribute unsigned long maxresults const unsigned short query_type_history = 0 const unsigned short query_type_
bookmarks = 1 const unsigned short query_type_unified = 2 (not yet implemented -- see bug 378798) attribute unsigned short querytype complex queries you can pass one or more nsinavhistoryquery objects to executequeries().
... bookmark queries there is a quick-start for doing simple bookmark queries in retrieving part of the
bookmarks tree.
... for sorting, you will generally want to use sort_by_none (the default) since this will return items in their "natural" order as specified by the user in the
bookmarks manager.
...And 5 more matches
TPS Bookmark Lists
for example: var
bookmarks_after_second_modify = { "menu": [ { uri: "http://www.getfirefox.com/", title: "get firefox" } ], "menu/foldera": [ { uri: "http://mozilla.com", title: "mozilla" }, ] }; this describes two
bookmarks, one in the "menu" folder, and the other in the "folder1" subfolder of "menu".
... all bookmark paths must begin with one of the following: "menu": the normal
bookmarks menu "toolbar": the
bookmarks toolbar "tags": the tags folder "unfiled": the unfiled
bookmarks folder "places": the places root folder ("menu", "toolbar", and "unfiled" are all children of this) sub-folders are preceded with forward slashes, so "menu/folder1" denotes that "folder1" is a sub-folder of "menu".
... title of the existing bookmark item, in the current folder, where this separator should be moved to (i.e., this separator would be inserted into the bookmark list at the position of the named bookmark, causing that bookmark to be positioned below this separator) example: { separator: true } bookmark lists and phase actions following are the functions you can use in phase actions related to
bookmarks:
bookmarks.add - the bookmark items in the list are added to the end of their parent folder in the specified order.
...And 4 more matches
History Service Design
places is designed to be a complete replacement for the firefox
bookmarks and history systems using storage.
... a locationbar intelligent algorithm (aka: the awesomebar) allows searchs through
bookmarks, history, keywords (and much more) detaching the user from the old long searches through tree views.
... storing pages and visits pages (intended as uris) are stored into a table shared by both history and
bookmarks, every url is unique in this table and is associated with a place id, commonly used as the foreign key on other tables.
...And 4 more matches
Repackaging Firefox - Archive of obsolete content
the distro extension all the changes you will want to make (for example, changing the default homepage or adding default
bookmarks) can be encapsulated into a firefox extension.
...this xpi has the following contents chrome.manifest components/partner
bookmarks.js defaults/preferences/partner.js install.rdf locale/ar/partner.properties locale/cs/partner.properties locale/da/partner.properties locale/de/partner.properties locale/el/partner.properties locale/en-gb/partner.properties locale/partner.properties locale/es-ar/partner.properties locale/es-es/partner.properties locale/fi/partner.properties locale/fr/partner.properties locale/he/partner.propertie...
...jp-mac/partner.properties locale/ko/partner.properties locale/nb-no/partner.properties locale/nl/partner.properties locale/pl/partner.properties locale/pt-br/partner.properties locale/pt-pt/partner.properties locale/ru/partner.properties locale/sk/partner.properties locale/sv-se/partner.properties locale/tr/partner.properties locale/zh-cn/partner.properties locale/zh-tw/partner.properties partner-
bookmarks.xml one by one, the files listed above are: chrome.manifest contains a specialized listing of the contents of the xpi.
...And 3 more matches
nsINavHistoryQueryOptions
excludeitemifparenthasannotation obsolete since gecko 13.0 autf8string this option excludes items from a
bookmarks query if the parent of the item has this annotation.
... excludeitems boolean this option excludes all uris and separators from a
bookmarks query.
... note that this has no effect on folder links, which are place: uris returned by nsinav
bookmarkservice's getfolderuri method.
...And 3 more matches
Code snippets - Archive of obsolete content
mport("resource://services-sync/resource.js"); function deletepath(path) { let resource = new resource(weave.service.storageurl + path); resource.setheader("x-confirm-delete", "1"); return resource.delete(); } // delete meta/global: deletepath("meta/global"); // delete keys: deletepath("crypto/keys"); // delete server: deletepath(""); corrupt a single engine on the server let engine = "
bookmarks"; components.utils.import("resource://services-sync/main.js"); components.utils.import("resource://services-sync/resource.js"); components.utils.import("resource://services-sync/util.js"); let r = new resource(weave.service.storageurl + "meta/global"); let g = r.get(); let envelope = json.parse(g); let payload = json.parse(envelope.payload); payload.engines[engine].syncid = weave.utils.makeguid(...
...components.utils.import("resource://services-sync/engines.js"); components.utils.import("resource://services-sync/engines/
bookmarks.js"); let bme = weave.service.enginemanager.get("
bookmarks"); let ids = object.keys(bme._store.getallids()); for each (let id in ids) { let record = bme._store.createrecord(id, "
bookmarks"); let len = record.tostring().length; if (len > 1000) { console.log("id: " + id + ", len = " + len + ", " + record.title); } } print an alphabetically sorted list of members of a collection compon...
...ents.utils.import("resource://services-sync/main.js"); components.utils.import("resource://services-sync/resource.js"); let ids = json.parse(new resource(weave.service.storageurl + "
bookmarks").get()); for each (let id in ids.sort()) { console.log(" " + id); } get a count of the number of members of a collection on the server let collection = "passwords"; components.utils.import("resource://services-sync/main.js"); components.utils.import("resource://services-sync/resource.js"); json.parse(new resource(weave.service.storageurl + collection).get()).length; dump the cleartext of each record in a collection to the console.
...And 2 more matches
JavaScript Client API - Archive of obsolete content
there is an engine for
bookmarks, tabs, history, preferences, etc.
... creating a custom engine the sync client ships with a number of engines out of the box (history,
bookmarks, etc).
...have a look at one of the following files: services/sync/modules/engines/
bookmarks.js services/sync/modules/engines/history.js setting up a js module the code for your custom sync engine should live in a js module.
...And 2 more matches
XPCOM Interfaces - Archive of obsolete content
one such service provided with mozilla is a
bookmarks service.
... it allows you to add
bookmarks to the user's current bookmark list.
... an example is shown below: var bmarks = components.classes["@mozilla.org/browser/
bookmarks-service;1"].getservice(); bmarks.queryinterface(components.interfaces.nsi
bookmarksservice); bmarks.addbookmarkimmediately("http://www.mozilla.org","mozilla",0,null); first, the component "@mozilla.org/browser/
bookmarks-service;1" is retrieved and its service is placed in the variable bmarks.
...And 2 more matches
nsIMicrosummaryService
toolkit/components/places/public/nsimicrosummaryservice.idlscriptable this interface provides methods for managing installed microsummaries, and the
bookmarks they apply to.
...org/microsummary/service;1 as a service: var microsummaryservice = components.classes["@mozilla.org/microsummary/service;1"] .getservice(components.interfaces.nsimicrosummaryservice); method overview void addgenerator(in nsiuri generatoruri); nsimicrosummary createmicrosummary(in nsiuri pageuri, in nsiuri generatoruri); nsisimpleenumerator get
bookmarks(); nsimicrosummarygenerator getgenerator(in nsiuri generatoruri); nsimicrosummaryset getmicrosummaries(in nsiuri pageuri, in long long bookmarkid); nsimicrosummary getmicrosummary(in long long bookmarkid); boolean hasmicrosummary(in long long bookmarkid); nsimicrosummarygenerator installgenerator(in nsidomdocument xmldefinition); boolean ismi...
...get
bookmarks() get the set of
bookmarks with microsummaries.
...And 2 more matches
RDF Datasources - Archive of obsolete content
they work very similarly to the
bookmarks, although the fields will be different in each case.
...
bookmarks (rdf:
bookmarks) the
bookmarks are generated from the user's bookmark list.
...st visited http://home.netscape.com/web-rdf#lastvisitdate date of last visit name http://home.netscape.com/nc-rdf#name bookmark name shortcut url http://home.netscape.com/nc-rdf#shortcuturl custom keywords field url http://home.netscape.com/nc-rdf#url the url to link to possible
bookmarks roots nc:
bookmarksroot the top level of the
bookmarks hierarchy nc:iefavoritesroot the bookmark folder that corresponds to the user's ie favorites.
...<tree datasources="rdf:
bookmarks rdf:history animals.rdf" ref="nc:
bookmarksroot"> this example reads the resources from the
bookmarks, history and the animals.rdf file.
XUL Structure - Archive of obsolete content
by accessing a file using a chrome url, the files receive elevated privileges to access local files, access preferences and
bookmarks and perform other privileged operations.
...this means that there are certain things that content of web pages cannot do, such as read the user's
bookmarks.
...if you extract the files in browser.jar, you will find that it contains a directory structure much like the following: content browser browser.xul browser.js -- other browser xul and js files goes here --
bookmarks --
bookmarks files go here -- preferences -- preferences files go here -- .
... several subdirectories, such as
bookmarks and preferences, describe additional sections of the browser component.
RDF in Fifty Words or Less - Archive of obsolete content
let's look at an example:
bookmarks.
... right now, most web browsers let you organize your
bookmarks hierarchically intofolders.
...and fundamentally, there's no reason that you shouldn't be able to treat these as "
bookmarks" as well, grouping them together into folders as you please, or maybe even creating "smart" folders that, when you open them, dynamically generate their contents by running common search that you define.
...received-by> <sm:subject>we won our ultimate game</sm:subject> <sm:body> http://www.mozilla.org/smart-mail/get-body.cgi?id=4025294 </sm:body> </sm:message> </rdf:description> </rdf:rdf> upon receipt of the above monstrosity, the rdf engine folds the rdf into the graph at the appropriate place, and the tree control that actually implements the ui to the
bookmarks is notified that it should begin drawing some icons for the latest message about yam soup from aunt helga.
What’s in the head? Metadata in HTML - Learn web development
for example, if you try bookmarking the page (
bookmarks > bookmark this page or the star icon in the url bar in firefox), you will see the <title> contents filled in as the suggested bookmark name.
...the most commonly used of these is the favicon (short for "favorites icon", referring to its use in the "favorites" or "
bookmarks" lists in browsers).
...you may see (depending on the browser) favicons displayed in the browser tab containing each open page, and next to bookmarked pages in the
bookmarks panel.
...rectory as the site's index page, saved in .ico format (most browsers will support favicons in more common formats like .gif or .png, but using the ico format will ensure it works as far back as internet explorer 6.) adding the following line into your html's <head> block to reference it: <link rel="shortcut icon" href="favicon.ico" type="image/x-icon"> here is an example of a favicon in a
bookmarks panel: there are lots of other icon types to consider these days as well.
Places
places is the
bookmarks and history management system introduced in firefox 3.
... manipulating
bookmarks using places examples for how to work with
bookmarks using the places api.
... using the places keywords api how to manage places keywords querying places how to query the
bookmarks and history system with specific parameters.
... retrieving part of the
bookmarks tree how to fetch a section of the
bookmarks tree using queries.
Using XPCOM without chrome - Archive of obsolete content
examples
bookmarks observer normally, a bookmark observer would require chrome components and xpcomutils as described in the following links: (observing changes to
bookmarks and tags) , (creating event targets).
...we can then create an object from it and add it as an observer to the
bookmarks service.
...notice the small l var bmlistener = bmlistener(); placesutils.
bookmarks.addobserver(bmlistener, false); ...
Sidebar - Archive of obsolete content
// toggle the
bookmarks sidebar (close it if it's open or // open it if it's currently closed) sidebarui.toggle("view
bookmarkssidebar"); // show the history sidebar, whether it's hidden or already showing sidebarui.show("viewhistorysidebar"); // hide the sidebar, if one is showing sidebarui.hide(); avoid opening the sidebar on startup.
...
bookmarks with "load this bookmark in sidebar" checked in the properties open in the "viewwebpanelssidebar".
...ow = document.getelementbyid("sidebar").contentwindow; // verify that our sidebar is open at this moment: if (sidebarwindow.location.href == "chrome://yourextension/content/whatever.xul") { // call "yournotificationfunction" in the sidebar's context: sidebarwindow.yournotificationfunction(anyarguments); } testing which sidebar is open the sidebar content may contain different panels (
bookmarks, history, webpanel, etc.) and sometimes one wants to only act on the sidebar when it contains a specific panel.
Adding Toolbars and Toolbar Buttons - Archive of obsolete content
finally, the insertbefore attribute places our toolbar above the
bookmarks toolbar.
... this is a matter of personal preference, but the mac os theme seems to be designed so that the
bookmarks toolbar is always the last one (it has a lighter color than the rest).
... it also makes sense from a usability perspective, since
bookmarks should be very easy to access for the user.
Adding sidebars - Archive of obsolete content
you're probably familiar with the
bookmarks and history sidebars.
... trees the
bookmarks and history sidebars in firefox use the « xul reference « element to show their content.
...looking at the
bookmarks and history sidebars should make it clear that trees are quite customizable with css.
Add-ons - Archive of obsolete content
bookmarks.export() exports
bookmarks to an html bookmark file.
...
bookmarks.import() imports
bookmarks from an html bookmark file.
... bootstrapped extensions browser.
bookmarks.export( function() {...} // optional function ) code snippets … creating custom firefox extensions with the mozilla build system there is a wealth of material on creating extensions for firefox.
Index of archived content - Archive of obsolete content
anel event/core event/target frame/hidden-frame frame/utils fs/path io/byte-streams io/file io/text-streams lang/functional lang/type loader/cuddlefish loader/sandbox net/url net/xhr places/
bookmarks places/favicon places/history platform/xpcom preferences/event-target preferences/service remote/child remote/parent stylesheet/style stylesheet/utils system/child_process system/environment system/events system/runti...
...age hosted by a tab open a web page troubleshooting unit testing using xpcom without chrome using third-party modules (jpm) bootstrapped extensions code snippets alerts and notifications autocomplete
bookmarks boxes canvas code snippets cookies customizing the download progress bar delayed execution dialogs and prompts downloading files drag & drop embedding svg examples and demos from articles file i/o finding window handles forms related code snip...
...t signing an xpi signing an extension supporting search suggestions in search plugins tabbed browser techniques promises updating addons broken by private browsing changes using dependent libraries in extension components using the stylesheet service
bookmarks.export()
bookmarks.import() adding preferences to an extension an interview with douglas bowman of wired news archived mozilla and build documentation activex control for hosting netscape plug-ins in ie archived spidermonkey docs file object ...
Special Condition Tests - Archive of obsolete content
for example, the
bookmarks toolbar in a web browser might display buttons at the first level, but menus and submenus for content below that.
...for the
bookmarks toolbar, the outer content is inserted into an <hbox>, but at lower levels, the content will be inserted into a <menu> in case you aren't clear, the tag that must match for the outer iteration is the root element, the one with the datasources attribute on it.
...considering the case of
bookmarks, the first two rules would match folders, while the third rule would match
bookmarks.
Archived Mozilla and build documentation - Archive of obsolete content
bookmark keywords practically every web surfer has
bookmarks, of course, and power surfers usually have hundreds stuffed into folders within folders.
... in addition to being handy pointers to useful resources,
bookmarks in mozilla can be used to make the address bar itself a power tool.
... searches, lookups, package tracking, and even word definitions can all be retrieved from user-customized
bookmarks.
Accessibility Features in Firefox
both history and
bookmarks can be searched with a "quick search" field that quickly narrows the list down via a substring search.
...
bookmarks can have a keyword assigned to them which can be typed into the address bar to bring up the bookmark.
...finally,
bookmarks.html contains all your
bookmarks, and is easy to move around from computer to computer.
Multiple Firefox profiles
having different profiles would help separate work and personal life, or allow each family member to have his or her own set of
bookmarks, settings, and add-ons.
...creating new profiles for testing can keep you from losing your preferences,
bookmarks, and history.
... delete files removes the profile and its files, including the profile
bookmarks, settings, passwords, etc.
Localizing XLIFF files for iOS
here is an example of such a <trans-unit> <trans-unit id="add to
bookmarks"> <source>add to
bookmarks</source> </trans-unit> your translations must be contained inside <target> child tags.
... <trans-unit id="add to
bookmarks"> <source>add to
bookmarks</source> <target>your_translation_here</target> </trans-unit> provide translations of the strings in the <source> tag sets by placing their translations in the <target> tag sets beneath them.
... <trans-unit id="add to
bookmarks"> <source>add to
bookmarks</source> <target>agregar a marcadores</target> <note>no comment provided by engineer.</note> </trans-unit> save your translations along the way.
Using the Places livemark service
var bmsvc = components.classes["@mozilla.org/browser/nav-
bookmarks-service;1"].
... getservice(components.interfaces.nsinav
bookmarksservice); var root = bmsvc.
bookmarksmenufolder; // item id of the
bookmarks menu var newlvmkid = livemarkservice.createlivemarkfolderonly(bmsvc, root, "livemark name", uri("http://example.com/"), uri("http://example.com/rss.xml"), -1); the parameters here are the same as for nsilivemarkservice.createlivemark(), except for the insertion of a new parameter at the beginning, which is the nsinav
bookmarksservice to use when creating the livemark.
...users can modify the default expiration time via the <tt>browser.
bookmarks.livemark_refresh_seconds</tt> preference, which indicates the expiration time in seconds.
Index
in fact, virtually all of the functionality that you associate with a browser - navigation, window management, managing cookies,
bookmarks, security, searching, rendering, and other features - is defined in xpcom components and accessed by means of those component interfaces.
... 789 nsinav
bookmarksservice developing mozilla, interfaces, interfaces:scriptable, places, xpcom, xpcom api reference, xpcom interface reference implemented by: @mozilla.org/browser/nav-
bookmarks-service;1.
... 827 nsiplacesimportexportservice
bookmarks, interfaces, interfaces:scriptable, places, xpcom interface reference in the past, this interface also offered methods for importing places data, but those methods are now part of the bookmarkhtmlutils.jsm javascript code module.
test/utils - Archive of obsolete content
let { before, after } = require('sdk/test/utils'); let { search } = require('sdk/places/
bookmarks'); exports.testcount
bookmarks = function (assert, done) { search().on('end', function (results) { assert.equal(results, 0, 'should be no
bookmarks'); done(); }); }; before(exports, function (name, assert) { removeall
bookmarks(); }); require('sdk/test').run(exports); both before and after may be asynchronous.
... to make them asynchronous, pass a third argument done, which is a function to call when you have finished: let { before, after } = require('sdk/test/utils'); let { search } = require('sdk/places/
bookmarks'); exports.testcount
bookmarks = function (assert, done) { search().on('end', function (results) { assert.equal(results, 0, 'should be no
bookmarks'); done(); }); }; before(exports, function (name, assert, done) { removeall
bookmarksasync(function () { done(); }); }); require('sdk/test').run(exports); globals functions before(exports, beforefn) runs beforefn before each test in the file.
Extensions support in SeaMonkey 2 - Archive of obsolete content
er/content/pageinfo/pageinfo.xul chrome://navigator/content/pageinfo/pageinfo.xul page info window chrome://browser/content/preferences/permissions.xul chrome://communicator/content/permis...onsmanager.xul permissions manager dialog urls added in 2.1 url in firefox url in seamonkey chrome://browser/content/
bookmarks/
bookmarkspanel.xul chrome://communicator/content/
bookmarks/bm-panel.xul chrome://browser/content/places/places.xul chrome://communicator/content/bookma...rksmanager.xul thunderbird uses mostly the same chrome urls for overlaying as seamonkey.
...u_filepopup menu_filepopup menu_filepopup file menu popup menu_editpopup menu_edit_popup menu_editpopup edit menu popup menu_viewpopup menu_view_popup menu_view_popup view menu popup - gopopup gopopup go menu popup placespopup - - history menu popup
bookmarksmenupopup menu_
bookmarkspopup menu_
bookmarkspopup
bookmarks menu popup menu_toolspopup taskpopup taskpopup tools menu popup - windowpopup windowpopup window menu popup menu_helppopup helppopup helppopup help menu popup urlbar icons to display a button with a menupopup in the ur...
Menu - Archive of obsolete content
jetpack.menu.
bookmarks the browser's
bookmarks menu.
...this is the context menu that appears when right-clicking on an element in firefox's interface, such as a bookmark on the
bookmarks toolbar.
Menus - Archive of obsolete content
editable text context-openlink opens a link in a new window links context-openlinkintab opens a link in a new tab links context-bookmarklink
bookmarks a link links context-savelink saves a link links context-sendlink sends a link in an email links context-copyemail copies an email address mailto: links context-copylink copies a link links context-viewimage views an image at full size images context-copyimage-contents copies an image to the clipboard ima...
...n an email images context-setdesktopbackground sets an image as the desktop background images context-blockimage blocks an image images context-back goes back a page context-forward goes forward a page context-reload reloads a page context-stop stops loading a page context-bookmarkpage
bookmarks a page context-savepage saves a page context-sendpagetodevice send page to device context-sendpage send page in an email context-viewbgimage views a background image context-undo undo editable text context-cut cuts to clipboard editable text context-copy copies to clipboard ...
Introduction - Archive of obsolete content
for instance, you might use the built-in
bookmarks datasource which holds the user's browser
bookmarks and use your own datasource to add custom data about those
bookmarks.
... <vbox datasources="rdf:
bookmarks http://www.xulplanet.com/ds/sample.rdf"> in addition, when using the rdf type for chrome xul (such as in extensions), the datasource rdf:local-store is always included in the composite.
Adding Style Sheets - Archive of obsolete content
an example is shown below: <?xml-stylesheet href="chrome://
bookmarks/skin/" type="text/css"?> this might be the first lines of a
bookmarks window.
... it imports the
bookmarks style sheet, which is
bookmarks.css.
Modifying the Default Skin - Archive of obsolete content
this means that the browser menu bar, the
bookmarks menu bar and even the find files menu bar will be red.
...for example, to add a red border around the menu commands in the
bookmarks manager window, add the following to
bookmarksmanager.css in the classic.jar or your favorite skin archive.
Theme changes in Firefox 4 - Archive of obsolete content
bookmarks toolbar #personaltoolbar small tab bar #tabstoolbar small add-on bar #addon-bar small custom toolbars some other value small or large depending on user preference.
...thus, it includes this rule in browser.css: #nav-bar { counter-reset: smallicons; } to use large icons for add-on buttons in the
bookmarks toolbar when the related user preference is set: #navigator-toolbox[iconsize="large"] > #personaltoolbar { counter-reset: largeicons; } to use large icons everywhere, including the menu bar, regardless of the user preference: #navigator-toolbox > toolbar, #addon-bar { counter-reset: largeicons; } creating a theme that works for firefox 4 on mac os x create a new directory (for example,...
CSUN Firefox Materials
both history and
bookmarks can be searched with a "quick search" field that quickly narrows the list down via a substring search.
...
bookmarks can have a keyword assigned to them which can be typed into the address bar to bring up the bookmark.
Productization guide
productization is the choice of ''default'' search engines, content and protocol handlers,
bookmarks, links to recommended sites on the in-product pages, etc.
...for example, putting one sample news feed on the
bookmarks toolbar in new profiles in firefox helps in learning about the live
bookmarks.
Profile Manager
ability to copy certain assets (e.g.,
bookmarks) between profiles.
... ability to reset a profile (return it to a default state excluding
bookmarks and passwords).
Aggregating the In-Memory Datasource
for example, while writing the
bookmarks datasource, i wanted to be able to trap assert() to enforce the
bookmarks datasource would only accept "
bookmarks related" assertions.
...similarly, i wanted to trap flush() so that i could write the
bookmarks.html file back to disk.
mozIAsyncFavicons
pages using this favicons that are visible in history or
bookmarks views will keep the old icon until they have been refreshed by other means.
...pages using this favicons that are visible in history or
bookmarks views will keep the old icon until they have been refreshed by other means.
nsIDynamicContainer
oncontainerremoving() this method is called when the given container is about to be deleted from the
bookmarks table, so that the service can do any necessary cleanup.
... see also places nsinavhistorycontainerresultnode nsinavhistoryqueryoptions nsinav
bookmarksservice.createdynamiccontainer() ...
nsILivemarkService
being able to manually control this allows activity such as
bookmarks import to occur without kicking off http traffic.
... see also places livemark service nsinav
bookmarksservice ...
nsINavHistoryService
markpageasfollowedbookmark() this method is just like markpageastyped (in nsibrowserhistory, also implemented by the history service), but for
bookmarks.
... aclosure opaque parameter passed to nsinav
bookmarksbatchcallback.
Obsolete features - Web APIs
it renders the
bookmarks toolbar in firefox.
... mozilla and firefox users can force new windows to always render the personal toolbar/
bookmarks toolbar by setting dom.disable_window_open_feature.personalbar to true in about:config or in their user.js file.
Redirections in HTTP - HTTP
redirects accomplish numerous goals: temporary redirects during site maintenance or downtime permanent redirects to preserve existing links/
bookmarks after changing the site's urls, progress pages when uploading a file, etc.
... moving to a new domain for example, your company was renamed, but you want existing links or
bookmarks to still find you under the new name.
addon-page - Archive of obsolete content
for pages like this, navigational elements such as the awesome bar, search bar, or
bookmarks toolbar are not usually relevant and distract from the content you are presenting.
ui/toolbar - Archive of obsolete content
toolbars get a close button at the right-hand side, and users can show or hide the toolbar using the firefox "view/toolbars" menu, alongside built-in toolbars like the
bookmarks toolbar.
cfx - Archive of obsolete content
you can specify an existing profile using the --profiledir option, and this gives you access to that profile's history,
bookmarks, and other add-ons.
Developing for Firefox Mobile - Archive of obsolete content
frame/hidden-frame supported frame/utils supported io/byte-streams supported io/file supported io/text-streams supported lang/functional supported lang/type supported loader/cuddlefish supported loader/sandbox supported net/url supported net/xhr supported places/
bookmarks not supported places/favicon not supported places/history not supported platform/xpcom supported preferences/service supported stylesheet/style supported stylesheet/utils supported system/environment supported system/events supported system/runtime supported system/unload sup...
Code snippets - Archive of obsolete content
downloading files code to download files, images, and to monitor download progress password manager code used to read and write passwords to/from the integrated password manager
bookmarks code used to read and write
bookmarks javascript debugger service code used to interact with the javascript debugger service svg general general information and utilities svg animation animate svg using javascript and smil svg interacting with script using javascript and dom events to create interactive svg embedding svg in html and xul using svg to enhance html or xul based markup...
MCD, Mission Control Desktop, AKA AutoConfig - Archive of obsolete content
3850 01-01-2010 00:00 defaults/profile/
bookmarks.html 869 01-01-2010 00:00 defaults/profile/chrome/usercontent-example.css 1165 01-01-2010 00:00 defaults/profile/chrome/userchrome-example.css 366 01-01-2010 00:00 defaults/profile/localstore.rdf 569 01-01-2010 00:00 defaults/profile/mimetypes.rdf 76 01-01-2010 00:00 defaults/preferences/firefox-l10n.js 91656 01-01-2010 00:00 defaults/preference...
List of commands - Archive of obsolete content
amonkey/sou...rceoverlay.xul http://lxr.mozilla.org/seamonkey/sou...extoverlay.xul http://lxr.mozilla.org/seamonkey/sou...lityoverlay.js http://lxr.mozilla.org/seamonkey/sou...oomoverlay.xul http://lxr.mozilla.org/seamonkey/sou...toroverlay.xul http://lxr.mozilla.org/seamonkey/sou...ark.properties http://lxr.mozilla.org/seamonkey/sou...kmarks-temp.js http://lxr.mozilla.org/seamonkey/sou.../
bookmarks.xml http://lxr.mozilla.org/seamonkey/sou...rksoverlay.xul http://lxr.mozilla.org/seamonkey/sou...okmarkstree.js list of commands (listed alphabetically) browser:addbookmark browser:addbookmarkas browser:addgroupmarkas browser:back browser:editpage browser:find browser:findagain browser:findprev browser:forward browser:home browser:managebookmark browser:open browser:openfile ...
MenuItems - Archive of obsolete content
<menuitem id="bookmark" class="menu-iconic" label="
bookmarks" image="
bookmarks.png"/> menu icon animation in order to animate the menu item icon on hover a -moz-image-region rule can be applied.
The Chrome URL - Archive of obsolete content
the following url will refer to the
bookmarks window, listed for firefox: chrome://browser/content/
bookmarks/
bookmarksmanager.xul you can enter chrome urls anywhere normal urls can be used.
2006-10-26 - Archive of obsolete content
discussions should be easier to import bookmark backups user asking for thoughts about having
bookmarks manager's import wizard import from backups in the bookmarkbackups folder.
2006-10-27 - Archive of obsolete content
discussions should be easier to import bookmark backups user asking for thoughts about having
bookmarks manager's import wizard import from backups in the bookmarkbackups folder.
Why use RSS - Archive of obsolete content
people are using it to syndicate all sorts of things: news articles, blogs,
bookmarks, internet radio shows, internet television shows, software updates, e-mails, mailing lists, music playlists, and more.
Mozilla’s UAAG evaluation report
(p3) p can turn on and off toolbars under show/hide can customize personal
bookmarks toolbar bug 15144 is for the ability to add/remove toolbar icons bug 47418 is for the ability to rearrange toolbars guideline 12.
Debugging on Mac OS X
having a profile for debugging purposes it is recommended to create a separate profile to debug with, whatever your task, so that you don't lose precious data like
bookmarks, saved passwords, etc.
Limitations of frame scripts
for example: nsinavhistoryservice nsinav
bookmarksservice observers in the content process as noted in observers in the chrome process, most observers should be registered in the chrome process and will not work in the content process.
Limitations of frame scripts
for example: nsinavhistoryservice nsinav
bookmarksservice observers in the content process as noted in observers in the chrome process, most observers should be registered in the chrome process and will not work in the content process.
CustomizableUI.jsm
area_
bookmarks string "personaltoolbar", a constant reference to the id of the
bookmarks toolbar.
JavaScript code modules
bookmarkhtmlutils.jsm provides utility functions for importing and exporting
bookmarks from the old-school "
bookmarks.html" style bookmark files.
L10n Checks
ab-cd browser chrome/browser browser.dtd +backforwardmenu.tooltip +fullzoomenlargecmd.commandkey3 +fullzoomreducecmd.commandkey2 +fullzoomresetcmd.commandkey2 +organize
bookmarks.label -showall
bookmarkscmd2.label migration/migration.dtd -importfromfile.accesskey -importfromfile.label +importfromhtmlfile.accesskey +importfromhtmlfile.label you can assume changed strings when you see entities removed and added with a similar name.
Translation phase
this is where you research and select the search plugins, content and protocol handlers,
bookmarks, and links to recommended sites on the in-product pages that your locale's users will find in their mozilla products.
What every Mozilla translator should know
search plugins, protocol handlers, rss/live
bookmarks), you will need to upload a patch with the suggested changes to bugzilla and get approval before pushing those changes to your hg repository.
Research and prep
productization is the process of determining a user's choice of default search engines, content and protocol handlers (rss readers, web mail and web calendar),
bookmarks, and links to recommended sites on the in-product pages as it relates to their locale.
Firefox Sync
firefox sync synchronizes state and configuration data used by the browser, such as
bookmarks, history, preferences,
bookmarks, and so forth among all your devices.
WebReplayRoadmap
bookmarks (not yet implemented) it would be nice to be able to bookmark points in the recording so that they show up on the timeline and can be seeked to later.
compare-locales
ab-cd browser chrome/browser browser.dtd +backforwardmenu.tooltip +fullzoomenlargecmd.commandkey3 +fullzoomreducecmd.commandkey2 +fullzoomresetcmd.commandkey2 +organize
bookmarks.label -showall
bookmarkscmd2.label migration/migration.dtd -importfromfile.accesskey -importfromfile.label +importfromhtmlfile.accesskey +importfromhtmlfile.label you can assume changed strings when you see entities removed and added with a similar name.
Mozilla Projects
firefox sync firefox sync synchronizes state and configuration data used by the browser, such as
bookmarks, history, preferences,
bookmarks, and so forth among all your devices.
Frecency algorithm
frecency is a score given to each unique uri in places, encompassing
bookmarks, history and tags.
places.sqlite Database Troubleshooting
how to (try to) recover from a corrupt places.sqlite sometimes after a firefox/aurora/nightly upgrade, history disappears, but
bookmarks are at their place.
extIApplication
supports: "load", "ready", "quit", "unload" the following interfaces are only available to firefox: attribute type description
bookmarks readonly attribute fuelibookmarkroots the root
bookmarks object for the application.
Using XPCOM Components
in fact, virtually all of the functionality that you associate with a browser - navigation, window management, managing cookies,
bookmarks, security, searching, rendering, and other features - is defined in xpcom components and accessed by means of those component interfaces.
mozIAsyncHistory
providing an invalid transitiontype (see nsinav
bookmarksservice.constants) for a mozivisitinfo.
mozIVisitInfo
one of the nsinav
bookmarksservice.constants on nsinavhistory.
nsIFaviconService
toolkit/components/places/public/nsifaviconservice.idlscriptable stores favicons for pages in
bookmarks and history.
nsINavHistoryBatchCallback
1.0 66 introduced gecko 1.9 inherits from: nsisupports last changed in gecko 1.9 (firefox 3) method overview void runbatched(in nsisupports auserdata); methods runbatched() void runbatched( in nsisupports auserdata ); parameters auserdata see also nsinavhistoryservice.runinbatchmode() nsinav
bookmarksservice.runinbatchmode() ...
nsINavHistoryObserver
atransitiontype the type of the item that is about to be removed; this is one of the nsinav
bookmarksservice.constants defined in the nsinav
bookmarksservice interface.
nsIXULTemplateQueryProcessor
for example, a query might have the following syntax: (?id, ?name, ?url) from
bookmarks where parentfolder = ?start this query might generate a result for each bookmark within a given folder.
XPCOM Interface Reference
rnsimsgdatabasensimsgfilternsimsgfiltercustomactionnsimsgfilterlistnsimsgfoldernsimsgheaderparsernsimsgidentitynsimsgincomingservernsimsgmessageservicensimsgprotocolinfonsimsgruleactionnsimsgsearchcustomtermnsimsgsearchnotifynsimsgsearchscopetermnsimsgsearchsessionnsimsgsearchtermnsimsgsearchvaluensimsgsendlaternsimsgthreadnsimsgwindownsimsgwindowcommandsnsimutablearraynsinavbookmarkobservernsinav
bookmarksservicensinavhistorybatchcallbacknsinavhistorycontainerresultnodensinavhistoryfullvisitresultnodensinavhistoryobservernsinavhistoryquerynsinavhistoryqueryoptionsnsinavhistoryqueryresultnodensinavhistoryresultnsinavhistoryresultnodensinavhistoryresultobservernsinavhistoryresulttreeviewernsinavhistoryresultviewobservernsinavhistoryresultviewernsinavhistoryservicensinavhistoryvisitresultnodensinetwor...
XPCOM Interface Reference by grouping
nsiappstartup xul nsixulappinfo nsixulruntime nsixultemplatebuilder nsixultemplatequeryprocessor nsixultemplateresult bookmark livemark nsilivemarkservice nsinavbookmarkobserver nsinav
bookmarksservice nsinavhistoryservice browser dom nsiwebbrowser nsiwebbrowserpersist cache nsicache nsicachedeviceinfo nsicacheentrydescriptor nsicacheentryinfo nsicachelistener nsicachemetadatavisitor nsicacheservice nsica...
XUL Overlays
the master skin file for the
bookmarks package, for example, is called
bookmarks.css, and is located in the skin/default subdirectory.
Mozilla technologies
starting with mozilla 1.9, it was phased out in favor of sqlite, a more widely-supported file format.placesplaces is the
bookmarks and history management system introduced in firefox 3.
Mozilla
productization guide productization is the choice of ''default'' search engines, content and protocol handlers,
bookmarks, links to recommended sites on the in-product pages, etc.
Drag Operations - Web APIs
const dt = event.datatransfer; dt.setdata("application/x.bookmark",
bookmarkstring); dt.setdata("text/uri-list", "https://www.mozilla.org"); dt.setdata("text/plain", "https://www.mozilla.org"); here, data is added in three different types.
Basic concepts - Web APIs
many browsers have settings that let users wipe all data stored for a given website, including cookies,
bookmarks, stored passwords, and indexeddb data.
Key Values - Web APIs
vk_browser_back (0xa6) appcommand_browser_backward gdk_key_back (0x1008ff26) qt::key_back (0x01000061) keycode_back (4) "browserfavorites" [1] opens the user's list of
bookmarks/favorites.
window.location - Web APIs
example #6: using
bookmarks without changing the hash property: <!doctype html> <html> <head> <meta charset="utf-8"/> <title>mdn example</title> <script> function shownode (onode) { document.documentelement.scrolltop = onode.offsettop; document.documentelement.scrollleft = onode.offsetleft; } function showbookmark (sbookmark, busehash) { if (arguments.length === 1 || busehash) { location.hash = sbookmark; return; } ...
Viewport concepts - CSS: Cascading Style Sheets
this is because the outerheight includes the browser chrome: measurements were taken on a browser with an address bar and
bookmarks bar totalling 100px in height, but no chrome on the left or right of the window.
Web app manifests
unlike regular web apps with simple homescreen links or
bookmarks, pwas can be downloaded in advance and can work offline, as well as use regular web apis.