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 6357023
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T23:05:03+00:00 2026-05-24T23:05:03+00:00

I am building a jQuery mobile app with phonegap. There is a issue of

  • 0

I am building a jQuery mobile app with phonegap.
There is a issue of Unsafe JavaScript attempt to access frame when I tried to access a page in iframe (Maybe webkit). Both of the framed page and parent page are at local,which is start with file:///.I know where is a question like this Unsafe JavaScript attempt to access frame in Google Chrome But I cannot passing the --allow-file-access-from-files switch at startup on my phone.And I also don’t want to deploy my app on internet.Is there any other option to solve this? It should be better that I don’t need to do any modification on the browser.Thanks.

  • 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-05-24T23:05:06+00:00Added an answer on May 24, 2026 at 11:05 pm

    I’m not sure if Webkit follows the same rules, but there is a precedent.

    https://developer.mozilla.org/en/Same-origin_policy_for_file%3a_URIs

    In Gecko 1.8 or earlier, any two file: URIs are considered to be
    same-origin. In other words, any HTML file on your local disk can
    read any other file on your local disk.

    Starting in Gecko 1.9, files are allowed to read only certain other
    files. Specifically, a file can read another file only if the parent
    directory of the originating file is an ancestor directory of the
    target file. Directories cannot be loaded this way, however.

    For example, if you have a file foo.html which accesses another file,
    bar.html, the load will succeed only if bar.html is either in the same
    directory as foo.html or in a directory contained within the same
    directory as foo.html.

    This policy affects anything that does same-origin checks, including
    XMLHttpRequest, XSLT, and XBL.

    For cross-window DOM access, each file is treated as a separate
    origin, with one exception: if a file is loaded from another file that
    would otherwise be able to load it following this same-origin policy,
    they are considered to have the same origin. This load can occur
    through a subframe, link, location set, call to window.open(), or the
    like.

    For example, if the file /home/user/foo.html is a frameset and one of
    the frames is /home/user/subdir/bar.html, the frame and frameset are
    considered to share the same origin. On the other hand, if the file
    /home/user/subdir/foo.html is a frameset and the frame is
    /home/user/bar.html, the frame and frameset are considered to have
    different origins.

    The new security.fileuri.strict_origin_policy preference, which
    defaults to true, can be set to false if the user doesn’t want to
    strictly enforce the same origin policy on file: URIs.

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

Sidebar

Related Questions

I'm building a mobile app using HTML, CSS, Javascript and jQuery. Is there a
I am currently building a game in phonegap using jQuery Mobile frame work. What
I am building a mobile app using jquery mobile and phonegap for both android
I'm building a mobile web app with jQuery Mobile and I have a problem.
I am building a mobile web app with Django and jQuery Mobile. My problem
I am building an app for mobiles, using jquery mobile framework. I want to
Info: I am using JQuery Mobile (in Phonegap) for building pages and navigating via
I'm in the process of building a mobile page (using jquery mobile) which requires
I'm building a mobile interface with JQuery Mobile for an already existing web app
I'm building a jquery mobile site and I'm have some problem with javascript.if the

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.