This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
Calling history.replaceState in data URI of an iframe causes error in Firefox and Edge #16900
Open
1 of 4 tasks
I'm submitting a ...
Current behavior:
When I use AngularJS 1.7.8 + ng-table 3.0.1 in an iframe that was loaded via data URI, I get errors in Firefox (NS_ERROR_FAILURE) and Edge (SecurityError). This is caused by calling history.replaceState in line 6630 of angular.js.
Expected / new behavior:
You should only execute history.replaceState if the script is not loaded within a data URI:
Minimal reproduction of the problem with instructions:
You can verify the different browser behavior with this demo:
https://jsfiddle.net/2rtq8ezx/
AngularJS version: 1.7.8
Browser: Firefox 69, Edge 44
Anything else:
This is an example of the error in Firefox:
The text was updated successfully, but these errors were encountered: