Closed Bug 2621 Opened 26 years ago Closed 25 years ago

[PP]Local URLs for STYLESHEET LINKs crashes viewer

Categories

(Core :: Layout, defect, P1)

PowerPC
Mac System 8.5
defect

Tracking

()

VERIFIED DUPLICATE of bug 2537

People

(Reporter: cyrus, Assigned: peterl-retired)

References

()

Details

Links with local URLs for STYLESHEETS cause the viewer
to die a horrible screaming death.

For example:

    <LINK REL=STYLESHEET TYPE="text/css"
      HREF="http:css/w3c.css" TITLE="W3C Style">

A full URL makes things work ok here.

Send email if you want a stdlog.
Assignee: troy → peterl
Severity: major → critical
It certainly shouldn't die horribly.

However, the markup quoted is incorrect. A relative uri should not
include the scheme.

IOW, it should be:

    <LINK REL=STYLESHEET TYPE="text/css"
      HREF="css/w3c.css" TITLE="W3C Style">

...without the  "http:".

But, it shouldn't die horribly. It should just tell the user that there was
a malformed uri in the document source.
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Fixed. Was passing an error code for the bad URL back to the parser. The parser
was then doing interesting things...
QA Contact: 3847
Jan please verify fix.
Status: RESOLVED → REOPENED
I still get a crash on this bug with the message:
"The application "viewer.app" has unexpectedly quit, because an error of type 2
occurred."

Here are 2 URLs to use for testing:
http://slip/projects/marvin/bugs/bug_2621/crashes.html
http://slip/projects/marvin/bugs/bug_2621/works.html

the only difference between the files is this,
works.html has this link:
<LINK rel="stylesheet" type="text/css" href="style.css" title="CSS">
crashes.html has this link:
<LINK rel="stylesheet" type="text/css" href="http://style.css" title="CSS">

(Note: Neither URL crashes on windows)
Resolution: FIXED → ---
*** Bug 2783 has been marked as a duplicate of this bug. ***
Target Milestone: M5
Summary: Local URLs for STYLESHEET LINKs kills viewer → [PP]Local URLs for STYLESHEET LINKs kills viewer
Summary: [PP]Local URLs for STYLESHEET LINKs kills viewer → [PP]Local URLs for STYLESHEET LINKs crashes viewer
Target Milestone: M5 → M6
Target Milestone: M6 → M7
Status: ASSIGNED → RESOLVED
Closed: 26 years ago25 years ago
Resolution: --- → DUPLICATE
*** This bug has been marked as a duplicate of 2537 ***
Status: RESOLVED → VERIFIED
Verified
You need to log in before you can comment on or make changes to this bug.