Closed
Bug 102779
Opened 24 years ago
Closed 24 years ago
data: URLs never fire onload handlers
Categories
(Core :: Layout, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: dbaron, Assigned: rpotts)
References
(Blocks 1 open bug, )
Details
Attachments
(1 file)
7.91 KB,
patch
|
darin.moz
:
review+
jst
:
superreview+
|
Details | Diff | Splinter Review |
data: URLs don't fire onload handlers. I suspect this has something to do with
something at the network level not firing. This makes it difficult to put data:
URLs into a performance test for layout performance on very simple pages.
Comment 1•24 years ago
|
||
Any plans to fix this?
Comment 3•24 years ago
|
||
this wouldn't be solved in necko...
-> layout
Assignee: darin → attinasi
Component: Networking → Layout
QA Contact: benc → petersen
Assignee | ||
Comment 5•24 years ago
|
||
Assignee | ||
Comment 6•24 years ago
|
||
how do people feel about getting rid of the nsIDataChannel interface? Currently
it is identical to nsIChannel !!
it seems like unnecessary overkill... if people agree, i'll put together
another patch to nuke it ;-)
-- rick
Comment 7•24 years ago
|
||
Comment on attachment 61920 [details] [diff] [review]
Patch to cause OnLoad events to fire -- and other cleanup
patch looks good to me... looks like you got all the different cancelation
paths handled. r/sr=darin
Attachment #61920 -
Flags: review+
Comment 8•24 years ago
|
||
right! nsIDataChannel is useless, and certainly could/should go away.
Comment 9•24 years ago
|
||
Comment on attachment 61920 [details] [diff] [review]
Patch to cause OnLoad events to fire -- and other cleanup
> NS_IMETHODIMP
> nsDataChannel::GetName(PRUnichar* *result)
> {
>- NS_NOTREACHED("nsDataChannel::GetName");
>- return NS_ERROR_NOT_IMPLEMENTED;
>+ nsXPIDLCString name;
>+
>+ if (mUrl) {
>+ mUrl->GetSpec(getter_Copies(name));
>+ }
>+ *result = ToNewUnicode(name);
Do we need any UTF8 fu here?
[...]
>+ return mStatus;
>+}
>\ No newline at end of file
Add a newline at the end of nsDataChannel.cpp, some odd ports (HP-UX?) will go
red if you don't add this.
Other than that, r/sr=jst
Attachment #61920 -
Flags: superreview+
Assignee | ||
Comment 10•24 years ago
|
||
patch checked in...
Comment 11•24 years ago
|
||
testcase now works. resolving fixed.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Comment 12•24 years ago
|
||
*** Bug 102911 has been marked as a duplicate of this bug. ***
You need to log in
before you can comment on or make changes to this bug.
Description
•