Closed
Bug 154942
Opened 23 years ago
Closed 23 years ago
report failure to load stylesheet due to MIME type mismatch
Categories
(Core :: CSS Parsing and Computation, defect, P2)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
mozilla1.1beta
People
(Reporter: dbaron, Assigned: dbaron)
References
()
Details
Attachments
(3 files, 4 obsolete files)
9.66 KB,
patch
|
waterson
:
superreview+
|
Details | Diff | Splinter Review |
391 bytes,
text/html; charset=UTF-8
|
Details | |
300 bytes,
text/html; charset=UTF-8
|
Details |
I'm going to attach a patch that reports the failure to load a stylesheet due to
a MIME type mismatch to the error console. We've discussed this a few times,
and I finally broke down and did it. (Do we have another bug on this somewhere?
Oh well.)
I'll probably want to move the main added function somewhere else when I work on
localizability of CSS parser error messages. However, for now, I'll just put it
where it's needed.
I probably need to do more magic than I just did to add a new jar.mn. It works
on Linux, though. (Does Mac need babysitting?)
Assignee | ||
Updated•23 years ago
|
Assignee | ||
Updated•23 years ago
|
Status: NEW → ASSIGNED
Priority: -- → P2
Target Milestone: --- → mozilla1.1beta
Assignee | ||
Comment 1•23 years ago
|
||
Assignee | ||
Comment 2•23 years ago
|
||
Attachment #89665 -
Attachment is obsolete: true
Assignee | ||
Comment 3•23 years ago
|
||
Comment on attachment 89666 [details] [diff] [review]
patch, v. 1.1
>+ NS_ConvertASCIItoUCS2("").get(), /* file name */
>+ NS_LITERAL_STRING("").get(), /* source line */
They're both NS_LITERAL_STRING now in my tree.
Comment 4•23 years ago
|
||
bug 113399 is the orig; dup whichever way is more convenient.
Do we want to use nsIRequest.name or get the URI from the nsIChannel and GetSpec
on that? Also, is nsIRequest.name actually ASCII? Or UTF8?
Blocks: 113399
Assignee | ||
Comment 5•23 years ago
|
||
GetName seems to be equivalent for all the ones that actually are also
nsIChannel. You're right that it's probably UTF8, though. I'll fix that...
Assignee | ||
Comment 6•23 years ago
|
||
Attachment #89666 -
Attachment is obsolete: true
Assignee | ||
Comment 7•23 years ago
|
||
Add changes to MozillaBuildList.pm so the Mac will stay happy too.
Attachment #89667 -
Attachment is obsolete: true
Assignee | ||
Comment 8•23 years ago
|
||
Refactor a bit. Use URI rather than Name. Change status to error, and add
warning for case where we do load. (I'd rather use warning and info, but
nsIScriptError doesn't have info -- we only seem to do that for generic console
messages, perhaps.)
Comment 9•23 years ago
|
||
> + * @param aErrorName The name of a string in css.properties.
> + * @param aParams The parameters for that string in css.properties.
> + * @param aParamsLength The length of aParams.
Fix this to match the actual params the method takes and r=bzbarsky
Comment 10•23 years ago
|
||
Comment on attachment 89670 [details] [diff] [review]
patch, v. 1.4
sr=waterson
Attachment #89670 -
Flags: superreview+
Assignee | ||
Comment 11•23 years ago
|
||
Fix checked in 2002-07-01 20:11 PDT.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Updated•22 years ago
|
Whiteboard: [whitebox]
Assignee | ||
Updated•22 years ago
|
Whiteboard: [whitebox]
Updated•22 years ago
|
Whiteboard: [whitebox]
Assignee | ||
Comment 12•22 years ago
|
||
Madhur, if you're going to plaster "[whitebox]" over bugs, please at least don't
do it for bugs that are easily verifiable.
Whiteboard: [whitebox]
Assignee | ||
Comment 13•20 years ago
|
||
Assignee | ||
Comment 14•20 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•