handleEvent no longer implemented in Gecko 18.

RESOLVED FIXED in 2013-06-13

Status

RESOLVED FIXED
6 years ago
6 years ago

People

(Reporter: lstowasser, Assigned: basta)

Tracking

2013-06-13
x86
Mac OS X
Points:
---

Details

(Reporter)

Description

6 years ago
When uploading a packaged app in a ZIP to the App Validator I'm getting a ton of errors saying:

`handleEvent` no longer implemented in Gecko 18.
Error: As of Gecko 18, objects with `handleEvent` methods may no longer be assigned to `on*` properties. Doing so will be equivalent to assigning `null` to the property.

Is this a recent change? It seems strange that developers can't use `onclick` or the like for packaged apps.
(Assignee)

Comment 1

6 years ago
Fixed and pushed yesterday.
Assignee: nobody → mattbasta
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2013-06-13
(Assignee)

Comment 2

6 years ago
A more detailed explanation:

The error being shown is a remnant of the amo-validator. The code wasn't originally deleted because it contains the logic to flag CSP violations. For instance, the following code will generate a warning:

document.body.onload = "foo()";

The default CSP for privileged packaged apps will (should) cause that code to fail.
You need to log in before you can comment on or make changes to this bug.