Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTMLImports fails silently on Chrome 28.0.1500.95 (Debian , 64bit) #234

Closed
kaosat-dev opened this issue Aug 10, 2013 · 13 comments
Closed

HTMLImports fails silently on Chrome 28.0.1500.95 (Debian , 64bit) #234

kaosat-dev opened this issue Aug 10, 2013 · 13 comments

Comments

@kaosat-dev
Copy link

None of demos/ examples work, and neither do some of my experiments hosted locally : they all fail silently without any errors in the dev console.

I added some console.log debug messages to the "ready" callback , that don't get displayed either. (works fine on Firefox-Aurora).

Perhaps a hint? Even with "Show Shadow DOM" enabled, the custom elements are "empty" so to say.

@cfsghost
Copy link

It doesn't work on my environment(Debian Sid, 32-bit) as well. Chrome and Firefox both have the same HTMLImports problem.

@dfreedm
Copy link
Member

dfreedm commented Aug 12, 2013

By "hosted locally", do you mean that you're loading the html pages with "file://" urls?

@kaosat-dev
Copy link
Author

@azakus , no, I am using a simple web server , trying python's simplehttpServer and a Node Js one: http-server (https://github.com/nodeapps/http-server). Same result, sadly!

Edit: perhaps this might help as well :
If I enable logging of XMLHttpRequests , I can see all elements being loaded successfully, but no element is instantiated.

@dfreedm
Copy link
Member

dfreedm commented Aug 12, 2013

Can you give me a bit more information to try and reproduce? Top level directory that is being served and example directory structure would be great :)

@kaosat-dev
Copy link
Author

@azakus yeah, these "no error " bugs are tricky :) But no problem, give me a few minutes please, I'll push a simple example structure to github:)

@sjmiles
Copy link
Contributor

sjmiles commented Aug 12, 2013

"Page is blank" bugs are the worst!

@kaosat-dev
Copy link
Author

@sjmiles indeed: )

Ok , here is the repo : https://github.com/kaosat-dev/polymer-bugs
(barebones, just the "visitor-creds" example from the official site + polymer.min)

@dfreedm
Copy link
Member

dfreedm commented Aug 12, 2013

Seems to work for me.

Here's my setup

  • Root folder: inside polymer-bugs
  • python -m SimpleHTTPServer and localhost:8000
  • node node_modules/http-server/bin/http-server and localhost:8080
  • Chrome 28.0.1500.95 on Mac OS X 10.8.4

Both load "Hello my name is Scott2 Show:" with an abs-pos checkbox.

I don't think there's anything that would resolve differently w.r.t case sensitivity (the only big difference I can think of with using a Mac).

@kaosat-dev
Copy link
Author

Hmm yeah case sensitivity should not be an issue, and wow this is really strange, just tried it on another machine (also Debian Stable, 64bit) with chrome 28.0.1500.52 and it works fine!
Just trying to find what is different about the system where I am running into the problem: normally the "Enable Experimental JavaScript" and "Enable experimental WebKit features" flags should not cause issues with Polymer , right ? (Those are the only two enabled flags)

@dfreedm
Copy link
Member

dfreedm commented Aug 13, 2013

Well, Polymer does use a lot of the features enabled by those flags. However, nothing you've included in that test case strikes me as something that would be affected by the existence of Object.observe or WeakMap...

Thanks for noting the use of those flags!

@kaosat-dev
Copy link
Author

Bingo !
It is reproducible: it is indeed "caused" by the "Enable experimental WebKit features" flag !

@dfreedm
Copy link
Member

dfreedm commented Aug 13, 2013

Funky. I'm trying to remember what was even behind that flag in 28. Anyway, now that you've found the culprit, I'll close this bug. Thanks for the simple test case!

@dfreedm dfreedm closed this as completed Aug 13, 2013
@kaosat-dev
Copy link
Author

Thank you @azakus !
Hope I did not waste too much of your time on this one :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants