Author: max
Date: 2008-02-29 18:35:20 -0800 (Fri, 29 Feb 2008)
New Revision: 8146

Removed:
   openlaszlo/trunk/lps/includes/blank.html
Modified:
   openlaszlo/trunk/lps/includes/source/iframemanager.js
   openlaszlo/trunk/lps/includes/source/lzhistory.js
Log:
Change 20080229-maxcarlson-S by [EMAIL PROTECTED] on 2008-02-29 15:42:21 PST
    in /Users/maxcarlson/openlaszlo/trunk-clean
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Fix html frame support with SSL.

New Features:

Bugs Fixed: LPP-5532: Iframe in iframemanager.js causes unsecure items warning 
in IE with SSL turned on

Technical Reviewer: promanik
QA Reviewer: [EMAIL PROTECTED]
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details: Sending on behalf of Lorien with blank.html deleted from svn, and a 
minor typo fixed.

Need to initialize iframes that are used in the history mechanism and html tag 
to a value that will not be flagged as an unsecure item when the app is running 
with SSL.  When no initial source value is set on an iframe it defaults to 
about:blank, which in IE resolves to http://about:blank even if the container 
page protocol is https.

Setting the initial source to javascript:"" solves the problem.
This change adds this initialization to the iframemanager, and changes the 
mechanism used in lzhistory
to be the one described above as it is a simpler solution. Previously in 
lzhistory.js the iframe source 
was initialized to blank.html, which required a page called blank.html be 
available when the script
executes.
    

Tests: This can be tested by running the test case at 
lps/components/extensions/test/html-swf.jsp through
SSL in IE 6.0. Before this fix in in place you will get an unsecure content 
warning when the page loads.



Deleted: openlaszlo/trunk/lps/includes/blank.html

Modified: openlaszlo/trunk/lps/includes/source/iframemanager.js
===================================================================
--- openlaszlo/trunk/lps/includes/source/iframemanager.js       2008-03-01 
02:32:24 UTC (rev 8145)
+++ openlaszlo/trunk/lps/includes/source/iframemanager.js       2008-03-01 
02:35:20 UTC (rev 8146)
@@ -19,6 +19,8 @@
         if (name != "") Lz.__setAttr(i, 'name', name);
         this.__namebyid[id] = name;
 
+        Lz.__setAttr(iframe, 'src', 'javascript:""');
+
         if (appendto == null || appendto == "undefined") {
             appendto = document.body;
         }

Modified: openlaszlo/trunk/lps/includes/source/lzhistory.js
===================================================================
--- openlaszlo/trunk/lps/includes/source/lzhistory.js   2008-03-01 02:32:24 UTC 
(rev 8145)
+++ openlaszlo/trunk/lps/includes/source/lzhistory.js   2008-03-01 02:35:20 UTC 
(rev 8146)
@@ -44,7 +44,7 @@
             Lz.__setAttr(i, 'scrolling', 'no');
             Lz.__setAttr(i, 'width', '0');
             Lz.__setAttr(i, 'height', '0');
-            Lz.__setAttr(i, 'src', 'blank.html');
+            Lz.__setAttr(i, 'src', 'javascript:""');
             document.body.appendChild(i);
             i = document.getElementById('lzHistory');
             _this._iframe = i;


_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins

Reply via email to