Closed
Bug 834915
Opened 12 years ago
Closed 12 years ago
audit elm usage of deprecated Places APIs
Categories
(Firefox for Metro Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: mak, Assigned: mbrubeck)
References
Details
(Whiteboard: [metro-mvp])
Attachments
(1 file)
4.74 KB,
patch
|
mak
:
review+
|
Details | Diff | Splinter Review |
Please check bug 834457 for a list of APIs that are going away, since some of the code went from mobile/xul it may contain some of them.
Reporter | ||
Comment 1•12 years ago
|
||
I looked at browser/metro, Brian is there any other location I should look at?
I found:
http://mxr.mozilla.org/projects-central/source/elm/browser/metro/base/content/bindings/browser.xml#132
http://mxr.mozilla.org/projects-central/source/elm/browser/metro/base/content/pages/aboutCertError.xhtml#28
these are easy to replace, I suggest using PlacesUtils.favicons.setAndFetchFaviconForPage
http://mxr.mozilla.org/projects-central/source/elm/browser/metro/base/content/bookmarks.js#211
http://mxr.mozilla.org/projects-central/source/elm/browser/metro/base/content/bookmarks.js#254
These are a bit more complicated since getFaviconImageForPage is synchronous, the replacement is PlacesUtils.favicons.getFaviconURLForPage, that is asynchronous and accepts a callback (http://mxr.mozilla.org/mozilla-central/source/toolkit/components/places/mozIAsyncFavicons.idl#149)
Reporter | ||
Updated•12 years ago
|
Flags: needinfo?(netzen)
Reporter | ||
Comment 3•12 years ago
|
||
(In reply to Brian R. Bondy [:bbondy] from comment #2)
> Yes also in widget/windows/winrt please
it looks clean.
Assignee | ||
Updated•12 years ago
|
Whiteboard: [metro-mvp?]
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → mbrubeck
OS: Windows 7 → Windows 8 Metro
Hardware: x86_64 → All
Assignee | ||
Comment 4•12 years ago
|
||
Attachment #710329 -
Flags: review?(mak77)
Reporter | ||
Comment 5•12 years ago
|
||
Comment on attachment 710329 [details] [diff] [review]
patch
Review of attachment 710329 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks!
::: browser/metro/base/content/bindings/browser.xml
@@ +133,1 @@
> gFaviconService.FAVICON_LOAD_NON_PRIVATE);
indentation
::: browser/metro/base/content/pages/aboutCertError.xhtml
@@ +24,5 @@
> <!-- This page currently uses the same favicon as neterror.xhtml.
> If the location of the favicon is changed for both pages, the
> FAVICON_ERRORPAGE_URL symbol in toolkit/components/places/src/nsFaviconService.h
> should be updated. If this page starts using a different favicon
> + than neterrorm nsFaviconService->SetAndFetchFaviconForPage
while here would be nice to fix "neterrorm" to "neterror," (I actually think this typo is mine, I didn't verify but it really looks my keyboard)
Attachment #710329 -
Flags: review?(mak77) → review+
Assignee | ||
Comment 6•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [metro-mvp?] → [metro-mvp]
Assignee | ||
Comment 7•12 years ago
|
||
Pushed a one-line follow-up to silence errors when the returned URI is null:
https://hg.mozilla.org/projects/elm/rev/5ecb0efc1693
Updated•11 years ago
|
OS: Windows 8 Metro → Windows 8.1
You need to log in
before you can comment on or make changes to this bug.
Description
•