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)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: ovk, Assigned: ashuk)
Details
(Whiteboard: suntrak-n6)
Attachments
(3 files)
|
6.11 KB,
patch
|
Details | Diff | Splinter Review | |
|
1.22 KB,
patch
|
Details | Diff | Splinter Review | |
|
10.12 KB,
patch
|
Details | Diff | Splinter Review |
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
| Assignee | ||
Updated•25 years ago
|
Status: NEW → ASSIGNED
Comment 3•25 years ago
|
||
Adding Status whiteboard keyword to track all Webclient existing bugs
Whiteboard: suntrak-n6
| Assignee | ||
Comment 4•25 years ago
|
||
| Assignee | ||
Comment 5•25 years ago
|
||
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
| Assignee | ||
Comment 8•25 years ago
|
||
| Assignee | ||
Comment 9•25 years ago
|
||
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
Comment 10•25 years ago
|
||
Looks good, but instead of commenting out the method, can you please remove it?
Comment 11•25 years ago
|
||
Oops, I see that you are already planning on doing what I requested. Proceed.
Comment 12•25 years ago
|
||
Ashu, this fix was only half checked in. I have checked in the other half.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Updated•14 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•