Closed Bug 603610 Opened 14 years ago Closed 14 years ago

JavaScript Error: "notificationBox is null" {file: "chrome://mochitests/content/browser/toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_588342_document_focus.js" line: 57}

Categories

(DevTools :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: rcampbell, Assigned: msucan)

References

Details

(Whiteboard: [patchclean:1018])

Attachments

(1 file, 1 obsolete file)

Seeing a lot of these interspersed with other tests after landing of bug 581069.
Blocks: devtools4b8
Taking the bug. It's a test I wrote.
Assignee: nobody → mihai.sucan
Attached patch proposed fix (obsolete) — Splinter Review
Proposed fix. Now it gets the chance to actually check if the document has focus after closing the Web Console. (3 tests pass, instead of only 2) Also, the notificationBox variable being null error is fixed.
Attachment #482812 - Flags: feedback?(ddahl)
Status: NEW → ASSIGNED
Whiteboard: [patchclean:1013]
Version: unspecified → Trunk
Attachment #482812 - Flags: feedback?(ddahl) → feedback+
Comment on attachment 482812 [details] [diff] [review]
proposed fix

Thanks David for the feedback+! Asking for review now.
Attachment #482812 - Flags: review?(dietrich)
Comment on attachment 482812 [details] [diff] [review]
proposed fix

This is a test-only change and does not require toolkit peer review.
Attachment #482812 - Flags: review?(dietrich)
Keywords: checkin-needed
landed and backed out:

TEST-UNEXPECTED-FAIL | chrome://mochitests/content/browser/toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_588342_document_focus.js | content document has focus - Got [object XrayWrapper [object Window]], expected [object Window]
Keywords: checkin-needed
Oops, sorry! That must be a problem with the new XrayWrappers that I did not expect. I have tested the patch a few days ago. Tomorrow I'll rebase and fix the patch.
I think we have a lot of issues that we need to iron out with this new wrapper type. arrggh.
(In reply to comment #8)
> I think we have a lot of issues that we need to iron out with this new wrapper
> type. arrggh.

Hehe, no worries. I'll do hg pull from m-c tomorrow and rebase all test fixes I have waiting to be checked-in, ironing out the issues with this new wrapper type.
disabled the test but didn't reland? This fix should be safe to checkin now, with that test disabled, right?

We should add that test to the list of bugs to fix and land in bug 604536. Adding there.
I didn't reland the patch, no. I don't know what exactly is left to do here or in bug 604536 -- my main interest was to stop the mochitest-browser-chrome log pollution.
yep fair enough. I'll reland with some other fixes this morning.
Keywords: checkin-needed
Rebased patch and a one-line change to make the test work fine after the compartments landing.
Attachment #482812 - Attachment is obsolete: true
Whiteboard: [patchclean:1013] → [patchclean:1018]
Comment on attachment 484002 [details] [diff] [review]
[checked-in] rebased patch (fix for compartments landing)

http://hg.mozilla.org/mozilla-central/rev/ce9dc1970352
Attachment #484002 - Attachment description: rebased patch (fix for compartments landing) → [checked-in] rebased patch (fix for compartments landing)
Attachment #484002 - Flags: review+
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Keywords: checkin-needed
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: