Closed Bug 169789 Opened 22 years ago Closed 21 years ago

PPEmbed and Chimera fail to save view-source:

Categories

(Core Graveyard :: Embedding: Mac, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ccarlen, Assigned: ccarlen)

References

Details

Attachments

(1 file, 1 obsolete file)

The work the header sniffer does fails on such a URL. We end up with some
fallback  file name without a suffix. Since no suffix, we do:
mimeService->GetFromMIMEType(mContentType.get(), ...)
and since the content type is "text/html; x-view-type=view-source", that fails
and we bail.
Attached patch patch (obsolete) — Splinter Review
This fixes it. Need r=/sr=.
Fixing summary.
Summary: PPEmbed as Chimera fail to save view-source: → PPEmbed and Chimera fail to save view-source:
Still looking for r=/sr=.
Comment on attachment 99891 [details] [diff] [review]
patch

sr=sfraser
Attachment #99891 - Flags: superreview+
+            if (Substring(uriSpec, 0, 12).Equals("view-source:")) {
+                const nsACString& srcSpec = Substring(uriSpec, 12,
uriSpec.Length() - 12);

rather than |12| here, i'd like to see you use strlen("view-source:") or a
constant at least -- i'm guessing that's where the 12 comes from ;)

otherwise r=pink
*** Bug 164361 has been marked as a duplicate of this bug. ***
Mike why was this one not checked in ?
*** Bug 217708 has been marked as a duplicate of this bug. ***
conrad, this file is in the attic, what do we need to change for camino to get
it to do the right thing?
Attached patch patch v2Splinter Review
Here's a new patch against current camino
Attachment #99891 - Attachment is obsolete: true
Attachment #138423 - Flags: review?(pinkerton)
Comment on attachment 138423 [details] [diff] [review]
patch v2

r=pink
Attachment #138423 - Flags: review?(pinkerton) → review+
Attachment #138423 - Flags: superreview?(darin)
Comment on attachment 138423 [details] [diff] [review]
patch v2

clearing request for sr= since Camino
Attachment #138423 - Flags: superreview?(darin)
Checked in.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: