搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Firefox Can’t Open This Page To protect your security, www.youtube.com will not allow Firefox to display the page if another site has embedded it. To see this page, you need to open it in a new window.

  • 7 个回答
  • 1 人有此问题
  • 1 次查看
  • 最后回复者为 cor-el

more options

My web page (HTML) has one embedded video (my own, uploaded to YouTube). The embedding code line is ...

  • <iframe title="YouTube video player" width="480" height="390" src="https://youtu.be/pj3d3fOlr-A" frameborder="0" allowfullscreen></iframe>

  • and the error/warning I get when I open my page isL

    Firefox Can’t Open This Page To protect your security, www.youtube.com will not allow Firefox to display the page if another site has embedded it. To see this page, you need to open it in a new window.

    How do I fix this issue, please? Thank you Regards Fred James

    My web page (HTML) has one embedded video (my own, uploaded to YouTube). The embedding code line is ... <li><P><iframe title="YouTube video player" width="480" height="390" src="https://youtu.be/pj3d3fOlr-A" frameborder="0" allowfullscreen></iframe></p></li> and the error/warning I get when I open my page isL Firefox Can’t Open This Page To protect your security, www.youtube.com will not allow Firefox to display the page if another site has embedded it. To see this page, you need to open it in a new window. How do I fix this issue, please? Thank you Regards Fred James
    已附加屏幕截图

    所有回复 (7)

    more options

    Try this embed code:

    <iframe width="480" height="390" src="https://www.youtube.com/embed/pj3d3fOlr-A" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

    由cor-el于修改

    more options

    Sorry ... did not work for me ... it changed the size of the place for the embedded video, but still have the same error. Regards Fred James

    more options

    Can you post a link to a publicly accessible page (i.e. no authentication or signing on required)?

    You can also attach a screenshot that shows the iframe code in the Inspector.

    It works for me as you can see in the screenshot (I used the Inspector to inject the code in that reply).

    more options

    If you use extensions ("3-bar" menu button or Tools -> Add-ons -> Extensions) that can block content (Adblock Plus, NoScript, DuckDuckGo PE, Disconnect, Ghostery, Privacy Badger, uBlock Origin) always make sure such extensions do not block content.

    Firefox shows a purple shield instead of a gray shield at the left end of the location/address bar in case Enhanced Tracking Protection is blocking content. You can click shield icon for more detail and possibly disable the protection. You can check the Web Console for related messages about blocked content.

    more options

    You can try these steps in case of issues with webpages:

    You can reload webpage(s) and bypass the cache to refresh possibly outdated or corrupted files.

    • hold down the Shift key and left-click the Reload button
    • press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    • press "Command + Shift + R" (Mac)

    Clear the Cache and remove the Cookies for websites that cause problems via the "3-bar" Firefox menu button (Settings).

    "Remove the Cookies" for websites that cause problems:

    • Settings -> Privacy & Security
      Cookies and Site Data: "Manage Data"

    "Clear the Cache":

    • Settings -> Privacy & Security
      Cookies and Site Data -> Clear Data -> Cached Web Content: Clear

    Start Firefox in Troubleshoot Mode to check if one of the extensions ("3-bar" menu button or Tools -> Add-ons -> Extensions) or if hardware acceleration or userChrome.css is causing the problem.

    • switch to the DEFAULT theme: "3-bar" menu button or Tools -> Add-ons -> Themes
    • do NOT click the "Refresh Firefox" button on the Troubleshoot Mode start window
    more options

    To your first reply: Inspector shows code for error, but I have added a screen shot of the section of code in question

    To your second reply: Can you confirm that the embedded video works properly for you when viewing my page (fredjame.net), please?

    I am currently testing on Firefox 78.11.0esr (64-bit), IceApe 2.49.4, and Chromium 89.0.4389.128

    Firefox and IceApe are both Mozilla and act the same, while on Chromium the embed is a gray area with a sad faced page icon in the middle and the message "www.youtube.com refused to connect" appears when the mouse travels across the gray area.

    more options

    The video doesn't work with the code you posted above. You need to change the src="https://youtu.be/pj3d3fOlr-A" as that wants to embed the YouTube website on the page you need to replace the iframe code on the page with the iframe code I posted above with src="https://www.youtube.com/embed/pj3d3fOlr-A" to make it possible to embed the YouTube player on a webpage.