Bug 1520823 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

STR:

1. Apply the attached patch.
2. Build Firefox (debug build).
3. Open the attached file (test.html).
4. Open the Browser *Content* Toolbox and select the debugger tab.
5. Right-click the div and choose "Inspect Element."
6. Switch the Browser Content Toolbox to the content tab.

Actual:
listener.listenerObject is logged and contains a handleEvent property but when listener.listenerObject.handleEvent is logged it is undefined.

In the browser toolbox you can see the following warning:

```
WARNING: Silently denied access to property "handleEvent": value is callable
(@resource://devtools/server/actors/inspector/event-parsers.js:188:10): file
/builds/worker/workspace/build/src/js/xpconnect/wrappers/XrayWrapper.cpp,
line 223
```

Expected:

listener.listenerObject.handleEvent should be accessible.
STR:

1. Apply the attached patch (https://bugzilla.mozilla.org/attachment.cgi?id=9037276).
2. Build Firefox (debug build).
3. Open the attached file (test.html - https://bugzilla.mozilla.org/attachment.cgi?id=9037275).
4. Open the Browser *Content* Toolbox and select the debugger tab.
5. Right-click the div and choose "Inspect Element."
6. Switch the Browser Content Toolbox to the content tab.

Actual:

See screenshot (https://bugzilla.mozilla.org/attachment.cgi?id=9037277)

listener.listenerObject is logged and contains a handleEvent property but when listener.listenerObject.handleEvent is logged it is undefined.

In the browser toolbox you can see the following warning:

```
WARNING: Silently denied access to property "handleEvent": value is callable
(@resource://devtools/server/actors/inspector/event-parsers.js:188:10): file
/builds/worker/workspace/build/src/js/xpconnect/wrappers/XrayWrapper.cpp,
line 223
```

Expected:

listener.listenerObject.handleEvent should be accessible.
STR:

1. Apply the [attached patch](https://bugzilla.mozilla.org/attachment.cgi?id=9037276).
2. Build Firefox (debug build).
3. Open the attached file (test.html - https://bugzilla.mozilla.org/attachment.cgi?id=9037275).
4. Open the Browser *Content* Toolbox and select the debugger tab.
5. Right-click the div and choose "Inspect Element."
6. Switch the Browser Content Toolbox to the content tab.

Actual:

See screenshot (https://bugzilla.mozilla.org/attachment.cgi?id=9037277)

listener.listenerObject is logged and contains a handleEvent property but when listener.listenerObject.handleEvent is logged it is undefined.

In the browser toolbox you can see the following warning:

```
WARNING: Silently denied access to property "handleEvent": value is callable
(@resource://devtools/server/actors/inspector/event-parsers.js:188:10): file
/builds/worker/workspace/build/src/js/xpconnect/wrappers/XrayWrapper.cpp,
line 223
```

Expected:

listener.listenerObject.handleEvent should be accessible.
STR:

1. Apply the [attached patch](https://bugzilla.mozilla.org/attachment.cgi?id=9037276).
2. Build Firefox (debug build).
3. Open the attached file [test.html](https://bugzilla.mozilla.org/attachment.cgi?id=9037275).
4. Open the Browser *Content* Toolbox and select the debugger tab.
5. Right-click the div and choose "Inspect Element."
6. Switch the Browser Content Toolbox to the content tab.

Actual:

See [screenshot](https://bugzilla.mozilla.org/attachment.cgi?id=9037277).

listener.listenerObject is logged and contains a handleEvent property but when listener.listenerObject.handleEvent is logged it is undefined.

In the browser toolbox you can see the following warning:

```
WARNING: Silently denied access to property "handleEvent": value is callable
(@resource://devtools/server/actors/inspector/event-parsers.js:188:10): file
/builds/worker/workspace/build/src/js/xpconnect/wrappers/XrayWrapper.cpp,
line 223
```

Expected:

listener.listenerObject.handleEvent should be accessible.
STR:

1. Apply the [attached patch](https://bugzilla.mozilla.org/attachment.cgi?id=9037276).
2. Build Firefox (debug build).
3. Open the attached file [test.html](https://bugzilla.mozilla.org/attachment.cgi?id=9037275).
4. Open the Browser *Content* Toolbox and select the debugger tab.
5. Right-click the div and choose "Inspect Element."
6. Switch the Browser Content Toolbox to the content tab.

Actual:

See [screenshot](https://bugzilla.mozilla.org/attachment.cgi?id=9037277).

`listener.listenerObject` is logged and contains a `handleEvent` property but when listener.listenerObject.handleEvent is logged it is undefined.

In the browser toolbox you can see the following warning:

```
WARNING: Silently denied access to property "handleEvent": value is callable
(@resource://devtools/server/actors/inspector/event-parsers.js:188:10): file
/builds/worker/workspace/build/src/js/xpconnect/wrappers/XrayWrapper.cpp,
line 223
```

Expected:

`listener.listenerObject.handleEvent` should be accessible.
STR:

1. Apply the [attached patch](https://bugzilla.mozilla.org/attachment.cgi?id=9037276).
2. Build Firefox (debug build).
3. Open the attached file [test.html](https://bugzilla.mozilla.org/attachment.cgi?id=9037275).
4. Open the Browser *Content* Toolbox and select the debugger tab.
5. Right-click the div and choose "Inspect Element."
6. Switch the Browser Content Toolbox to the content tab.

Actual:

See [screenshot](https://bugzilla.mozilla.org/attachment.cgi?id=9037277).

`listener.listenerObject` is logged and contains a `handleEvent` property but when listener.listenerObject.handleEvent is logged it is undefined.

In the browser toolbox you can see the following warning:

```
WARNING: Silently denied access to property "handleEvent": value is callable
(@resource://devtools/server/actors/inspector/event-parsers.js:188:10): file
/builds/worker/workspace/build/src/js/xpconnect/wrappers/XrayWrapper.cpp,
line 223
```

The inability to check for this property breaks the few lines at the end of the patch.

Expected:

`listener.listenerObject.handleEvent` should be accessible.
STR:

1. Apply the [attached patch](https://bugzilla.mozilla.org/attachment.cgi?id=9037276).
2. Build Firefox (debug build).
3. Open the attached file [test.html](https://bugzilla.mozilla.org/attachment.cgi?id=9037275).
4. Open the Browser *Content* Toolbox and select the debugger tab.
5. Right-click the div and choose "Inspect Element."
6. Switch the Browser Content Toolbox to the content tab.

Actual:

See [screenshot](https://bugzilla.mozilla.org/attachment.cgi?id=9037277).

`listener.listenerObject` is logged and contains a `handleEvent` property but when listener.listenerObject.handleEvent is logged it is undefined.

In the browser toolbox you can see the following warning:

```
WARNING: Silently denied access to property "handleEvent": value is callable
(@resource://devtools/server/actors/inspector/event-parsers.js:188:10): file
/builds/worker/workspace/build/src/js/xpconnect/wrappers/XrayWrapper.cpp,
line 223
```

The inability to check for `handleEvent` breaks the few lines at the end of the patch.

Expected:

`listener.listenerObject.handleEvent` should be accessible.

Back to Bug 1520823 Comment 0