formly-js/angular-formly

Firefox: DOMException [SecurityError: "Permission denied to access property "constructor" on cross-origin object"

Opened this issue · 0 comments

I'm having an issue with Angular-Formly 8.4.1 which only occurs in Firefox (currently using 55.0.3). Chrome and Edge don't throw this exception:

Versions:

  • AngularJS: 1.6.6
  • Angular-Formly: 8.4.1
  • API-Check: 7.5.5
  • JQuery: 2.2.4

Exception:
DOMException [SecurityError: "Permission denied to access property "constructor" on cross-origin object"

code: 18 nsresult: 0x80530012 location: http://localhost:9000/jspm_packages/npm/api-check@7.5.5/dist/api-check.js:438] <div formly-field="" ng-repeat="field in fields " ng-if="!field.hide" class="formly-field ng-scope ng-isolate-scope" options="field" model="field.model || model" original-model="model" fields="fields" form="theFormlyForm" form-id="formly_5" form-state="options.formState" form-options="options" index="$index" data-ng-animate="1">

Stacktrace:

  • getArgDisplay api-check.js:438:8getDisplay
  • f/</a.consoleLog/< angular.js:14703:16
  • $ExceptionHandlerProvider/this.$get</< angular.js:11145:7
  • invokeLinkFn angular.js:10550:9
  • nodeLinkFn angular.js:9937:11
  • compositeLinkFn angular.js:9177:13
  • publicLinkFn angular.js:9042:30
  • lazyCompilation angular.js:9433:16
  • boundTranscludeFn angular.js:9220:16
  • controllersBoundTransclude angular.js:9987:20
  • ngIfWatchAction angular.js:27859:15
  • $digest angular.js:18264:23
  • $apply angular.js:18534:13
  • $$debounceViewValueCommit angular.js:29247:7
  • $setViewValue angular.js:29225:7
  • listener angular.js:25675:7
  • dispatch jquery.js:4736:16
  • add/elemData.handle jquery.js:4549:6

I'm displaying a form that contains a radiogroup and some input fields. When the radioGroup's value is changed, the onChange listener fetches new data from the backend and overwrites the current model with the new data, upon which the further input fields get populated.

Has anyone had this exception before?