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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T21:42:12+00:00 2026-05-16T21:42:12+00:00

I have a webapp embedding some flash content in an iframe. The flash part

  • 0

I have a webapp embedding some flash content in an iframe. The flash part is requesting access to the webcam. On firefox/mac os, user’s can’t click the allow button. This only happens when the page embedding the swf file is loaded in the iframe, it works fine when laded separately. Has anyone else faced a similar problem? Do you know any workarounds?

EDIT: For future reference: we were positioning some stuff via JS and we had positions using “half pixels” (e.g. 20.5px). Once we fixed that everything worked fine.

  • 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-16T21:42:12+00:00Added an answer on May 16, 2026 at 9:42 pm

    I found that this bug will also exist in situations when you use margin auto in CSS.

    For example, in a fixed width & center aligned layout its typical to use “margin: 0px auto;” to keep a content well centered. This seems to produce possible (likely) decimal left/right margins for the content well. That isn’t really a problem for Firefox.. it handles decimal pixel offsets just fine.

    But Flash widgets totally seem to freak out when their object container are positioned with decimal pixel values. At minimum, you cannot interact with the “Allow” button. To me, this seems to be the root cause of this bug you will see widely reported by many (as it pertains to FF atleast).

    As for why it only occurs in FF, I’m not entirely sure. On my OSX machine, Safari and Chrome don’t exhibit this behavior with flash objects. Perhaps all DOM elements in Webkit are rendered with rounded pixel offset values automatically?

    For Firefox, I implemented this workaround (useful for center aligned designs):

    $(document).ready( function() {
      repositionContentContainer();
    });
    
    function repositionContentContainer() {
      // this routine is a complete hack to work around the flash "Allow" button bug
      if ( $("#content").length > 0 ) {
    
        //Adjust the #content left-margin, since by default it likely isn't an int
        setLeftMargin();
        //If the User resizes the window, adjust the #content left-margin
        $(window).bind("resize", function() { setLeftMargin(); });
      }
    }
    
    function setLeftMargin() {
      var newWindowWidth = $(window).width();
      var mainWellWidth = $("#content").width();
      // create an integer based left_offset number
      var left_offset = parseInt((newWindowWidth - mainWellWidth)/2.0);
      if (left_offset < 0) { left_offset = 0; }
      $("#content").css("margin-left", left_offset);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a webapp I'm making that stores user information, and their preferences regarding
I have a webapp where users can create their account and use the service.
I've to evaluate some mobile technologies and have one question. We have webapp. It's
I have a webapp which has read/write/execute access to an aliased directory. When I
I have a webapp written with the Spring Framework, Velocity, and (in part) Spring
I have a webapp that I am in the middle of doing some load/performance
We have a webapp where people can upload various image file types and on
I have a webapp to be ran on Tomcat6/JbossAS 5 and, for versioning purposes,
I have a webapp that lists all of my artists, albums and songs when
I had the following idea: Say we have a webapp written using django which

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.