DebugBar Forums
 
 HOME 
 DOWNLOAD 
 BUY 
 DOC / WIKI 
 FORUM 
 CONTACT 
Stay tuned : rss feed

Forum Home


advanced search

You are not logged in.

Announcement

Forums are now closed as we moved them to google groups. You can use the following Google Groups to discuss about DebugBar and IETester products:

#1 2008-04-22 08:13:06

daibach
New member

JavaScript not accessing cookies

I've run into a problem with JavaScript access cookies.  Everything was working fine in IE6 (Installed), I've upgraded to IE7 and it's still working great in that.

In IE Tester, IE7 and IE8 can both read cookies using JavaScript.  IE6 and IE5.5 can't, but do appear to acknowledge cookies as I can log into sites.

So, when using mootools for example, doing a Cookie.get('STAMP') is returning false for IE6, IE5.5.  In IE8 and IE7 it's returning the correct value.

Any ideas?

Offline

 

#2 2008-04-22 13:23:42

fabrice
DebugBar Support

Re: JavaScript not accessing cookies

Thansk for reporting it. I will have a look at this.

Note that a new version has just been release (v0.2.1) that may solve this problem (I didn't check yet).

Regards.

Offline

 

#3 2008-04-23 08:14:45

daibach
New member

Re: JavaScript not accessing cookies

Thanks fabrice, I've downloaded and installed v0.2.1.

Tried out the cookie problem and it's still unable to read cookies via JavaScript.

Great application by the way, if you somehow managed to roll other engines into it like Gecko and webkit it'd be a monster of a testing application.

Offline

 

#4 2008-04-23 08:21:56

fabrice
DebugBar Support

Re: JavaScript not accessing cookies

Hi,

OK, I will have a look at this problem. (If you have a sample page for testing that is even better !).

About WebKit and Gecko, this is already in my todo, but I would like to integrate DebugBar and Companion.JS first to have a better testing system for IE. Then for sure, I will try to add WebKit and Gecko !

Thanks for the feedback and support.

Offline

 

#5 2008-04-26 10:13:31

FremyCompany
Member

Re: JavaScript not accessing cookies

WebKit can be used in latest builds with the implementation based on Swift Browser.

Gecko can be used in the 2005 version with the MozCtl ActiveX Object (similar behavior as IE ActiveX but only with partial support)
==> Too old, I think, to test a site with it

Offline

 

#6 2008-05-02 11:18:14

FremyCompany
Member

Re: JavaScript not accessing cookies

I've got another idea to implement FireFox and Safari into IETester.



For FF:
=======
Adapt FF for embedding :
-------------------------
1a. Copy the "Mozilla FireFox" directory to make a save of the old content
1b. Change the settings so tabs are not authorized anymore.

Facultative :
--------------
2. Goto "chrome" directory and rename "browser.jar" into "browser.zip"
3. Unzip browser.zip
4. Edit chrome://browser/content/browser.xul to modify the window UI.
Warning : If you use a skinned Mozilla, it can be very painful.
5. Recompile browser.zip and rename to browser.jar

Capture FF windows and make your application the owner of theses :
-------------------------------------------------------------------
6. When you want to create a "Mozilla Tab", lauch firefox.exe, capture it by PID (process ID), get its mainwindow and embed this one in your application (some code for doing that are already availlable in many language in the web)

PS : I don't know if you can detect when the browser opens a new window with PID or not.




For Webkit :
===============
You can do similar things for Safari 3.1 or Swift, but you'll not be able to edit the main interface. Another solution is to use the Webkit.NET API used in Swift.



Other requests :
==================
* Make a context menu for tabs with these functions :
- Close this tab
- Close other tabs
- Refresh this tab
- Duplicate using IE 5.5
- Duplicate using IE 6.0
- Duplicate using IE 7.0
- Duplicate using IE 8.0
- ...

Last edited by FremyCompany (2008-05-02 11:23:26)

Offline

 

#7 2008-05-02 11:34:40

fabrice
DebugBar Support

Re: JavaScript not accessing cookies

I really like the tab context menu :-) For sure I will try to implement it soon.

About Gecko and Webkit, this is be in a future release...

Offline

 

#8 2008-05-05 20:20:24

FremyCompany
Member

Re: JavaScript not accessing cookies

I'm progressing into the FireFox embeding.
I've done a first application that's capable to embed FireFox.

There's only two problems :
> If FireFox is already running (a true version of FireFox, as sample) I can't run my own FireFox version and so it fails
> All windows opened by FireFox (exept modal ones) are embedded, because there's no way to detect the difference between theses windows.

I'll post the code soon on Codes-Sources.com.

Regardes,
Fremy

Offline

 

#9 2008-05-05 22:11:05

fabrice
DebugBar Support

Re: JavaScript not accessing cookies

Hi,

I am not sure to understand what you are trying to do.

There is some documentation on mozilla to embed gecko rendering engine :

http://developer.mozilla.org/en/docs/Ge … ing_Basics

http://developer.mozilla.org/en/docs/Ro … ding_HowTo

Hope this helps.

Offline

 

#10 2008-05-06 16:12:05

FremyCompany
Member

Re: JavaScript not accessing cookies

These features have a great problem :
- XPCOM is only availlable to C++ and is very complicated to implement
- Mozilla ActiveX Control is out-dated (last engine supported: Gecko 2005).

So, if you want more, you need to use the "true" FireFox and embed it with the Windows-UI API.

Last edited by FremyCompany (2008-05-06 16:12:18)

Offline