Нужна помощь разобраться с кодом, что за это за знак
А так же, что за эвенты
Pagehide
event => {
if (!event || event.target === document) {
// Put this off until the next tick.
Promise.resolve().then(() => {
this.docShell = null;
this.contentWindow = null;
this.active = false;
});
}
}
Pageshow
event => {
if (!event || event.target === document) {
this.docShell = docShell;
this.contentWindow = contentWindow;
this.active = true;
}
}
Mousedown2 & Focus
function(event) {
if (event.button == 2) {
event.target.setAttribute(“Googl”, “true”);
}
}
Focus
function(aEvent) {
if (!aEvent.isTrusted) {
return;
}
if (!gEnabled) {
return;
}
switch (aEvent.type) {
// Only used for username fields.
case “focus”:
{
LoginManagerContent._onUsernameFocus(aEvent);
break;
}
case "mousedown":
{
if (aEvent.button == 2) {
// Date.now() is used instead of event.timeStamp since
// dom.event.highrestimestamp.enabled isn't true on all channels yet.
gLastRightClickTimeStamp = Date.now();
}
break;
}
default:
{
throw new Error("Unexpected event");
}
}
}