Modify ↓
Opened 11 years ago
Closed 11 years ago
#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 Changed 11 years ago by Jon
Version 0, edited 11 years ago
by Jon
(next)
comment:2 Changed 11 years ago by Jon
- Milestone set to 3.3.9.13
- Owner set to Jon
- Resolution set to Fixed
- Status changed from new to closed
Fixed by revision [8187] in version: 3.3.9.13
comment:3 Changed 11 years ago by Jpm
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 Changed 11 years ago by Jon
- Resolution Fixed deleted
- Status changed from closed to reopened
comment:5 Changed 11 years ago by TicketCleanup
- Milestone 3.3.9.13 deleted
Automatic ticket cleanup.
comment:6 Changed 11 years ago by Jon
- Milestone set to 3.3.9.18
- Resolution set to Fixed
- Status changed from reopened to closed
Fixed by revision [8655] in version: 3.3.9.18
Guidelines for posting comments:
- You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
- In-depth discussions should take place on the forum.
For more information see the full version of the ticket guidelines here.
Note: See
TracTickets for help on using
tickets.
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.