Closed Bug 48348 Opened 25 years ago Closed 25 years ago

CurrentPage.getSourceBytes(boolean) method returns null

Categories

(Core Graveyard :: Java APIs to WebShell, defect, P3)

x86
Windows NT
defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: ovk, Assigned: ashuk)

Details

(Whiteboard: suntrak-n6)

Attachments

(3 files)

It is because the native method "nativeGetSourceBytes" in CurrentPageImpl.cpp always returns null: jbyteArray result = nsnull; return result; If it is not implemented yet, then method CurrentPage.getSourceBytes(boolean) in CurrentPageImpl.java must throw Unimplemented Exception. Mozilla M16, Webclient source from August 07, 2000
Too true. Confirming. Gerv
Status: UNCONFIRMED → NEW
Ever confirmed: true
Reassigning to Ashu.
Assignee: edburns → ashuk
Status: NEW → ASSIGNED
Adding Status whiteboard keyword to track all Webclient existing bugs
Whiteboard: suntrak-n6
The fix utilizes the Java URL and URLConnection classes (java.net.*) to implement the getSource and getSourceBytes functions of the CurrentPage Interface. The implementation is pure Java and returns the correct type as defined in the Webclient API. Ed, pls review and let me know if I have ra=edburns _Ashu
This looks great. One thing before r=edburns. Add the code in the previous attachment to your code before you check it in. As a separate diff and checkin sequence, I want you to remove the existing view source java and native code. After this is done, you can close this bug. Ed
Ed, I have added your previous fix into EMWindow.java, updated my cvs codebase and done the diffs. I have checked in the fixes for the java files that you have approved. I have also checked in the fixes to the Native code that comments out the Native implementation of the GetSource Function. Since I didn't get a chance to get your review for this, I just commented out the code and checked it in. Once I get back, I will remove the commented code. thanks _Ashu
Looks good, but instead of commenting out the method, can you please remove it?
Oops, I see that you are already planning on doing what I requested. Proceed.
Ashu, this fix was only half checked in. I have checked in the other half.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
I mark it as verified.
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: