﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
2367	beta regression on retrieving twice same $oIE.document	Jpm	Jon	"The repro script is returning now 1 instead of 0

{{{
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

Opt(""TrayIconDebug"", 1)

Global $ret = 0
; Create two WebBrowser controls to embed
Global $oIE = ObjCreate(""Shell.Explorer.2"")
Global $oIE2 = ObjCreate(""Shell.Explorer.2"")

; Setup the parent GUI and embed the controls
GUICreate(""Embedded Web control Test"", 1200, 700, -1, -1, BitOR($GUI_SS_DEFAULT_GUI, $WS_CLIPCHILDREN))
GUICtrlCreateObj($oIE2, 580, 1, 570, 660)
GUICtrlCreateObj($oIE, 1, 1, 570, 660)

GUISetState() ;Show GUI

; Update first control
$oIE.navigate(""http://www.google.fr"")
; Wait for document object to be created
While Not IsObj($oIE.document)
	Sleep(100)
WEnd
; Wait for document load to complete
While $oIE.document.readyState <> ""complete""
	Sleep(100)
WEnd

; Update second control
$oIE2.navigate(""http://www.google.fr"")
; Wait for document object to be created
While Not IsObj($oIE2.document)
	Sleep(100)
WEnd
; Wait for document load to complete
While $oIE2.document.readyState <> ""complete""
	Sleep(100)
WEnd

Global $oDocRef1 = $oIE.document
Global $oDocRef2 = $oIE.document
Global $oDocCopy1 = $oDocRef1
Global $oIE3 = $oIE

If $oDocRef1 <> $oDocRef2 Then $ret = 1 ; Regression with beta ====================================
If $oDocRef1 <> $oDocCopy1 Then $ret = BitOR($ret, 2)
If $oIE = $oIE2 Then $ret = BitOR($ret, 4)
If $oIE <> $oIE3 Then $ret = BitOR($ret, 8)

; Only = and <> are implemented, all others should return False
If $oIE < $oIE2 Then $ret = BitOR($ret, 16)
If $oIE > $oIE2 Then $ret = BitOR($ret, 32)
If $oIE == $oIE2 Then $ret = BitOR($ret, 64)
If $oIE = 423 Then $ret = BitOR($ret, 128)
If $oIE = ""Test"" Then $ret = BitOR($ret, 256)
If $oIE == ""Test"" Then $ret = BitOR($ret, 512)

Exit $ret

}}}
"	Bug	closed	3.3.9.18	AutoIt	3.3.9.11	None	Fixed		
