Closed Bug 680366 Opened 15 years ago Closed 15 years ago

handleInstallAddonDialog does not call domUtils.nodeCollector with root element

Categories

(Mozilla QA Graveyard :: Mozmill Tests, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: remus.pop, Assigned: remus.pop)

References

Details

(Whiteboard: [lib])

Attachments

(1 file, 2 obsolete files)

Currently in the Addons API we are using var nodeCollector = new domUtils.nodeCollector(aController.window.document.documentElement); But .documentElement is not the root node so we receive the following error: file:///home/remuspop/Desktop/mozmillrepo3/mozmill-tests/lib/dom-utils.js:546\n@:0\n", "message": "The root element has to be specified."
Attached patch initial patch (obsolete) — — Splinter Review
Removed .documentElement in order to call with the right root node.
Attachment #554329 - Flags: review?(hskupin)
Blocks: 677193
Assignee: nobody → remus.pop
Comment on attachment 554329 [details] [diff] [review] initial patch > // Get the install button > // XXX: Bug 671322 > // Using .documentElement until we can support the window object as parameter > // for the nodeCollector constructor >- var nodeCollector = new domUtils.nodeCollector(aController.window.document.documentElement); >+ var nodeCollector = new domUtils.nodeCollector(aController.window.document); I have fixed bug 671322 a couple of days ago. So we could now even use the window itself as parameter for the constructor. Can you please update the patch and remove the comments which are not necessary anymore? Thanks.
Attachment #554329 - Flags: review?(hskupin) → review-
Attached patch patch v2 (obsolete) — — Splinter Review
Modified patch as requested.
Attachment #554329 - Attachment is obsolete: true
Attachment #554337 - Flags: review?(hskupin)
Status: NEW → ASSIGNED
OS: Linux → All
Hardware: x86 → All
Attachment #554337 - Flags: review?(hskupin) → review+
Comment on attachment 554337 [details] [diff] [review] patch v2 This patch doesn't apply cleanly. Please update your working copy of the repository first. Also please only use r=hskupin for the reviewer part in the commit message.
Attachment #554337 - Flags: review+ → review-
Attached patch patch v3 — — Splinter Review
Modified patch accordingly using a fresh copy of the repository.
Attachment #554337 - Attachment is obsolete: true
Attachment #554375 - Flags: review?(hskupin)
Summary: [shared-module] handleInstallAddonDialog does not call domUtils.nodeCollector with root element → handleInstallAddonDialog does not call domUtils.nodeCollector with root element
Attachment #554375 - Flags: review?(hskupin) → review+
Component: Mozmill Shared Modules → Mozmill Tests
Whiteboard: [lib]
Product: Mozilla QA → Mozilla QA Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: