Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Using AngularJS inside Firefox addon causes infinite $digest loop #7171

@dannysu

Description

@dannysu

Calls to history.replaceState errors out with:

Message: [Exception... "Failure"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: resource://jid1-1qqtvsfpouxjea-at-jetpack/angularjs-firefox-seed/data/angular-seed/bower_components/angular/angular.js :: Browser/self.url :: line 4409"  data: no]

Somehow because of that any angular app gets into an infinite $digest loop where $locationWatch always thinks the URL is changing.

It seems that history API when running on Firefox isn't usable. However, if I disable using history API by detecting !$window.addon, then angular is usable inside FF addon.

history: !!($window.history && $window.history.pushState && !(android < 4) && !boxee && !$window.addon),

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions