From Richard.Hopper at netapp.com Mon Jun 17 14:16:13 2013 Content-Type: multipart/mixed; boundary="===============7413934508664845241==" MIME-Version: 1.0 From: Hopper, Richard To: devel at ovirt.org Subject: [Engine-devel] IE9 Issue with UI Plugin Date: Mon, 17 Jun 2013 18:16:03 +0000 Message-ID: --===============7413934508664845241== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable --_000_CDE4CAA25617rickyhnetappcom_ Content-Type: text/plain; charset=3D"us-ascii" Content-Transfer-Encoding: quoted-printable Hi Vojtech, I had previously sent you an email about IE9 compatibility where the proble= =3D m we were having was solved by omitting console logging when a console was = =3D unavailable (i.e. IE). However, it is looking like IE9 may have a bigger is= =3D sue with regards to the plugin framework. Now that we have gotten dialogs to open via dynamically inserted buttons wi= =3D thin RHEV tabs (for example, a NetApp button in the Storage tab), we can go= =3D through our whole process with the exception of closing the window. In all= =3D other browsers, our dialog will close as expected, but in IE the window re= =3D mains open. It can be closed by hitting the red "x" in the corner, but it a= =3D ppears the code in the frame itself cannot close the window, with a console= =3D message in the dev tools of IE9 showing an error of "'Math' is undefined".= =3D I've read up on this, and it seems like this is a very widespread error in= =3D Internet Explorer concerning the manner/order in which iframes are dynamic= =3D ally inserted. I've copied engine-devel in case anyone has similar issues/solutions, but i= =3D t seems as though we need some sort of clause in the plugin framework for I= =3D E when it comes to dynamic insertion of new windows. - Ricky Hopper --_000_CDE4CAA25617rickyhnetappcom_ Content-Type: text/html; charset=3D"us-ascii" Content-ID: <6646E7BF4E36D34C8F6BD9BF13E47974(a)hq.netapp.com> Content-Transfer-Encoding: quoted-printable
Hi Vojtech,

I had previously sent you an email about IE9 compatibility where the p= =3D roblem we were having was solved by omitting console logging when a console= =3D was unavailable (i.e. IE). However, it is looking like IE9 may have a bigg= =3D er issue with regards to the plugin framework.

Now that we have gotten dialogs to open via dynamically inserted butto= =3D ns within RHEV tabs (for example, a NetApp button in the Storage tab), we c= =3D an go through our whole process with the exception of closing the window. I= =3D n all other browsers, our dialog will close as expected, but in IE the window remains open. It can be close= =3D d by hitting the red "x" in the corner, but it appears the code i= =3D n the frame itself cannot close the window, with a console message in the d= =3D ev tools of IE9 showing an error of "'Math' is undefined". I've read up on this, and it seems like this is a very= =3D widespread error in Internet Explorer concerning the manner/order in which= =3D iframes are dynamically inserted. 

I've copied engine-devel in case anyone has similar issues/solutions, = =3D but it seems as though we need some sort of clause in the plugin framework = =3D for IE when it comes to dynamic insertion of new windows.

- Ricky Hopper
--_000_CDE4CAA25617rickyhnetappcom_-- --===============7413934508664845241== Content-Type: multipart/alternative MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="attachment.bin" LS1fMDAwX0NERTRDQUEyNTYxN3JpY2t5aG5ldGFwcGNvbV8KQ29udGVudC1UeXBlOiB0ZXh0L3Bs YWluOyBjaGFyc2V0PSJ1cy1hc2NpaSIKQ29udGVudC1UcmFuc2Zlci1FbmNvZGluZzogcXVvdGVk LXByaW50YWJsZQoKSGkgVm9qdGVjaCwKCkkgaGFkIHByZXZpb3VzbHkgc2VudCB5b3UgYW4gZW1h aWwgYWJvdXQgSUU5IGNvbXBhdGliaWxpdHkgd2hlcmUgdGhlIHByb2JsZT0KbSB3ZSB3ZXJlIGhh dmluZyB3YXMgc29sdmVkIGJ5IG9taXR0aW5nIGNvbnNvbGUgbG9nZ2luZyB3aGVuIGEgY29uc29s ZSB3YXMgPQp1bmF2YWlsYWJsZSAoaS5lLiBJRSkuIEhvd2V2ZXIsIGl0IGlzIGxvb2tpbmcgbGlr ZSBJRTkgbWF5IGhhdmUgYSBiaWdnZXIgaXM9CnN1ZSB3aXRoIHJlZ2FyZHMgdG8gdGhlIHBsdWdp biBmcmFtZXdvcmsuCgpOb3cgdGhhdCB3ZSBoYXZlIGdvdHRlbiBkaWFsb2dzIHRvIG9wZW4gdmlh IGR5bmFtaWNhbGx5IGluc2VydGVkIGJ1dHRvbnMgd2k9CnRoaW4gUkhFViB0YWJzIChmb3IgZ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sbHkgaW5zZXJ0ZWQuJm5ic3A7PC9kaXY+CjxkaXY+ PGJyPgo8L2Rpdj4KPGRpdj5JJ3ZlIGNvcGllZCBlbmdpbmUtZGV2ZWwgaW4gY2FzZSBhbnlvbmUg aGFzIHNpbWlsYXIgaXNzdWVzL3NvbHV0aW9ucywgPQpidXQgaXQgc2VlbXMgYXMgdGhvdWdoIHdl IG5lZWQgc29tZSBzb3J0IG9mIGNsYXVzZSBpbiB0aGUgcGx1Z2luIGZyYW1ld29yayA9CmZvciBJ RSB3aGVuIGl0IGNvbWVzIHRvIGR5bmFtaWMgaW5zZXJ0aW9uIG9mIG5ldyB3aW5kb3dzLjwvZGl2 Pgo8ZGl2Pjxicj4KPC9kaXY+CjxkaXY+LSBSaWNreSBIb3BwZXI8L2Rpdj4KPC9ib2R5Pgo8L2h0 bWw+CgotLV8wMDBfQ0RFNENBQTI1NjE3cmlja3lobmV0YXBwY29tXy0tCg== --===============7413934508664845241==-- From vszocs at redhat.com Wed Jun 19 05:54:19 2013 Content-Type: multipart/mixed; boundary="===============1916131653562793524==" MIME-Version: 1.0 From: Vojtech Szocs To: devel at ovirt.org Subject: Re: [Engine-devel] IE9 Issue with UI Plugin Date: Wed, 19 Jun 2013 05:54:16 -0400 Message-ID: <1796208617.20183450.1371635656569.JavaMail.root@redhat.com> In-Reply-To: CDE4CAA2.5617%rickyh@netapp.com --===============1916131653562793524== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Ricky, code running in the iframe (custom dialog content) can close the dialog in = the following way: 1, send message to your plugin to indicate the dialog needs to be closed: parent.postMessage('CloseMyDialog', '*'); 2, your plugin intercepts the message via MessageReceived function and clos= es the dialog: MessageReceived: function(data, sourceWindow) { switch (data) { case 'CloseMyDialog': window.alert('About to close dialog'); api.closeDialog('my-dialog'); break; } } If the above doesn't work for you, it could mean that: - MessageReceived function isn't invoked - make sure to have [*] before api= .register() call - api.closeDialog() function isn't working - in this case I need to fix it = for IE9 [*] accept message events from iframe (custom dialog content) origin api.options({ allowedMessageOrigins: 'http://nicedomain:8080' /* OR */ allowedMessageOrigins: ['http://nicedomain1:123', 'https://nicedoma= in2:345'] }); I'm going to investigate this issue on IE9 myself to see if the above code = is really working there. Vojtech ----- Original Message ----- > From: "Richard Hopper" > To: "Vojtech Szocs" > Cc: engine-devel(a)ovirt.org, "Christopher Morrissey" > Sent: Monday, June 17, 2013 8:16:03 PM > Subject: IE9 Issue with UI Plugin > = > Hi Vojtech, > = > I had previously sent you an email about IE9 compatibility where the prob= lem > we were having was solved by omitting console logging when a console was > unavailable (i.e. IE). However, it is looking like IE9 may have a bigger > issue with regards to the plugin framework. > = > Now that we have gotten dialogs to open via dynamically inserted buttons > within RHEV tabs (for example, a NetApp button in the Storage tab), we can > go through our whole process with the exception of closing the window. In > all other browsers, our dialog will close as expected, but in IE the wind= ow > remains open. It can be closed by hitting the red "x" in the corner, but = it > appears the code in the frame itself cannot close the window, with a cons= ole > message in the dev tools of IE9 showing an error of "'Math' is undefined". > I've read up on this, and it seems like this is a very widespread error in > Internet Explorer concerning the manner/order in which iframes are > dynamically inserted. > = > I've copied engine-devel in case anyone has similar issues/solutions, but= it > seems as though we need some sort of clause in the plugin framework for IE > when it comes to dynamic insertion of new windows. > = > - Ricky Hopper >=20 --===============1916131653562793524==-- From vszocs at redhat.com Wed Jun 19 09:19:45 2013 Content-Type: multipart/mixed; boundary="===============3836397454775346360==" MIME-Version: 1.0 From: Vojtech Szocs To: devel at ovirt.org Subject: Re: [Engine-devel] IE9 Issue with UI Plugin Date: Wed, 19 Jun 2013 09:19:44 -0400 Message-ID: <505179704.20246859.1371647984316.JavaMail.root@redhat.com> In-Reply-To: 1796208617.20183450.1371635656569.JavaMail.root@redhat.com --===============3836397454775346360== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable ------=3D_Part_20246857_85949410.1371647984315 Content-Type: text/plain; charset=3Dutf-8 Content-Transfer-Encoding: 7bit Hi Ricky, you were right, in IE9, postMessage listener (WebAdmin) didn't work properl= y, so I simplified it and verified that it now works in IE9, too: http://ge= rrit.ovirt.org/#/c/15888/ After applying above mentioned patch, everything should work as expected in= IE9. I've also attached "test-plugin" which I used for verification in IE9. Regards, Vojtech ----- Original Message ----- > From: "Vojtech Szocs" > To: "Richard Hopper" > Cc: engine-devel(a)ovirt.org, "Christopher Morrissey" > Sent: Wednesday, June 19, 2013 11:54:16 AM > Subject: Re: [Engine-devel] IE9 Issue with UI Plugin > = > Hi Ricky, > = > code running in the iframe (custom dialog content) can close the dialog in > the following way: > = > 1, send message to your plugin to indicate the dialog needs to be closed: > = > parent.postMessage('CloseMyDialog', '*'); > = > 2, your plugin intercepts the message via MessageReceived function and cl= oses > the dialog: > = > MessageReceived: function(data, sourceWindow) { > switch (data) { > case 'CloseMyDialog': > window.alert('About to close dialog'); > api.closeDialog('my-dialog'); > break; > } > } > = > If the above doesn't work for you, it could mean that: > - MessageReceived function isn't invoked - make sure to have [*] before > api.register() call > - api.closeDialog() function isn't working - in this case I need to fix it > for IE9 > = > [*] accept message events from iframe (custom dialog content) origin > = > api.options({ > allowedMessageOrigins: 'http://nicedomain:8080' > /* OR */ > allowedMessageOrigins: ['http://nicedomain1:123', > 'https://nicedomain2:345'] > }); > = > I'm going to investigate this issue on IE9 myself to see if the above cod= e is > really working there. > = > Vojtech > = > = > ----- Original Message ----- > > From: "Richard Hopper" > > To: "Vojtech Szocs" > > Cc: engine-devel(a)ovirt.org, "Christopher Morrissey" > > > > Sent: Monday, June 17, 2013 8:16:03 PM > > Subject: IE9 Issue with UI Plugin > > = > > Hi Vojtech, > > = > > I had previously sent you an email about IE9 compatibility where the > > problem > > we were having was solved by omitting console logging when a console was > > unavailable (i.e. IE). However, it is looking like IE9 may have a bigger > > issue with regards to the plugin framework. > > = > > Now that we have gotten dialogs to open via dynamically inserted buttons > > within RHEV tabs (for example, a NetApp button in the Storage tab), we = can > > go through our whole process with the exception of closing the window. = In > > all other browsers, our dialog will close as expected, but in IE the wi= ndow > > remains open. It can be closed by hitting the red "x" in the corner, bu= t it > > appears the code in the frame itself cannot close the window, with a > > console > > message in the dev tools of IE9 showing an error of "'Math' is undefine= d". > > I've read up on this, and it seems like this is a very widespread error= in > > Internet Explorer concerning the manner/order in which iframes are > > dynamically inserted. > > = > > I've copied engine-devel in case anyone has similar issues/solutions, b= ut > > it > > seems as though we need some sort of clause in the plugin framework for= IE > > when it comes to dynamic insertion of new windows. > > = > > - Ricky Hopper > > = > _______________________________________________ > Engine-devel mailing list > Engine-devel(a)ovirt.org > http://lists.ovirt.org/mailman/listinfo/engine-devel > = ------=3D_Part_20246857_85949410.1371647984315 Content-Type: application/x-compressed-tar; name=3Dtest-plugin.tar.gz Content-Disposition: attachment; filename=3Dtest-plugin.tar.gz Content-Transfer-Encoding: base64 H4sIAF2uwVEAA+2XXW/aMBSGuU1+hZeb0AnIN0gsRZraXeyiajV1mnZpEg/chjiKHSib+O+zE6cF tI5JK91Hz3PjOD62j318XieCcNEvCWdVmRDudI6BKxmNoqYchjulpuP53tAN/OEo8DuuF0S+10HR UbzZo+IClwh1lvwrS/jjdofa/1HEbvzVZojBXCyyJ5xDBXgYho/F33OD4X38/ZEn4x9FodtB7hP6 8CgvPP7xq/PLs+vPV++QCvrEjNuC4HQSO3VhxlOWrmXBk5IWAol1QU5tQe6Ec4OXuHlrT0zTWMqt xAVFp6jAJcnFoMiqGc3fFrRrq5Nmn7yRVtJiwApBWc6730zDwFnGViS9IJzjGbksqezCx8h+bZvG 5r5HSWaUC1LKLrLPR/o+p2KMvlR5okbqniA1VG3J52x1TnHGZl37Ws6KmordQ7UT/VRXlb1hOysy xemC5g8PjdeOMnYa437CcqEWpLan7Rm6bnGnRg3qB+mpYWx6yju9lA8kIXRJ0i03UyxwDzXp9onm KVtpx/mKimSOagP9ykgwJ8g+yxgnF2u9iHHdUq8zUQ3tQrdXVnsimZYE39bPG+WaubudOF13VTV2 mghO1KOOtNMcgz99OoFjs6f/Pzjtvz/HAf13w3C0pf+B1H/5FeCB/j8HP9X/X1D8VtjQthg1+rWq 5W3Q3gSMCy2L3T1J6ympV5q12RajvcvHjIuJWat5c0aRPqPSrtCtMc2LSjtrTSshWG6hJc4qWa1n 1BeBhVieZDS5PbV2vLaQM2mHeylCqPJ/cMNZfsQ5DuW/F4U6/10/8kYy//1A/i5A/j8DMlGtHC+I NUaWOguW/LaxqjJT9QNfRg//CnWn9hK5wmLejvZws1jm5v9NIgAAAAAAAAAAAAAAAAAAAAAAgL+I 733qUgIAKAAA ------=3D_Part_20246857_85949410.1371647984315-- --===============3836397454775346360== Content-Type: multipart/mixed MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="attachment.bin" LS0tLS0tPV9QYXJ0XzIwMjQ2ODU3Xzg1OTQ5NDEwLjEzNzE2NDc5ODQzMTUKQ29udGVudC1UeXBl OiB0ZXh0L3BsYWluOyBjaGFyc2V0PXV0Zi04CkNvbnRlbnQtVHJhbnNmZXItRW5jb2Rpbmc6IDdi aXQKCkhpIFJpY2t5LAoKeW91IHdlcmUgcmlnaHQsIGluIElFOSwgcG9zdE1lc3NhZ2UgbGlzdGVu ZXIgKFdlYkFkbWluKSBkaWRuJ3Qgd29yayBwcm9wZXJseSwgc28gSSBzaW1wbGlmaWVkIGl0IGFu ZCB2ZXJpZmllZCB0aGF0IGl0IG5vdyB3b3JrcyBpbiBJRTksIHRvbzogaHR0cDovL2dlcnJpdC5v dmlydC5vcmcvIy9jLzE1ODg4LwoKQWZ0ZXIgYXBwbHlpbmcgYWJvdmUgbWVudGlvbmVkIHBhdGNo LCBldmVyeXRoaW5nIHNob3VsZCB3b3JrIGFzIGV4cGVjdGVkIGluIElFOS4gSSd2ZSBhbHNvIGF0 dGFjaGVkICJ0ZXN0LXBsdWdpbiIgd2hpY2ggSSB1c2VkIGZvciB2ZXJpZmljYXRpb24gaW4gSUU5 LgoKUmVnYXJkcywKVm9qdGVjaAoKCi0tLS0tIE9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L28rcDJLTXZs UjVva2JxbmlBMVZHM0o1MngxVG5IR1psMzdXczZLbW9yZFE3VVQvVlJYbGIxaE95c3kKeGVtQzVn OFBqZGVPTW5ZYTQzN0NjcUVXcExhbjdSbTZibkduUmczcUIrbXBZV3g2eWp1OWxBOGtJWFJKMGkw M1V5eHdEelhwOW9ubQpLVnRweC9tS2ltU09hZ1A5eWtnd0o4Zyt5eGduRjJ1OWlISGRVcTh6VVEz dFFyZFhWbnNpbVpZRTM5YlBHK1dhdWJ1ZE9GMTNWVFYyCm1naE8xS09PdE5NY2d6OTlPb0ZqczZm L1B6anR2ei9IQWYxM3czQzBwZitCMUgvNUZlQ0IvajhIUDlYL1gxRDhWdGpRdGhnMStyV3EKNVcz UTNnU01DeTJMM1QxSjZ5bXBWNXExMlJhanZjdkhqSXVKV2F0NWMwYVJQcVBTcnRDdE1jMkxTanRy VFNzaFdHNmhKYzRxV2ExbgoxQmVCaFZpZVpEUzVQYlYydkxhUU0ybUhleWxDcVBKL2NNTlpmc1E1 RHVXL0Y0VTYvMTAvOGtZeS8vMUEvaTVBL2o4RE1sR3RIQytJCk5VYVdPZ3VXL0xheHFqSlQ5UU5m UmcvL0NuV245aEs1d21MZWp2WndzMWptNXY5TklnQUFBQUFBQUFBQUFBQUFBQUFBQUFBQWdMK0kK NzMzcVVnSUFLQUFBCi0tLS0tLT1fUGFydF8yMDI0Njg1N184NTk0OTQxMC4xMzcxNjQ3OTg0MzE1 LS0K --===============3836397454775346360==-- From Christopher.Morrissey at netapp.com Wed Jun 19 10:44:09 2013 Content-Type: multipart/mixed; boundary="===============7960304558541719054==" MIME-Version: 1.0 From: Morrissey, Christopher To: devel at ovirt.org Subject: Re: [Engine-devel] IE9 Issue with UI Plugin Date: Wed, 19 Jun 2013 14:44:08 +0000 Message-ID: In-Reply-To: 1796208617.20183450.1371635656569.JavaMail.root@redhat.com --===============7960304558541719054== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Thanks for the patch, Vojtech. I'm testing it out now. -Chris > -----Original Message----- > From: Vojtech Szocs [mailto:vszocs(a)redhat.com] > Sent: Wednesday, June 19, 2013 5:54 AM > To: Hopper, Richard > Cc: engine-devel(a)ovirt.org; Morrissey, Christopher > Subject: Re: IE9 Issue with UI Plugin > = > Hi Ricky, > = > code running in the iframe (custom dialog content) can close the dialog i= n the > following way: > = > 1, send message to your plugin to indicate the dialog needs to be closed: > = > parent.postMessage('CloseMyDialog', '*'); > = > 2, your plugin intercepts the message via MessageReceived function and > closes the dialog: > = > MessageReceived: function(data, sourceWindow) { > switch (data) { > case 'CloseMyDialog': > window.alert('About to close dialog'); > api.closeDialog('my-dialog'); > break; > } > } > = > If the above doesn't work for you, it could mean that: > - MessageReceived function isn't invoked - make sure to have [*] before > api.register() call > - api.closeDialog() function isn't working - in this case I need to fix i= t for IE9 > = > [*] accept message events from iframe (custom dialog content) origin > = > api.options({ > allowedMessageOrigins: 'http://nicedomain:8080' > /* OR */ > allowedMessageOrigins: ['http://nicedomain1:123', > 'https://nicedomain2:345'] > }); > = > I'm going to investigate this issue on IE9 myself to see if the above cod= e is > really working there. > = > Vojtech > = > = > ----- Original Message ----- > > From: "Richard Hopper" > > To: "Vojtech Szocs" > > Cc: engine-devel(a)ovirt.org, "Christopher Morrissey" > > > > Sent: Monday, June 17, 2013 8:16:03 PM > > Subject: IE9 Issue with UI Plugin > > > > Hi Vojtech, > > > > I had previously sent you an email about IE9 compatibility where the > > problem we were having was solved by omitting console logging when a > > console was unavailable (i.e. IE). However, it is looking like IE9 may > > have a bigger issue with regards to the plugin framework. > > > > Now that we have gotten dialogs to open via dynamically inserted > > buttons within RHEV tabs (for example, a NetApp button in the Storage > > tab), we can go through our whole process with the exception of > > closing the window. In all other browsers, our dialog will close as > > expected, but in IE the window remains open. It can be closed by > > hitting the red "x" in the corner, but it appears the code in the > > frame itself cannot close the window, with a console message in the dev > tools of IE9 showing an error of "'Math' is undefined". > > I've read up on this, and it seems like this is a very widespread > > error in Internet Explorer concerning the manner/order in which > > iframes are dynamically inserted. > > > > I've copied engine-devel in case anyone has similar issues/solutions, > > but it seems as though we need some sort of clause in the plugin > > framework for IE when it comes to dynamic insertion of new windows. > > > > - Ricky Hopper > > --===============7960304558541719054==-- From Richard.Hopper at netapp.com Wed Jun 19 15:39:52 2013 Content-Type: multipart/mixed; boundary="===============2186063389511366060==" MIME-Version: 1.0 From: Hopper, Richard To: devel at ovirt.org Subject: Re: [Engine-devel] IE9 Issue with UI Plugin Date: Wed, 19 Jun 2013 19:39:50 +0000 Message-ID: In-Reply-To: 505179704.20246859.1371647984316.JavaMail.root@redhat.com --===============2186063389511366060== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Vojtech, I've tested the new patch and for some reason am still running into problems, though there are different exceptions now. I'll let you know if we figure out what specifically is going on. It does work if dev tools are up, but if there are no developer tools available the window will still not close. - Ricky On 6/19/13 9:19 AM, "Vojtech Szocs" wrote: >Hi Ricky, > >you were right, in IE9, postMessage listener (WebAdmin) didn't work >properly, so I simplified it and verified that it now works in IE9, too: >http://gerrit.ovirt.org/#/c/15888/ > >After applying above mentioned patch, everything should work as expected >in IE9. I've also attached "test-plugin" which I used for verification in >IE9. > >Regards, >Vojtech > > >----- Original Message ----- >> From: "Vojtech Szocs" >> To: "Richard Hopper" >> Cc: engine-devel(a)ovirt.org, "Christopher Morrissey" >> >> Sent: Wednesday, June 19, 2013 11:54:16 AM >> Subject: Re: [Engine-devel] IE9 Issue with UI Plugin >> = >> Hi Ricky, >> = >> code running in the iframe (custom dialog content) can close the dialog >>in >> the following way: >> = >> 1, send message to your plugin to indicate the dialog needs to be >>closed: >> = >> parent.postMessage('CloseMyDialog', '*'); >> = >> 2, your plugin intercepts the message via MessageReceived function and >>closes >> the dialog: >> = >> MessageReceived: function(data, sourceWindow) { >> switch (data) { >> case 'CloseMyDialog': >> window.alert('About to close dialog'); >> api.closeDialog('my-dialog'); >> break; >> } >> } >> = >> If the above doesn't work for you, it could mean that: >> - MessageReceived function isn't invoked - make sure to have [*] before >> api.register() call >> - api.closeDialog() function isn't working - in this case I need to fix >>it >> for IE9 >> = >> [*] accept message events from iframe (custom dialog content) origin >> = >> api.options({ >> allowedMessageOrigins: 'http://nicedomain:8080' >> /* OR */ >> allowedMessageOrigins: ['http://nicedomain1:123', >> 'https://nicedomain2:345'] >> }); >> = >> I'm going to investigate this issue on IE9 myself to see if the above >>code is >> really working there. >> = >> Vojtech >> = >> = >> ----- Original Message ----- >> > From: "Richard Hopper" >> > To: "Vojtech Szocs" >> > Cc: engine-devel(a)ovirt.org, "Christopher Morrissey" >> > >> > Sent: Monday, June 17, 2013 8:16:03 PM >> > Subject: IE9 Issue with UI Plugin >> > = >> > Hi Vojtech, >> > = >> > I had previously sent you an email about IE9 compatibility where the >> > problem >> > we were having was solved by omitting console logging when a console >>was >> > unavailable (i.e. IE). However, it is looking like IE9 may have a >>bigger >> > issue with regards to the plugin framework. >> > = >> > Now that we have gotten dialogs to open via dynamically inserted >>buttons >> > within RHEV tabs (for example, a NetApp button in the Storage tab), >>we can >> > go through our whole process with the exception of closing the >>window. In >> > all other browsers, our dialog will close as expected, but in IE the >>window >> > remains open. It can be closed by hitting the red "x" in the corner, >>but it >> > appears the code in the frame itself cannot close the window, with a >> > console >> > message in the dev tools of IE9 showing an error of "'Math' is >>undefined". >> > I've read up on this, and it seems like this is a very widespread >>error in >> > Internet Explorer concerning the manner/order in which iframes are >> > dynamically inserted. >> > = >> > I've copied engine-devel in case anyone has similar issues/solutions, >>but >> > it >> > seems as though we need some sort of clause in the plugin framework >>for IE >> > when it comes to dynamic insertion of new windows. >> > = >> > - Ricky Hopper >> > = >> _______________________________________________ >> Engine-devel mailing list >> Engine-devel(a)ovirt.org >> http://lists.ovirt.org/mailman/listinfo/engine-devel >> = --===============2186063389511366060==-- From vszocs at redhat.com Fri Jun 28 11:10:36 2013 Content-Type: multipart/mixed; boundary="===============4134363356890735083==" MIME-Version: 1.0 From: Vojtech Szocs To: devel at ovirt.org Subject: Re: [Engine-devel] IE9 Issue with UI Plugin Date: Fri, 28 Jun 2013 11:10:34 -0400 Message-ID: <1386820619.3136967.1372432234517.JavaMail.root@redhat.com> In-Reply-To: CDE780A4.56D4%rickyh@netapp.com --===============4134363356890735083== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Ricky, did you manage to solve the issue related with IE dev tools? If there are s= till issues pointing to UI plugin infrastructure, please let me know. Regards, Vojtech ----- Original Message ----- > From: "Richard Hopper" > To: "Vojtech Szocs" > Cc: engine-devel(a)ovirt.org, "Christopher Morrissey" > Sent: Wednesday, June 19, 2013 9:39:50 PM > Subject: Re: [Engine-devel] IE9 Issue with UI Plugin > = > Hi Vojtech, > = > I've tested the new patch and for some reason am still running into > problems, though there are different exceptions now. I'll let you know if > we figure out what specifically is going on. It does work if dev tools are > up, but if there are no developer tools available the window will still > not close. > = > - Ricky > = > On 6/19/13 9:19 AM, "Vojtech Szocs" wrote: > = > >Hi Ricky, > > > >you were right, in IE9, postMessage listener (WebAdmin) didn't work > >properly, so I simplified it and verified that it now works in IE9, too: > >http://gerrit.ovirt.org/#/c/15888/ > > > >After applying above mentioned patch, everything should work as expected > >in IE9. I've also attached "test-plugin" which I used for verification in > >IE9. > > > >Regards, > >Vojtech > > > > > >----- Original Message ----- > >> From: "Vojtech Szocs" > >> To: "Richard Hopper" > >> Cc: engine-devel(a)ovirt.org, "Christopher Morrissey" > >> > >> Sent: Wednesday, June 19, 2013 11:54:16 AM > >> Subject: Re: [Engine-devel] IE9 Issue with UI Plugin > >> = > >> Hi Ricky, > >> = > >> code running in the iframe (custom dialog content) can close the dialog > >>in > >> the following way: > >> = > >> 1, send message to your plugin to indicate the dialog needs to be > >>closed: > >> = > >> parent.postMessage('CloseMyDialog', '*'); > >> = > >> 2, your plugin intercepts the message via MessageReceived function and > >>closes > >> the dialog: > >> = > >> MessageReceived: function(data, sourceWindow) { > >> switch (data) { > >> case 'CloseMyDialog': > >> window.alert('About to close dialog'); > >> api.closeDialog('my-dialog'); > >> break; > >> } > >> } > >> = > >> If the above doesn't work for you, it could mean that: > >> - MessageReceived function isn't invoked - make sure to have [*] before > >> api.register() call > >> - api.closeDialog() function isn't working - in this case I need to fix > >>it > >> for IE9 > >> = > >> [*] accept message events from iframe (custom dialog content) origin > >> = > >> api.options({ > >> allowedMessageOrigins: 'http://nicedomain:8080' > >> /* OR */ > >> allowedMessageOrigins: ['http://nicedomain1:123', > >> 'https://nicedomain2:345'] > >> }); > >> = > >> I'm going to investigate this issue on IE9 myself to see if the above > >>code is > >> really working there. > >> = > >> Vojtech > >> = > >> = > >> ----- Original Message ----- > >> > From: "Richard Hopper" > >> > To: "Vojtech Szocs" > >> > Cc: engine-devel(a)ovirt.org, "Christopher Morrissey" > >> > > >> > Sent: Monday, June 17, 2013 8:16:03 PM > >> > Subject: IE9 Issue with UI Plugin > >> > = > >> > Hi Vojtech, > >> > = > >> > I had previously sent you an email about IE9 compatibility where the > >> > problem > >> > we were having was solved by omitting console logging when a console > >>was > >> > unavailable (i.e. IE). However, it is looking like IE9 may have a > >>bigger > >> > issue with regards to the plugin framework. > >> > = > >> > Now that we have gotten dialogs to open via dynamically inserted > >>buttons > >> > within RHEV tabs (for example, a NetApp button in the Storage tab), > >>we can > >> > go through our whole process with the exception of closing the > >>window. In > >> > all other browsers, our dialog will close as expected, but in IE the > >>window > >> > remains open. It can be closed by hitting the red "x" in the corner, > >>but it > >> > appears the code in the frame itself cannot close the window, with a > >> > console > >> > message in the dev tools of IE9 showing an error of "'Math' is > >>undefined". > >> > I've read up on this, and it seems like this is a very widespread > >>error in > >> > Internet Explorer concerning the manner/order in which iframes are > >> > dynamically inserted. > >> > = > >> > I've copied engine-devel in case anyone has similar issues/solutions, > >>but > >> > it > >> > seems as though we need some sort of clause in the plugin framework > >>for IE > >> > when it comes to dynamic insertion of new windows. > >> > = > >> > - Ricky Hopper > >> > = > >> _______________________________________________ > >> Engine-devel mailing list > >> Engine-devel(a)ovirt.org > >> http://lists.ovirt.org/mailman/listinfo/engine-devel > >> = > = >=20 --===============4134363356890735083==-- From Richard.Hopper at netapp.com Fri Jun 28 13:24:59 2013 Content-Type: multipart/mixed; boundary="===============7611555711654144447==" MIME-Version: 1.0 From: Hopper, Richard To: devel at ovirt.org Subject: Re: [Engine-devel] IE9 Issue with UI Plugin Date: Fri, 28 Jun 2013 17:24:57 +0000 Message-ID: In-Reply-To: 1386820619.3136967.1372432234517.JavaMail.root@redhat.com --===============7611555711654144447== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Vojtech, It actually turned out that our particular problem was hidden within our code, so once we found it, the plugin worked fine with IE9. It was actually related to the lack of console in the browser as well, I just didn't realize we called native javascript in multiple places. It seems that the plugin architecture's compatibility with IE9 is quite solid. Thank you once again! - Ricky On 6/28/13 11:10 AM, "Vojtech Szocs" wrote: >Hi Ricky, > >did you manage to solve the issue related with IE dev tools? If there are >still issues pointing to UI plugin infrastructure, please let me know. > >Regards, >Vojtech > > >----- Original Message ----- >> From: "Richard Hopper" >> To: "Vojtech Szocs" >> Cc: engine-devel(a)ovirt.org, "Christopher Morrissey" >> >> Sent: Wednesday, June 19, 2013 9:39:50 PM >> Subject: Re: [Engine-devel] IE9 Issue with UI Plugin >> = >> Hi Vojtech, >> = >> I've tested the new patch and for some reason am still running into >> problems, though there are different exceptions now. I'll let you know >>if >> we figure out what specifically is going on. It does work if dev tools >>are >> up, but if there are no developer tools available the window will still >> not close. >> = >> - Ricky >> = >> On 6/19/13 9:19 AM, "Vojtech Szocs" wrote: >> = >> >Hi Ricky, >> > >> >you were right, in IE9, postMessage listener (WebAdmin) didn't work >> >properly, so I simplified it and verified that it now works in IE9, >>too: >> >http://gerrit.ovirt.org/#/c/15888/ >> > >> >After applying above mentioned patch, everything should work as >>expected >> >in IE9. I've also attached "test-plugin" which I used for verification >>in >> >IE9. >> > >> >Regards, >> >Vojtech >> > >> > >> >----- Original Message ----- >> >> From: "Vojtech Szocs" >> >> To: "Richard Hopper" >> >> Cc: engine-devel(a)ovirt.org, "Christopher Morrissey" >> >> >> >> Sent: Wednesday, June 19, 2013 11:54:16 AM >> >> Subject: Re: [Engine-devel] IE9 Issue with UI Plugin >> >> = >> >> Hi Ricky, >> >> = >> >> code running in the iframe (custom dialog content) can close the >>dialog >> >>in >> >> the following way: >> >> = >> >> 1, send message to your plugin to indicate the dialog needs to be >> >>closed: >> >> = >> >> parent.postMessage('CloseMyDialog', '*'); >> >> = >> >> 2, your plugin intercepts the message via MessageReceived function >>and >> >>closes >> >> the dialog: >> >> = >> >> MessageReceived: function(data, sourceWindow) { >> >> switch (data) { >> >> case 'CloseMyDialog': >> >> window.alert('About to close dialog'); >> >> api.closeDialog('my-dialog'); >> >> break; >> >> } >> >> } >> >> = >> >> If the above doesn't work for you, it could mean that: >> >> - MessageReceived function isn't invoked - make sure to have [*] >>before >> >> api.register() call >> >> - api.closeDialog() function isn't working - in this case I need to >>fix >> >>it >> >> for IE9 >> >> = >> >> [*] accept message events from iframe (custom dialog content) origin >> >> = >> >> api.options({ >> >> allowedMessageOrigins: 'http://nicedomain:8080' >> >> /* OR */ >> >> allowedMessageOrigins: ['http://nicedomain1:123', >> >> 'https://nicedomain2:345'] >> >> }); >> >> = >> >> I'm going to investigate this issue on IE9 myself to see if the above >> >>code is >> >> really working there. >> >> = >> >> Vojtech >> >> = >> >> = >> >> ----- Original Message ----- >> >> > From: "Richard Hopper" >> >> > To: "Vojtech Szocs" >> >> > Cc: engine-devel(a)ovirt.org, "Christopher Morrissey" >> >> > >> >> > Sent: Monday, June 17, 2013 8:16:03 PM >> >> > Subject: IE9 Issue with UI Plugin >> >> > = >> >> > Hi Vojtech, >> >> > = >> >> > I had previously sent you an email about IE9 compatibility where >>the >> >> > problem >> >> > we were having was solved by omitting console logging when a >>console >> >>was >> >> > unavailable (i.e. IE). However, it is looking like IE9 may have a >> >>bigger >> >> > issue with regards to the plugin framework. >> >> > = >> >> > Now that we have gotten dialogs to open via dynamically inserted >> >>buttons >> >> > within RHEV tabs (for example, a NetApp button in the Storage tab), >> >>we can >> >> > go through our whole process with the exception of closing the >> >>window. In >> >> > all other browsers, our dialog will close as expected, but in IE >>the >> >>window >> >> > remains open. It can be closed by hitting the red "x" in the >>corner, >> >>but it >> >> > appears the code in the frame itself cannot close the window, with >>a >> >> > console >> >> > message in the dev tools of IE9 showing an error of "'Math' is >> >>undefined". >> >> > I've read up on this, and it seems like this is a very widespread >> >>error in >> >> > Internet Explorer concerning the manner/order in which iframes are >> >> > dynamically inserted. >> >> > = >> >> > I've copied engine-devel in case anyone has similar >>issues/solutions, >> >>but >> >> > it >> >> > seems as though we need some sort of clause in the plugin framework >> >>for IE >> >> > when it comes to dynamic insertion of new windows. >> >> > = >> >> > - Ricky Hopper >> >> > = >> >> _______________________________________________ >> >> Engine-devel mailing list >> >> Engine-devel(a)ovirt.org >> >> http://lists.ovirt.org/mailman/listinfo/engine-devel >> >> = >> = >> = >_______________________________________________ >Engine-devel mailing list >Engine-devel(a)ovirt.org >http://lists.ovirt.org/mailman/listinfo/engine-devel --===============7611555711654144447==--