Modify

#2367 closed Bug (Fixed)

beta regression on retrieving twice same $oIE.document

Reported by: Jpm Owned by: Jon
Milestone: 3.3.9.18 Component: AutoIt
Version: 3.3.9.11 Severity: None
Keywords: Cc:

Description

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

Attachments (0)

Change History (6)

comment:1 by Jon, on Jul 27, 2013 at 10:40:18 AM

This seems to have been broken in revision 6130 which is when we started to be more clever if typeinfo was available. It's hard to repo and I can only repo it at by running the x64 version of AutoIt in release mode. Note, this is actually around the time of 3.3.8.0

Version 1, edited on Jul 27, 2013 at 10:40:41 AM by Jon (previous) (next) (diff)

comment:2 by Jon, on Jul 27, 2013 at 11:26:26 AM

Milestone: 3.3.9.13
Owner: set to Jon
Resolution: Fixed
Status: newclosed

Fixed by revision [8187] in version: 3.3.9.13

comment:3 by Jpm, on Aug 6, 2013 at 9:47:13 AM

Still buggy under X64 see this http://www.autoitscript.com/forum/topic/153009-autoit-v33913-beta/?p=1099859
definitly not a regression still old bug

Last edited on Aug 6, 2013 at 9:47:56 AM by Jpm (previous) (diff)

comment:4 by Jon, on Aug 19, 2013 at 2:52:03 PM

Resolution: Fixed
Status: closedreopened

comment:5 by TicketCleanup, on Aug 19, 2013 at 3:00:02 PM

Milestone: 3.3.9.13

Automatic ticket cleanup.

comment:6 by Jon, on Aug 20, 2013 at 10:23:10 AM

Milestone: 3.3.9.18
Resolution: Fixed
Status: reopenedclosed

Fixed by revision [8655] in version: 3.3.9.18

Modify Ticket

Action
as closed The owner will remain Jon.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.