Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-23750

trustContent=true throws Security sandbox violation runtime error when loading a swf file locally

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • Adobe Flex SDK 4.1 (Release)
    • None
    • mx: SWFLoader
    • None
    • Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. compile both app and run test file(subapp_loadtest.swf)
      2.
      3.

      Actual Results:

      SecurityError: Error #2142: Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property. file:///C|/work%5Fflex%5Fsdk/modules/src/subapp%5Floadtest.swf was attempting to load file:///C|/work%5Fflex%5Fsdk/modules/src/subapp3.swf.
      at flash.display::Loader/_load()
      at flash.display::Loader/load()
      at mx.controls::SWFLoader/loadContent()
      at mx.controls::SWFLoader/load()
      at mx.controls::SWFLoader/initializeHandler()
      at flash.events::EventDispatcher/dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at mx.core::UIComponent/dispatchEvent()
      at mx.core::UIComponent/set processedDescriptors()
      at mx.core::UIComponent/initializationComplete()
      at mx.core::UIComponent/initialize()
      at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()
      at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()
      at mx.core::Container/addChildAt()
      at mx.core::Container/addChild()
      at mx.core::Container/createComponentFromDescriptor()
      at mx.core::Container/createComponentsFromDescriptors()
      at mx.containers::Panel/createComponentsFromDescriptors()
      at mx.core::Container/createChildren()
      at mx.containers::Panel/createChildren()
      at mx.core::UIComponent/initialize()
      at mx.core::Container/initialize()
      at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()
      at mx.core::UIComponent/addChildAt()
      at spark.components::Group/addDisplayObjectToDisplayList()
      at spark.components::Group/http://www.adobe.com/2006/flex/mx/internal::elementAdded()
      at spark.components::Group/setMXMLContent()
      at spark.components::Group/set mxmlContent()
      at spark.components::SkinnableContainer/set mxmlContent()
      at spark.components::SkinnableContainer/createDeferredContent()
      at spark.components::SkinnableContainer/createContentIfNeeded()
      at spark.components::SkinnableContainer/createChildren()
      at mx.core::UIComponent/initialize()
      at spark.components::Application/initialize()
      at subapp_loadtest/initialize()

      Expected Results:

      no error.
      Workaround (if any):

      Attachments

        Activity

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: