Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

iframe element is breaking live CSS loadingΒ #7935

Closed

Description

@ab7

After several hours of trying to figure out why my stylesheet was no longer updating in live dev, I narrowed it down to an embedded youtube iframe element. When the video is removed and the live session reset, everything works normally again. But when added, css is not updated and the color picker freezes resulting in many of these errors:

Uncaught TypeError: Cannot read property 'styleSheetId' of undefined
Assertion failed: Style Sheet for document not loaded: http://127.0.0.1:49871/main.css

Here is a screenshot of the error link.
screen shot 2014-05-25 at 12 46 47 pm

The source code I used to find out the problem was simply an html file with an <h1> and <iframe> element and a css file with only one color declaration on the <h1> element. I can provide the full source if necessary.

Brackets version: Sprint 39
OS: Mac 10.9.3 Mavericks
No extensions

Activity

  1. ichibangaijin commented on May 27, 2014

    @ichibangaijin

    Wow, good find. I have been struggling with this all weekend.

  2. risq commented on May 27, 2014

    @risq

    Thanks too, I had the same problem due to a Google Maps iframe. Simply resolved by commenting out the iframe :) Any fix planned ?

  3. ab7 commented on May 27, 2014

    @ab7
    Author

    Yeah, for now I've left the iframe videos out while I work. I'm setting up the dev environment to see if I can investigate a bit more.

  4. marcelgerber commented on May 28, 2014

    @marcelgerber
    Contributor

    Ah, I've seen the same thing while working on YouTube modals for brackets.io and wondered what could have caused this error message. Nice find.

  5. self-assigned this
    on Jun 2, 2014
  6. added this to the milestone on Jun 2, 2014
  7. njx commented on Jun 2, 2014

    @njx

    Medium priority to me for Release 41

  8. MarcoEsprimia commented on Jun 10, 2014

    @MarcoEsprimia

    I Love you man. I've been freaking out for 2 whole days after this.

    Btw any of you guys having any problems with @font face or google web fonts?

    Again, Thank you SO MUCH @ab7

  9. ab7 commented on Jun 12, 2014

    @ab7
    Author

    No problems with over here with fonts, google or face.

    In relation to the iframe problem, I did find that if you switch back and forth between the css file and another file it does reload the changes you made to the css file.

    I spent a bit of time looking over the brackets code and I'm excited to see the solution to this bug!

  10. peterflynn commented on Jul 7, 2014

    @peterflynn
    Member

    Note: this can happen in non-obvious ways if you're using a JS library that creates iframes dynamically (e.g. Twitter or FB widgets, or in-page ads).

  11. assigned and unassigned on Jul 9, 2014
  12. njx commented on Jul 9, 2014

    @njx

    Reassigning to @redmunds, who's reviewing #8144 which should fix this.

  13. genericandy commented on Jul 11, 2014

    @genericandy

    Just encountered this one myself. nice work figuring out the source. I was able to comment out the iframe for now during my development cycle

  14. techsin commented on Jul 16, 2014

    @techsin

    same issue but no iframe...just added favicon and then it stopped working found out same error and even after removing only html is updating not css.

  15. peterflynn commented on Jul 17, 2014

    @peterflynn
    Member

    @techsin Please file a new issue, since that does not sound related to this one. If you're able to boil down your code to a simple test case where HTML updating still does not work, please provide the code -- that's the fastest way we'd be able to investigate the problem. Thanks!

  16. redmunds commented on Aug 6, 2014

    @redmunds
    Contributor

    @ab7 @ichibangaijin @genericandy This was fixed in pull request #8144 for Release 0.43.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions