Closed
Bug 142523
Opened 23 years ago
Closed 23 years ago
data: can't open a xul-application through channel
Categories
(Core :: Networking, defect)
Tracking
()
VERIFIED
DUPLICATE
of bug 138052
mozilla1.0.1
People
(Reporter: Eugals, Unassigned)
References
()
Details
(Keywords: crash)
Here is simple xul text:
<?xml version='1.0'?>
<?xml-stylesheet href='chrome://global/skin/' type='text/css'?>
<!DOCTYPE window>
<window xmlns='http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul'>
</window>
There is no problem to view it via mfcembed (or even mozilla.exe) in case this text is content of a file.
But when I tried to view it like that:
data:application/vnd.mozilla.xul+xml,<?xml version='1.0'?><?xml-stylesheet href='chrome://global/skin/' type='text/css'?><!DOCTYPE window><window xmlns='http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul'></window>
The "Unknown C++ exception" occurs.
| Reporter | ||
Comment 1•23 years ago
|
||
To get reported bug I just modified mfcembed's CBrowserView::OnFileOpen so it always subsitutes the URL I wrote above.
I also tried to do that using nsDocShell::LoadStream (I make my own nsIInputStream implementer). Result was the same.
| Reporter | ||
Comment 2•23 years ago
|
||
One more comment :)
When I tried to use "data:text/xml" instead of "data:application/vnd.mozilla.xul+xml" there wasn't any "unknown c++ exceptions".
But I need to work exactly with "applications" not the "texts" :(((
P.S. Sorry for my English :(
what build id, and branch or trunk? -- this is important info which you should not omit when filing bugs about the browser crashing.
i think the data protocol handler was recently modified.
Keywords: crash
| Reporter | ||
Comment 5•23 years ago
|
||
Sorry. It's my first Bugzilla request :(
| Reporter | ||
Comment 6•23 years ago
|
||
Reported bug can be fixed by (for example) following changes in nsDataProtocol::ParseData...
char *dataBuffer = nsnull;
PRBool cleanup = PR_FALSE;
- if ( !mContentType.Find("text") && !lBase64) {
+ if ( (mContentType.Find("text") || mContentType.Find("application")) && !lBase64) {
// it's text, don't compress spaces
dataBuffer = comma+1;
} else {
// it's ascii encoded binary, don't let any spaces in
nsCAutoString dataBuf(comma+1);
I've virified it on mozilla1.0.rc1
| Reporter | ||
Comment 7•23 years ago
|
||
Marking as INVALID.
See http://bugzilla.mozilla.org/show_bug.cgi?id=138052
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
Summary: can't open a xul-application through data channel → data: can't open a xul-application through channel
| Reporter | ||
Comment 8•23 years ago
|
||
Bug #138052 was fixed 2002-05-04, but changed files still is not included to an official 'Source Code Tarball'.
At least it not appeared in http://ftp.mozilla.org/pub/mozilla/releases/mozilla1.0.1/src/mozilla-source-1.0.1.tar.bz2
Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---
Target Milestone: mozilla0.9.9 → mozilla1.0.1
Comment 10•23 years ago
|
||
reporter: I can see the change from bug 138052 in the mozilla trunk builds.
Comment 11•23 years ago
|
||
The fix for bug 138052 was not landed on the branch and will not be landing on
it (since it is not a crash fix, security fix, or fix for a commonly encountered
problem). Re-resolving; this is fixed on trunk and in 1.x releases for x > 0,
but is not and will not be fixed in 1.0.x releases.
*** This bug has been marked as a duplicate of 138052 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago → 23 years ago
Resolution: --- → DUPLICATE
Comment 12•23 years ago
|
||
VERIFIED, looks like same problem from discussion
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•