Closed
Bug 553121
Opened 16 years ago
Closed 16 years ago
Use resource urls to refer to dtds instead of file urls
Categories
(Core :: DOM: HTML Parser, defect)
Core
DOM: HTML Parser
Tracking
()
RESOLVED
FIXED
People
(Reporter: mwu, Assigned: mwu)
References
Details
Attachments
(1 file, 1 obsolete file)
|
4.30 KB,
patch
|
jst
:
review+
|
Details | Diff | Splinter Review |
Split from bug 552121.
Attachment #433216 -
Flags: superreview?(bzbarsky)
Attachment #433216 -
Flags: review?(benjamin)
Comment on attachment 433216 [details] [diff] [review]
Use resource URLs instead of file URLs
(switching sr to jst)
Attachment #433216 -
Flags: superreview?(bzbarsky) → superreview?(jst)
Comment 2•16 years ago
|
||
Comment on attachment 433216 [details] [diff] [review]
Use resource URLs instead of file URLs
Seems like this looses the purpose of what this function does since we no longer check whether or not the file exists, and if it doesn't exist it sure isn't loadable. Changing review request to peterv here, as he probably knows this stuff the best. It could very well be that the DTD load fails later on in a graceful way and this change would be fine, but at the very least we should change the method name and the comment explaining what this function does now, if checking for file existence isn't necessary.
Peter, what's your thoughts here?
Attachment #433216 -
Flags: review?(benjamin) → review?(peterv)
| Assignee | ||
Comment 3•16 years ago
|
||
(In reply to comment #2)
> (From update of attachment 433216 [details] [diff] [review])
> Seems like this looses the purpose of what this function does since we no
> longer check whether or not the file exists, and if it doesn't exist it sure
> isn't loadable.
Well, we just move the check for whether the file exists to open time. If the URI can't be opened OpenInputStreamFromExternalDTD fails. Basically the same behavior should be maintained.
> Changing review request to peterv here, as he probably knows
> this stuff the best. It could very well be that the DTD load fails later on in
> a graceful way and this change would be fine, but at the very least we should
> change the method name and the comment explaining what this function does now,
> if checking for file existence isn't necessary.
>
Agreed, a name change + comment would make sense.
Comment 4•16 years ago
|
||
Comment on attachment 433216 [details] [diff] [review]
Use resource URLs instead of file URLs
Ok, fair enough. And I'm fine with taking this change as long as we rename the method and update the comment.
Attachment #433216 -
Flags: superreview?(jst)
Attachment #433216 -
Flags: superreview+
Attachment #433216 -
Flags: review?(peterv)
Attachment #433216 -
Flags: review+
| Assignee | ||
Comment 5•16 years ago
|
||
How's this?
Attachment #433216 -
Attachment is obsolete: true
Attachment #436603 -
Flags: review?(jst)
Comment 6•16 years ago
|
||
Comment on attachment 436603 [details] [diff] [review]
Use resource URLs instead of file URLs, v2
Looks good.
Attachment #436603 -
Flags: review?(jst) → review+
| Assignee | ||
Comment 7•16 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•