Closed Bug 237303 Opened 21 years ago Closed 21 years ago

[ActiveX] IHTMLDocument2 cookie methods not implemented

Categories

(Core Graveyard :: Embedding: ActiveX Wrapper, enhancement)

x86
Windows XP
enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: irongut, Assigned: adamlock)

References

()

Details

Attachments

(1 file)

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;
Got this on www.vodafone.com: "JSESSIONID=1DD982DA835F90FF39AF5262CDD0E940.live_5202"
Attachment #144115 - Flags: review?(adamlock)
Comment on attachment 144115 [details] [diff] [review] CIEHtmlDocument::get_cookie() implementation r=adamlock
Attachment #144115 - Flags: review?(adamlock) → review+
Attachment #144115 - Flags: superreview?(bzbarsky)
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+
Changed severity to 'enhancement'.
Severity: normal → enhancement
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. ***
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: