我有一个Firefox插件,它在import {Component, OnInit} from '@angular/core'
interface FLChart{
date: string,
value: number
}
const dataOne: FLChart[] = [
{
date: "Jan",
value: 1507
},
{
date: "Feb",
value: 1600
},
{
date: "Mar",
value: 1281
},
{
date: "Apr",
value: 1898
},
{
date: "May",
value: 1749
},
{
date: "June",
value: 1270
},
{
date: "July",
value: 1712
},
{
date: "Aug",
value: 1270
},
{
date: "Sept",
value: 1257
},
{
date: "Oct",
value: 1257
},
{
date: "Nov",
value: 1277
},
{
date: "Dec",
value: 1057
},
{
date: "Jan",
value: 1007
},
{
date: "Feb",
value: 1000
},
{
date: "Mar",
value: 1010
},
{
date: "Apr",
value: 1098
},
{
date: "May",
value: 1049
},
{
date: "June",
value: 1070
},
{
date: "July",
value: 1012
},
{
date: "Aug",
value: 1070
},
{
date: "Sept",
value: 1057
},
{
date: "Oct",
value: 1057
},
{
date: "Nov",
value: 1077
},
{
date: "Dec",
value: 1057
}
]
@Component({
selector: 'my-app',
templateUrl: './app.component.html',
styleUrls: [ './app.component.css' ]
})
export class AppComponent {
lineOne = dataOne;
constructor() {}
}
脚本中具有全局onerror
处理程序,如下所示:
content.js
在其他任何网站上这似乎都不是问题。但是,当我尝试登录https://www.mint.com时,登录后它不会加载该页面。这仅在Firefox中发生,并且仅在此网站上发生(据我所知)。如果我注释掉window.onerror = error => {
console.log('On Error Handler');
console.log(error);
}
处理程序,它将起作用。
当页面无法加载时,我看到这两个错误:
onerror
有人遇到过这个问题吗?或者不知道为什么Error: Permission denied to access property "apply"
TypeError: window.ADRUM.events.VPageView is not a constructor
处理程序会引起问题吗?
这是我创建的一个简单的Firefox插件来测试该问题:ff-addon-example