Closed
Bug 300292
Opened 19 years ago
Closed 19 years ago
rewrite nsMacShellService::SetDesktopBackground
Categories
(Firefox :: Shell Integration, defect, P2)
Tracking
()
RESOLVED
FIXED
Firefox1.5
People
(Reporter: asaf, Assigned: asaf)
Details
(Keywords: crash)
Attachments
(1 file, 1 obsolete file)
|
5.30 KB,
patch
|
mconnor
:
review+
mconnor
:
approval1.8b4+
|
Details | Diff | Splinter Review |
The current implementation of |nsMacShellService::SetDesktopBackground| has some errors: 1) It crashes for non-URL image sources (i.e. the data: protocol. 2) We're getting the URL from the source attribute instead of poking nsIImageLoadingContent::GetCurrentURI 3) In the case where the images base uri is different from the document uri, we're passing the wrong referer to nsIWebBrowserPersist::saveURI 4) We might return the wrong nsresult values, in failures. The attached patch fixes issues 2, 3 and 4 and partly fixes the first issue, that is: we don't crash anymore, but we still don't actually support data: uris, since i'm not sure what can we do about their filenames.
| Assignee | ||
Updated•19 years ago
|
Status: NEW → ASSIGNED
Priority: -- → P2
Target Milestone: --- → Firefox1.1
| Assignee | ||
Comment 2•19 years ago
|
||
too bad i can't ask for more than one review flag in the Firefox bugzilla-product.
Attachment #188872 -
Flags: superreview?(mconnor)
Attachment #188872 -
Flags: review?(jhpedemonte)
Updated•19 years ago
|
Attachment #188872 -
Flags: review?(jhpedemonte) → review+
Comment 3•19 years ago
|
||
Comment on attachment 188872 [details] [diff] [review] patch r=me
Attachment #188872 -
Flags: superreview?(mconnor) → superreview+
| Assignee | ||
Updated•19 years ago
|
Attachment #188872 -
Flags: approval1.8b4?
Updated•19 years ago
|
Attachment #188872 -
Flags: approval1.8b4? → approval1.8b4+
Comment 4•19 years ago
|
||
nsCOMPtr<nsIDOMHTMLImageElement> image(do_QueryInterface(aElement));
if (!image)
return NS_ERROR_INVALID_ARG;
do you still need that?
Comment 5•19 years ago
|
||
Comment on attachment 188872 [details] [diff] [review] patch also: nsCOMPtr<nsIDOM3Node> node(do_QueryInterface(aElement)); + nsCOMPtr<nsIContent> content = do_QueryInterface(node, &rv); why not directly qi to nsIContent?
Attachment #188872 -
Flags: approval1.8b4+ → approval1.8b4?
Updated•19 years ago
|
Attachment #188872 -
Flags: approval1.8b4? → approval1.8b4+
| Assignee | ||
Comment 6•19 years ago
|
||
good points, biese.
Attachment #188872 -
Attachment is obsolete: true
Attachment #189211 -
Flags: review?(mconnor)
Comment 7•19 years ago
|
||
Comment on attachment 189211 [details] [diff] [review] patch r=me on the changes, carrying over a=
Attachment #189211 -
Flags: review?(mconnor)
Attachment #189211 -
Flags: review+
Attachment #189211 -
Flags: approval1.8b4+
| Assignee | ||
Comment 8•19 years ago
|
||
Checking in src/nsMacShellService.cpp; /cvsroot/mozilla/browser/components/shell/src/nsMacShellService.cpp,v <-- nsMacShellService.cpp new revision: 1.7; previous revision: 1.6 done
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•