Approved!

There is a permission error that is generated whenever you load a url from another domain. For example, when I enter http://openlaszlo.org in the field and click the Load button, I get 2 errors:


Error: Permission denied for <http://localhost:8080> to get property Window.eval from <http://openlaszlo.org>.
http://localhost:8080/trunk/lps/includes/iframemanager.js
Line 370

Permission denied for <http://localhost:8080> to get property Location.href from <http://openlaszlo.org>.
http://localhost:8080/trunk/lps/includes/iframemanager.js
Line 335


The first reported error is caught by the code, but the second error is not caught (in iframemanager __gotload). I created a jira bug, http://jira.openlaszlo.org/jira/browse/LPP-9601, for this.



On Wed, Dec 22, 2010 at 12:16 PM, Max Carlson wrote:

Change maxcarlson-20101222-qxe by maxcarl...@friendly on 2010-12-22 09:05:03 PST
    in /Users/maxcarlson/openlaszlo/trunk-clean
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Allow HTML component's iframe CSS to be styled

Bugs Fixed: LPP-9600 - Allow bgcolor of <html/> components to be set

Technical Reviewer: [email protected]
QA Reviewer: hminsky

Details: components/extensions/html - Mark setters and related events as private. Add missing events declarations. Add custom setter for bgcolor that sets the appropriate CSS style on the iframe. Add documentation for setStyle().

iframemanager - Shorten lookups. Allow setHTML() to take an empty string. Update lz.embed.iframemanager.setStyle() to set the iframe's style directly when the elementid arg is null. Use setStyle() in setVisible() and setZ(). Call setVisible() directly from setPosition().

examples/extensions/html.lzx - Add button that shows setting the iframe's style

Tests: See 'Set style' button in examples/extensions/html.lzx

Files:
M       lps/components/extensions/html.lzx
M       lps/includes/source/iframemanager.js
M       examples/extensions/html.lzx

Changeset: http://svn.openlaszlo.org/openlaszlo/patches/maxcarlson-20101222-qxe.tar

Reply via email to