Closed Bug 102779 Opened 24 years ago Closed 24 years ago

data: URLs never fire onload handlers

Categories

(Core :: Layout, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: dbaron, Assigned: rpotts)

References

(Blocks 1 open bug, )

Details

Attachments

(1 file)

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.
Blocks: 101387
Blocks: 95088
Blocks: 102911
Any plans to fix this?
darin.
Assignee: neeti → darin
this wouldn't be solved in necko... -> layout
Assignee: darin → attinasi
Component: Networking → Layout
QA Contact: benc → petersen
Rick, you're gonna love this one :-)
Assignee: attinasi → rpotts
Blocks: 115101
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 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+
right! nsIDataChannel is useless, and certainly could/should go away.
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+
patch checked in...
testcase now works. resolving fixed.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
*** Bug 102911 has been marked as a duplicate of this bug. ***
Blocks: 144766
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: