Closed
Bug 237303
Opened 21 years ago
Closed 21 years ago
[ActiveX] IHTMLDocument2 cookie methods not implemented
Categories
(Core Graveyard :: Embedding: ActiveX Wrapper, enhancement)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: irongut, Assigned: adamlock)
References
()
Details
Attachments
(1 file)
758 bytes,
patch
|
adamlock
:
review+
bzbarsky
:
superreview+
|
Details | Diff | Splinter Review |
I would like to be able to get a cookie associated with a page displayed in the
Mozilla ActiveX Control. In the IE WebBrowser control this is done using the
get_cookie method from the IHTMLDocument2 interface.
get_cookie and put_cookie in IEHtmlDocument.cpp are stubs that raise a not
implemented exception. (see url)
The following Delphi code should be able to read a cookie:
procedure TForm1.WebBrowser1DocumentComplete(ASender: TObject;
const pDisp: IDispatch; var URL: OleVariant);
var
Document : IHTMLDocument2;
fCookie : string;
begin
Document := Webbrowser1.Document as IHTMLDocument2;
if Assigned(Document) then begin
fCookie := Document.cookie;
ShowMessage(fCookie);
end;
end;
Comment 1•21 years ago
|
||
Got this on www.vodafone.com:
"JSESSIONID=1DD982DA835F90FF39AF5262CDD0E940.live_5202"
Updated•21 years ago
|
Attachment #144115 -
Flags: review?(adamlock)
Comment on attachment 144115 [details] [diff] [review]
CIEHtmlDocument::get_cookie() implementation
r=adamlock
Attachment #144115 -
Flags: review?(adamlock) → review+
Updated•21 years ago
|
Attachment #144115 -
Flags: superreview?(bzbarsky)
![]() |
||
Comment 3•21 years ago
|
||
Comment on attachment 144115 [details] [diff] [review]
CIEHtmlDocument::get_cookie() implementation
sr=bzbarsky assuming that this handles encodings correctly.
Adam should probably do the checkin....
Attachment #144115 -
Flags: superreview?(bzbarsky) → superreview+
Fix is checked into trunk
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
*** Bug 260651 has been marked as a duplicate of this bug. ***
Updated•13 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•