The default bug view has changed. See this FAQ.

Add some null safety to isElementClickable

RESOLVED FIXED in Firefox 15

Status

()

Firefox for Android
General
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: Margaret, Assigned: Margaret)

Tracking

Trunk
Firefox 16
ARM
Android
Points:
---

Firefox Tracking Flags

(firefox15 fixed, firefox16 fixed)

Details

Attachments

(1 attachment)

(Assignee)

Description

5 years ago
Created attachment 633675 [details] [diff] [review]
patch

If we call isElementClickable aAllowBodyListeners=false, if aElement isn't a descendant of aElement.ownerDocument.body (such as the root element) you can run into problems. This is what causes this error sometimes seen during development:
[JavaScript Error: "NS_ERROR_INVALID_POINTER: Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIEventListenerService.getListenerInfoFor]" {file: "chrome://browser/content/browser.js" line: 3397}]
Attachment #633675 - Flags: review?(wjohnston)
(Assignee)

Updated

5 years ago
Assignee: nobody → margaret.leibovic
(Assignee)

Comment 1

5 years ago
Wes gave me an r+ on IRC, so I landed this:
https://hg.mozilla.org/integration/mozilla-inbound/rev/c6371662e21e
Target Milestone: --- → Firefox 16
Backed out in https://hg.mozilla.org/integration/mozilla-inbound/rev/e4861bc9f86f - other than the orange in mochitests 1-3 and 6-8, robocop, crashtests and reftests, everything when swimmingly with that push.
(Assignee)

Comment 3

5 years ago
I pushed to try to make sure this patch wasn't the guilty one. Re-landing:
https://hg.mozilla.org/integration/mozilla-inbound/rev/526235473719
Attachment #633675 - Flags: review?(wjohnston) → review+
https://hg.mozilla.org/mozilla-central/rev/526235473719
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
(Assignee)

Comment 5

5 years ago
Uplifted to aurora as part of a roll-up patch:
https://hg.mozilla.org/releases/mozilla-aurora/rev/2fb0a358eaf6
status-firefox15: --- → fixed
status-firefox16: --- → fixed
You need to log in before you can comment on or make changes to this bug.