Closed Bug 1378017 Opened 8 years ago Closed 7 years ago

inspector shows a non existing event

Categories

(DevTools :: Inspector, defect, P2)

55 Branch
defect

Tracking

(firefox57 fix-optional)

RESOLVED WORKSFORME
Tracking Status
firefox57 --- fix-optional

People

(Reporter: karlcow, Assigned: miker)

Details

Attachments

(2 files)

With Firefox Nightly 56.0a1 (2017-06-29) (64-bit) This is a spin-off of https://bugzilla.mozilla.org/show_bug.cgi?id=1376050 Create an account on orbitz.com Go to: https://www.orbitz.com/user/account Click "other travelers" Inspect the birth date field. See how it has an associated event with it. Click the event and notice that it is empty. capture d ecran 2017-06-29 a 17 19 12 Chrome and Safari do not display an event at all. (Mistakenly reported on https://github.com/devtools-html/debugger.html/issues/3251 )
Mike, maybe this is something you can take a look at?
Flags: needinfo?(mratcliffe)
Priority: -- → P2
The situation there is this: We count events without entering debug mode but that can give us some false positives. If we enter debug mode it will be much more accurate but could slow the world down. These days we can probably get away with entering debug mode to check.
Flags: needinfo?(mratcliffe)
Assignee: nobody → mratcliffe
Status: NEW → ASSIGNED
Has Regression Range: --- → irrelevant
Has STR: --- → irrelevant
OS: Unspecified → All
Hardware: Unspecified → All
Comment on attachment 8980683 [details] Bug 1378017 - inspector shows a non existing event https://reviewboard.mozilla.org/r/246852/#review253268 Indeed, the code is quite simple, I'm interested to see what it does to performance. Please make sure you push to talos before landing. Also, I commented about possibly breaking the html/window/document event grouping feature below. ::: devtools/server/actors/inspector/event-parsers.js (Diff revision 2) > - if (node.nodeName.toLowerCase() === "html") { > - let winListeners = > - Services.els.getListenerInfoFor(node.ownerGlobal) || []; > - let docElementListeners = > - Services.els.getListenerInfoFor(node) || []; > - let docListeners = > - Services.els.getListenerInfoFor(node.parentNode) || []; > - > - listeners = [...winListeners, ...docElementListeners, ...docListeners]; Aren't we going to lose this feature though? The new `_hasEventListeners` getter does not check for window, docElement and document listeners for <html> node anymore.
Attachment #8980683 - Flags: review?(pbrosset)
Comment on attachment 8980683 [details] Bug 1378017 - inspector shows a non existing event https://reviewboard.mozilla.org/r/246852/#review253462 ::: devtools/server/actors/inspector/event-parsers.js (Diff revision 2) > - if (node.nodeName.toLowerCase() === "html") { > - let winListeners = > - Services.els.getListenerInfoFor(node.ownerGlobal) || []; > - let docElementListeners = > - Services.els.getListenerInfoFor(node) || []; > - let docListeners = > - Services.els.getListenerInfoFor(node.parentNode) || []; > - > - listeners = [...winListeners, ...docElementListeners, ...docListeners]; Yes, I didn't have time to read over the patch before submitting it... will fix this now.
Comment on attachment 8980683 [details] Bug 1378017 - inspector shows a non existing event https://reviewboard.mozilla.org/r/246852/#review253498 ::: devtools/server/actors/inspector/event-parsers.js (Diff revision 2) > - if (node.nodeName.toLowerCase() === "html") { > - let winListeners = > - Services.els.getListenerInfoFor(node.ownerGlobal) || []; > - let docElementListeners = > - Services.els.getListenerInfoFor(node) || []; > - let docListeners = > - Services.els.getListenerInfoFor(node.parentNode) || []; > - > - listeners = [...winListeners, ...docElementListeners, ...docListeners]; Actually, _hasEventListeners() uses getEventListenerInfo(), which *does* check for window, docElement and document listeners for the <html> node.
Comment on attachment 8980683 [details] Bug 1378017 - inspector shows a non existing event https://reviewboard.mozilla.org/r/246852/#review253930 Looks good to me, but please push to talos to check the impact of the change.
Attachment #8980683 - Flags: review?(pbrosset) → review+
I knew that this issue was no longer reproduce-able with this testcase but because this problem keeps resurfacing I decided to fix it once and for all. Seeing the performance hit we would take with the fix I decided to take a look at all the historic event bubble bugs to ensure that they are still unfixed but I can't reproduce this issue anywhere. I cannot reproduce this issue anywhere. I can't find the exact changeset where I rewrote the core functionality because the file has been broken up and no longer exists but this now works fine without any further changes... I have verified this with various older bugs. If we can find a situation where this is not fixed I would be happy to fix it.
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → WORKSFORME
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: