dart-archive / polymer-dart

Polymer support for Dart
https://pub.dartlang.org/packages/polymer
BSD 3-Clause "New" or "Revised" License
181 stars 33 forks source link

Current shadow_dom package minimified version not working in firefox #142

Closed DartBot closed 9 years ago

DartBot commented 9 years ago

Originally opened as dart-lang/sdk#17644

This issue was originally filed by chandu.cs...@gmail.com


Issue dart-lang/sdk#1 :

Actual Result :

If i use <script src="packages/shadow_dom/shadow_dom.min.js"></script>,My Angular Dart App is not working in firefox ( but its working fine in chrome and safari) Firefox Version : 28 OS : Mac OSX(64bit) Dart SDK : 1.2

if i use <script src="packages/shadow_dom/shadow_dom.debug.js"></script> then app is working fine firefox too.

Expected Result : app should work in firefox with minimified version too

Issue2 :

In http://pub.dartlang.org/packages/shadow_dom description https://github.com/dart-lang/ShadowDOM/tree/conditional_shadowdom is dead link.

Issue1 stack trace :

Error : "listen ignoreClick=false" main.dart.js:36580 "NoSuchMethodError : method not found: 'Symbol("onHashChange")' Receiver: Instance of 'UnknownJavaScriptObject' Arguments: []

STACKTRACE: .wrapException<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:2687 .Interceptor.noSuchMethod$1<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:380 .Object.get$onHashChange@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:28458 .Router.listen$2$appRoot$ignoreClick<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:39777 .Router.listen$2$appRoot$ignoreClick<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:39788 .NgRoutingHelper.NgRoutingHelper$4<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:15478 .NgRoutingHelper.static.NgRoutingHelper$<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:15485 .JsMethodMirror._invoke$2<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:18740 .JsClassMirror._getInvokedInstance$3<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:18384 .JsClassMirror.newInstance$3<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:18387 .JsClassMirror.newInstance$3<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:18389 .DynamicInjector.newInstanceOf$4<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:36897 ._TypeProvider.get$4<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:36863 .InjectorgetInstanceByType_closure.call$0<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:36759 ._defaultCreationStrategy<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:36604 .Injector._getInstanceByType$2<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:36687 .Injector._getInstanceByType$2<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:36682 .Injector.get$1<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:36710 .NgViewDirective.static.NgViewDirective$<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:15252 .JsMethodMirror._invoke$2<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:18740 .JsClassMirror._getInvokedInstance$3<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:18384 .JsClassMirror.newInstance$3<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:18387 .JsClassMirror.newInstance$3<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:18389 .DynamicInjector.newInstanceOf$4<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:36897 ._TypeProvider.get$4<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:36863 .Injector__getInstanceByType_closure.call$0<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:36759 ._defaultCreationStrategy<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:36604 .Injector._getInstanceByType$2<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:36687 .Injector.get$1<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:36710 .BlockFactoryinstantiateDirectives_closure3.call$1<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:7219 .IterableMixinWorkaround_forEach<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:15864 .JSArray.forEach$1<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:542 J.forEach$1$ax@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:40778 .BlockFactory._instantiateDirectives$5<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:7038 .BlockFactory._link$4<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:6973 .BlockFactory._link$4<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:6975 .BlockFactory._link$4<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:6975 .BlockFactory.call$2<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:6941 .BlockFactory.call$2<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:6946 .BoundBlockFactory.blockFactory$1@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:6913 .BoundBlockFactory.call$1<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:6922 ._Case.blockFactory$1@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:14424 .NgSwitchDirective_value_closure0.call$1<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:14406 .IterableMixinWorkaround_forEach<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:15864 .JSArray.forEach$1<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:542 J.forEach$1$ax@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:40778 .NgSwitchDirective.set$value<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:14367 .CachedInvocation.invokeOn$2<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:3759 .JsInstanceMirror._invoke$4<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:17934 .JsInstanceMirror.setField$2<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:17938 .AccessReflective._eval_access$_assign$3<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:10506 .AccessScope.assign$2<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:10332 J.assign$2$x@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:40721 .DynamicExpression.assign$2<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:9665 J.assign$2$x@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:40721 .Compiler_createMappings___closure2.call$1<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:7764 .relaxFnArgs3_closure0.call$3<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:15680 ._Watch.fn$3@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:6432 .Scope._digestHandleDirty$5<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:5838 .Scope._digestComputeLastDirty$0<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:5801 .Scope._digestWhileDirtyLoop$0<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:5738 .Scope.$$digest$0<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:5724 .Scope._autoDigestOnTurnDone$0<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:5569 anonymous/<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:2935 ._rootRun<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:19282 ._ZoneDelegate.run$2<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:21603 .NgZone._finishTurn$2<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:6572 .NgZone._onRunBase$4<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:6544 .NgZone._onRunUnary$5<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:6551 anonymous/<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:2947 ._ZoneDelegate.runUnary$3<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:21610 ._CustomizedZone.runUnary$2<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:21792 ._BaseZone.runUnaryGuarded$2<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:21692 ._BaseZone_bindUnaryCallback_closure.call$1<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:21749 .invokeClosure_closure0.call$0<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:3995 ._IsolateContext.eval$1<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:1705 ._callInIsolate<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:1486 .invokeClosure<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:2828 .convertDartClosureToJS</$function</<@http://localhost:63342/RecipeBookAngularDart/build/main.dart.js:2845 "

DartBot commented 9 years ago

Comment by sgjesse


Added Area-Dart2JS, Triaged labels.

DartBot commented 9 years ago

Comment by floitschG


Removed Area-Dart2JS label. Added Area-Polymer label.

DartBot commented 9 years ago

Comment by vicb


shadow_dom has been deprecated, you should use web_components instead,

see (and vote for) https://code.google.com/p/dart/issues/detail?id=18080

DartBot commented 9 years ago

Comment by jmesserly


Removed Area-Polymer label. Added Pkg-Polymer, Area-Pkg labels.

DartBot commented 9 years ago

Comment by sigmundch


We have done several fixes for firefox specifically, so I expect this should now be working. Let us know if that's not the case.

As Victor mentioend, the code is now in the web_components package. Besides including packages/web_components/platform.js, you need to include packages/web_components/dart_support.js, which has the magic that makes platform.js work with Dart in FF.


Added AssumedStale label.