Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7807317
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T02:49:09+00:00 2026-06-02T02:49:09+00:00

My application engine runs inside a WebView. It spans different IFRAMES. Both the main

  • 0

My application engine runs inside a WebView. It spans different IFRAMES.
Both the main application html and the iframes html are on android_assets.
On Android 3.x no problems ever. Same on chrome browser, etc.

If I create an IFRAME (createElement -> appendChild) the iframe is created.

When I load stuff in it (iframe.src=”url” <> iframe.contentWindow.location.href=”url”) … IT REPLACES THE MAIN APPLICATION!! (instead of loading into iframe)

Already tried:

  • window.setTimeout to delay the loading… failed.
  • in webview, inject X-Frame-Options=SAME_ORIGIN as header into any loaded page -> failed
  • creating the iframe, setting sandbox=same_origin,allow_scripts -> failed

Anybody with similar problems? Or can someone help me find documentation about WebView ICS bugs vs Honeycomb?

Also found many other strange issues… is ICS really this buggy? :S :S

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T02:49:12+00:00Added an answer on June 2, 2026 at 2:49 am

    Sirs, I had the same problem when using Phonegap (Apache Cordova) and IFrames in Android Ice Cream Sandwich (4.0.3).

    To solve this problem, I had to edit Apache Cordova Source Code. I changed the org.apache.cordova.CordovaWebViewClient.java file, and commented this part of the code, and included the last line (return false;).

    So it now looks like this:

        // All else
        //        else {
        //
        //            // If our app or file:, then load into a new Cordova webview container by starting a new instance of our activity.
        //            // Our app continues to run.  When BACK is pressed, our app is redisplayed.
        //            if (url.startsWith("file://") || url.indexOf(this.ctx.baseUrl) == 0 || ctx.isUrlWhiteListed(url)) {
        //                this.ctx.loadUrl(url);
        //            }
        //
        //            // If not our application, let default viewer handle
        //            else {
        //                try {
        //                    Intent intent = new Intent(Intent.ACTION_VIEW);
        //                    intent.setData(Uri.parse(url));
        //                    ctx.startActivity(intent);
        //                } catch (android.content.ActivityNotFoundException e) {
        //                    LOG.e(TAG, "Error loading url "+url, e);
        //                }
        //            }
        //        }
        //        return true;
        return false;
    

    This problem only happens on Android ICS, but I changed the code for all my apps. I’m still doing tests.

    In my analysis, it seems that when you try to load a page inside a iFrame, the Android WebView on ICS interprets it as a new page request, and IT REPLACES THE MAIN APPLICATION!!, or in other words, it OPENS the requested page in the hole parent window.

    I left the rest of the code untouched.

    I hope it helps, like it did for me.

    Best regards.

    Alexandre Almeida

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My Wicket application runs fine on the live Google App Engine at /* <filter-mapping>
I have a python/django application that runs on the google app engine. My views.py
My Google App Engine application runs out of memory at about 100 MB. I
I am using the Google Application Engine plugin for Eclipse 3.4, and I have
how to move a Google Application Engine based website to Amazon platform? do i
Is it good idea to have application engine written in c++ and user interface
I'm developing a REST google app engine application. I want to know if it's
I get many normal log lines in my google app engine application. But today
My application is running on Google App Engine and most of requests constantly gets
For an application build on Spring MVC + Groovy + Google App Engine i

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.