Closed Bug 511117 Opened 15 years ago Closed 15 years ago

when page is loading and you bookmark via star, popup dialog doesn't show

Categories

(Firefox for Android Graveyard :: Bookmarks, defect)

ARM
All
defect
Not set
normal

Tracking

(fennec1.0+)

VERIFIED FIXED
Tracking Status
fennec 1.0+ ---

People

(Reporter: jmaher, Assigned: mfinkle)

Details

Attachments

(1 file)

the new bookmark popup dialog is supposed to show when you click on the star to bookmark a URL.  During a page load (tested on my maemo device) if you click on the star (the star turns yellow), you will not see the bookmark popup.
Attached patch patchSplinter Review
I removed the code to load the favicon in the places favicon service. This stops the bug (popup is displayed) and the favicon is still shown in the awesomebar and in the bookmark list.

I guess we didn't need the code. Less is more!
Assignee: nobody → mark.finkle
Attachment #395064 - Flags: review?(gavin.sharp)
Background:

Error happens here:
http://mxr.mozilla.org/mobile-browser/source/chrome/content/browser-ui.js#711

It seems that this._favicon.src is "", set in updateToolbar when loading. i suppose we could do a check and skip the favicon service
tracking-fennec: --- → ?
tracking-fennec: ? → 1.0+
On IRC Gavin asked if removing the code was wise, as Firefox does the same thing when bookmarking a page.

To test this I started a new profile (no history or visits or favicons) and loaded several pages. I bookmarked the pages before they finished loading, although waiting until they were loaded would have made no difference since I removed the code to set the favicon in the favicon service.

After bookmarking, I loaded the bookmark list and the favicon for each bookmark was present.

It seems that we don't need the favicons.setAndLoadFaviconForPage called when bookmarking.
... and the reason is probably because we call favicons.setAndLoadFaviconForPage when we finish loading any page:

http://mxr.mozilla.org/mobile-browser/source/chrome/content/browser-ui.js#168
Comment on attachment 395064 [details] [diff] [review]
patch

Oh, that's what Firefox does too!
Attachment #395064 - Flags: review?(gavin.sharp) → review+
pushed: https://hg.mozilla.org/mobile-browser/rev/a6da11ffd9b8
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
verified with 20090827 winmo trunk nightly
Status: RESOLVED → VERIFIED
Component: General → Bookmarks
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: