Modify ↓
Opened 13 years ago
Closed 13 years ago
#2367 closed Bug (Fixed)
beta regression on retrieving twice same $oIE.document
| Reported by: | J-Paul Mesnage | 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:2 by , 13 years ago
| Milestone: | → 3.3.9.13 |
|---|---|
| Owner: | set to |
| Resolution: | → Fixed |
| Status: | new → closed |
Fixed by revision [8187] in version: 3.3.9.13
comment:3 by , 13 years ago
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
comment:4 by , 13 years ago
| Resolution: | Fixed |
|---|---|
| Status: | closed → reopened |
comment:6 by , 13 years ago
| Milestone: | → 3.3.9.18 |
|---|---|
| Resolution: | → Fixed |
| Status: | reopened → closed |
Fixed by revision [8655] in version: 3.3.9.18
Note:
See TracTickets
for help on using tickets.

This seems to have been broken in revision 6130,6259 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