wsv01 Posted September 12, 2018 Share Posted September 12, 2018 When I launch my application (stand alone test) using IE 11. I get the message The webpage you are viewing is trying to close the window. Do you want to close this window? When I launch it using Chrome, it just closes as soon as it starts. When I launch the server monitor, it runs normal for both browsers. It has to be something I am doing in the application that is causing this. Any ideas? Link to comment Share on other sites More sharing options...
GerhardV Posted September 13, 2018 Share Posted September 13, 2018 Check if you have any events on the main form and what it is doing. Set a breakpoint on all if any and determine a what stage it is trying to close. It is very difficult to tell if we do not see any code. Link to comment Share on other sites More sharing options...
wsv01 Posted September 13, 2018 Author Share Posted September 13, 2018 This morning I added debugging to my application so "see" exactly the steps it was taking. When run on my dev box, all works to plan. When I deploy the application to a customer server, things are not the same. When launched in IE 11, this message appears. The webpage you are viewing is trying to close the window. Do you want to close this window? If I answer Yes, the browser quits. If I answer No, the application runs as intended. I then launched Chrome and ran the same application, but when launched, Chrome simply closed with no message at all. So I opened Chrome and turned on debugging. (Ctrl+Shit+J), then launched the uniGUI app. This time, the app loaded as expected, but there was a warning message in the debug window of Scripts may close only the windows that were opened by it. Expanding the debug window I saw the line that caused the error. I pasted the top part of the debug text below. I looked on the web for solutions, but could not find anything that helped. <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>Vendor Requistion</title> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=10.0, user-scalable=yes"> <meta http-equiv="content-type" content="charset=utf-8"> <meta http-equiv="cache-control" content="no-cache"> <meta http-equiv="pragma" content="no-cache"> <meta http-equiv="expires" content="-1"> <link REL="SHORTCUT ICON" HREF="/cache/nas_vendreg_exe/IvxbEVfxWr1026C8C0C/favicon.ico"> <link rel=stylesheet href="/uni-1.50.0.1480/css/uni-ext.css" /> <link rel=stylesheet href="/ext-6.5.3/build/classic/theme-classic/resources/theme-classic-all.css" /> <script src="/ext-6.5.3/build/ext-all.js"></script> <script src="/ext-6.5.3/build/classic/theme-classic/theme-classic.js"></script> <script src="/uni-1.50.0.1480/ext-unicommon-min.js"></script> <script src="/uni-1.50.0.1480/ext-sync-min.js"></script> <script src="/uni-1.50.0.1480/jQuery/jquery-1.11.2.min.js"></script> <link rel=stylesheet href="/ext-6.5.3/build/packages/font-awesome/resources/font-awesome-all.css" /> <link rel=stylesheet href="/ext-6.5.3/build/packages/font-pictos/resources/font-pictos-all.css" /> <script src="/uni-1.50.0.1480/jQuery/MaskedInput/jquery.inputmask.min.js"></script> <script src="/uni-1.50.0.1480/jQuery/autoNumeric/autoNumeric-1.9.35.js"></script> <script src="/uni-1.50.0.1480/ext-treenode-plugin.js"></script> <script src="/uni-1.50.0.1480/unicanvas-min.js"></script> <link rel=stylesheet href="/uni-1.50.0.1480/css/uni-xtheme-common.css" /> <link rel=stylesheet href="/uni-1.50.0.1480/css/uni-xtheme-classic.css" /> <script src="/uni-1.50.0.1480/ext-unigui-min.js"></script> <style type="text/css">.x-viewport > .x-body {position:relative !important;}</style> <style type="text/css">body {overflow-y: hidden !important;}</style> </head> <script> window.close();;uniVars._extVer="6.5.3";_S_ID="_S_ID=IvxbEVfxWr1026C8C0C";Ext.Ajax.setTimeout(90000);uniSyncObj.errShow=true;uniSyncObj.errText="Connection Error";uniSyncObj.errRetryText="Retrying...";uniSyncObj.errTextColor="#0055AA";uniSyncObj.errAfterRetry=1;uniSyncObj.errLogTry=0x7ef4f2fa;uniSyncObj.licOwn="cmBucTtyZGlvYF5jKGRpXileamg=";uniSyncObj.srcArr="XJoHutVO"; Ext.application({name:"uniApplication",launch: function(){setTimeout(function(){Ext.get("loading").remove();Ext.get("loading-mask").fadeOut({remove:true});},250);Ext.BLANK_IMAGE_URL="/ext-6.5.3/build/classic/theme-classic/resources/images/tree/s.gif"; Ext.BLANK_IMAGE_SRC="<img src="+Ext.BLANK_IMAGE_URL+">"; TextMetrics=new Ext.util.TextMetrics(Ext.getBody()); Link to comment Share on other sites More sharing options...
GerhardV Posted September 13, 2018 Share Posted September 13, 2018 Not sure but might have to do with trusted sites: "Internet options - Security - Trusted sites - Sites Uncheck Require server verification (https:) for all sites in this zone Adding http://*.live.com fixed my problem." See this link: 1st one in search results with a Google searching for "The webpage you are viewing is trying to close the window." https://answers.microsoft.com/en-us/ie/forum/ie9-windows_7/ie9-how-do-i-disable-the-ie-popup-the-webpage-you/0451d034-90d7-4de9-8757-a00b24e55b82?page=2 You would need to add your domain as a trusted site for your customer. Link to comment Share on other sites More sharing options...
wsv01 Posted September 13, 2018 Author Share Posted September 13, 2018 I just found out another interesting thing. If I launch the app using a shortcut with my link in the URL field, I run into the error. http://localhost:8081/?id=95CD5F65341F311-4C80-986C-CFV807EB0B3S4EE59AEDWD6E4-4CC6-935A-F312DF2A7945 If I open Chrome, then paste the link into the URL, the app launches as expected. When I try the same thing using IE 11, I still get the same message of The webpage you are viewing is trying to close the window. Do you want to close this window? Link to comment Share on other sites More sharing options...
GerhardV Posted September 13, 2018 Share Posted September 13, 2018 You can also see this link...is definitely something with the browsers, don't think has anything to do with uniGUI. https://social.technet.microsoft.com/Forums/ie/en-US/db7ef036-e422-42e7-bcee-1a245b8cc80f/ie-11-the-webpage-you-are-viewing-is-trying-to-close-the-tab?forum=ieitprocurrentver BTW what is that query parameter for? What happens with just http://localhost:8081 ? Link to comment Share on other sites More sharing options...
wsv01 Posted September 13, 2018 Author Share Posted September 13, 2018 Hmmm. I tried resetting IE 11 and fooled with some security settings. I'll have to keep working on that. The encrypted string that is passing some startup parameters to the application. If they are not there, the app simply tells the user that they are not authorized to use the system and gives them no menu to select from. Link to comment Share on other sites More sharing options...
GerhardV Posted September 13, 2018 Share Posted September 13, 2018 May I ask why IE 11? It is not supported anymore in any case. What is happening when you use Edge? Link to comment Share on other sites More sharing options...
wsv01 Posted September 13, 2018 Author Share Posted September 13, 2018 I'll try on different browsers later today and let you know what I find. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now