Closed Bug 363636 Opened 18 years ago Closed 18 years ago

duplicate nsLivemarkService.getSiteURI in toolbar.xml

Categories

(Firefox :: Bookmarks & History, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 3 alpha1

People

(Reporter: sayrer, Assigned: sayrer)

References

Details

Attachments

(1 file, 4 obsolete files)

this will avoid startup component instantiation
Assignee: nobody → sayrer
Status: NEW → ASSIGNED
Attachment #248440 - Flags: review?(sspitzer)
Depends on: 358946
Comment on attachment 248440 [details] [diff] [review]
copy it over (also avoids URI creation, since we just want the spec)

r=sspitzer
Attachment #248440 - Flags: review?(sspitzer) → review+
Summary: duplication nsLivemarkService.getSiteURI in toolbar.xml → duplicate nsLivemarkService.getSiteURI in toolbar.xml
Attachment #248440 - Attachment is obsolete: true
Attachment #248459 - Flags: review?(gavin.sharp)
Attachment #248459 - Attachment is obsolete: true
Attachment #248460 - Flags: review?(gavin.sharp)
Attachment #248459 - Flags: review?(gavin.sharp)
Comment on attachment 248460 [details] [diff] [review]
don't return on exception per gavin

>Index: browser/components/places/content/toolbar.xml

>+                
>+                // duplicate nsLivemarkService.getSiteURI to avoid instantiating

>+                if (siteURIString) {            
>+                  button.setAttribute("siteURI", siteURIString);
>                 }

uber-nits: remove the whitespace on the blank line, and drop the brackets around the single-line else clause?
Attachment #248460 - Flags: review?(gavin.sharp) → review+
Attached patch nits fixed (obsolete) — Splinter Review
Attachment #248460 - Attachment is obsolete: true
Attachment #248461 - Flags: review?(gavin.sharp)
Attachment #248461 - Flags: review?(gavin.sharp)
Attachment #248461 - Attachment is obsolete: true
Checking in toolkit/components/places/src/nsLivemarkService.js;
/cvsroot/mozilla/toolkit/components/places/src/nsLivemarkService.js,v  <--  nsLivemarkService.js
new revision: 1.5; previous revision: 1.4
done
Checking in browser/components/places/content/toolbar.xml;
/cvsroot/mozilla/browser/components/places/content/toolbar.xml,v  <--  toolbar.xml
new revision: 1.64; previous revision: 1.63
done
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
for completeness:

hatted with sayrer over irc about this patch.

this patch duplicates some code in the livemarks service into the toolbar code, so that on start up, we don't have to instantiate the livemarks service (and do all the work it will do on instantiation.

note to qa, this is on all platforms, but you need --enable-places-bookmarks to test it.
OS: Mac OS X 10.3 → All
Hardware: PC → All
Target Milestone: --- → Firefox 3 alpha1
Bug 451915 - move Firefox/Places bugs to Firefox/Bookmarks and History. Remove all bugspam from this move by filtering for the string "places-to-b-and-h".

In Thunderbird 3.0b, you do that as follows:
Tools | Message Filters
Make sure the correct account is selected. Click "New"
Conditions: Body   contains   places-to-b-and-h
Change the action to "Delete Message".
Select "Manually Run" from the dropdown at the top.
Click OK.

Select the filter in the list, make sure "Inbox" is selected at the bottom, and click "Run Now". This should delete all the bugspam. You can then delete the filter.

Gerv
Component: Places → Bookmarks & History
QA Contact: places → bookmarks
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: