Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

WebGL game not running on Firefox

Discussion in 'WebGL' started by josepmas, Jun 6, 2019.

  1. josepmas

    josepmas

    Joined:
    Nov 30, 2018
    Posts:
    18
    Hi everyone,

    I'm trying to execute a game on Firefox but it only shows a blue sky and not the game. Other web explorers like Chrome or Edge displays game correctly.

    Anyone knows which is the reason?

    Thanks.
     
  2. josepmas

    josepmas

    Joined:
    Nov 30, 2018
    Posts:
    18
    This is the only result I've seen when I open game with Firefox: skybox.png
     
  3. AlexHell

    AlexHell

    Joined:
    Oct 2, 2014
    Posts:
    167
    see console (F12) - may be warn\error exist
     
  4. josepmas

    josepmas

    Joined:
    Nov 30, 2018
    Posts:
    18
    This is what I can see in console, but I do not know which is the error:
    upload_2019-6-11_11-59-13.png
     
  5. josepmas

    josepmas

    Joined:
    Nov 30, 2018
    Posts:
    18
    On Firefox for Linux it runs correctly, but in Windows not
     
  6. arisdev82

    arisdev82

    Joined:
    Feb 27, 2019
    Posts:
    39
    Maybe cache not reloading? Did you try control+F5 or disabling it directly?

    Do you have the scene included in the build options?
     
  7. josepmas

    josepmas

    Joined:
    Nov 30, 2018
    Posts:
    18
    Yes, I tried both things and I tried it with another computer that never access to the website before and nothing.

    And yes, I have the scene included in the build options too.
     
  8. josepmas

    josepmas

    Joined:
    Nov 30, 2018
    Posts:
    18
    Anyone knows what I can do? I can't solve it
     
  9. Jeffrey-Scheidelaar

    Jeffrey-Scheidelaar

    Joined:
    Jan 7, 2016
    Posts:
    1
    Type this in the firefox searchbar about:config and search for
    security.fileuri.strict_origin_policy It is true by default, you can set it to false.

    "If you do development with local files and need to be able to retrieve other local files, you may need to set this preference to false. Otherwise, leaving it set to true offers the most security"

    Maybe this helps. at least it helped me.
     
  10. Karrma_

    Karrma_

    Joined:
    Dec 6, 2020
    Posts:
    1
    It's so helpful thank you a lot!
     
  11. atiwari1

    atiwari1

    Joined:
    Jan 10, 2019
    Posts:
    4
    In case anyone still looking..
    about:config => webgl.disabled=> set to false, then
    privacy.file_unique_origin => Setting it to false worked for me