Technology Questions

Go Back   Technology Questions > Software Questions > Internet > Internet Explorer

Internet Explorer Discuss IE7 or any other IE version.

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 05-06-2007, 10:42 AM
Malcolm Ferguson
Newsgroup Contributor
 
Posts: n/a
Embedded IE7 browser object - breakage over previous versions duescript exception being thrown closing previously closed windows

We have an MFC app that embeds the WebBrowser ActiveX control. Starting
in IE7, we've been getting a scripting error due to an exception closing
a window that the user has already closed for pages that we display in
this WebBrowser control. This doesn't happen when the same page is
viewed in Internet Explorer 7, nor does it happen in either situation on
computers with IE5-6.

The following is a JavaScript example that recreates this situation:

var winName = "myWin";
var theURL = "http://www.microsoft.com";
var objWin = window.open(theURL, winName);

// User closes window manually

// For IE7 embedded, the following call will
// generate an exception and stop code execution
objWin.close();

This is a major change in the scripting engine and is breaking our app
for a lot of customers. The change in behaviour is unexpected, and
inconsistent considering it doesn't happen in Internet Explorer itself!

Is this a bug in IE? Or, is there some interface I can query for in C++
to reset the behaviour of the scripting engine to match that of previous
versions of IE or IE7 stand alone?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 05-06-2007, 10:42 AM
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Did you know… You can examine the exception object from the exception assistant? - #2 TPC General Questions 0 08-11-2008 10:30 AM
Did you know… You can examine the exception object from the exception assistant? - #2 TPC General Questions 0 08-11-2008 08:40 AM
Windows Vista keeps closing all opened windows when X closed Cbury36 Windows Vista 3 08-10-2007 01:00 PM
Embedded IE7 browser object - breakage over previous versions dueto URL escaping in BeforeNavigate event Malcolm Ferguson Internet Explorer 0 05-06-2007 10:42 AM
Delete previous Windows Vista versions? Orville Windows Vista 2 01-01-2007 09:48 PM


New To Technology Questions? Do You Need Help with Your Computer or Device? Do You Need Help with this site?

All times are GMT -8. The time now is 02:40 PM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0