Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
XPCOM do_QueryInterface with nsIDOMNode fails under Firefox 10
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Martin Novak  
View profile  
 More options Apr 26 2012, 9:28 am
Newsgroups: mozilla.addons.chromebug
From: Martin Novak <m.no...@tricentis.com>
Date: Thu, 26 Apr 2012 15:28:52 +0200
Local: Thurs, Apr 26 2012 9:28 am
Subject: XPCOM do_QueryInterface with nsIDOMNode fails under Firefox 10
I use a binray XPCOM with VisualStudio 10 compiled against xulrunner-10.0.en-US.win32.sdk
I do QueryInterface nsIDOMNode to nsIDOMElement, but it fails under Firefox 10
Same Code with same project compiled against xulrunner-11 sdk under Firefox 11 does his job correctly.
Also Firefox 3.6 works.
Only Firefox 10 has problems.

I cannot find anything about this problem.
I have no idea.

Best Regards,
Martin

CODE:
        if(xmlDoc!=NULL)
        {
                xmlDoc->GetElementsByTagName(NS_LITERAL_STRING("Control"), getter_AddRefs(resultList));
                if(resultList!=NULL)
                {
                        resultList->GetLength(&length);

                        if(length != 0)
                        {
                                resultList->Item(0, getter_AddRefs(node));
                                if(node!=NULL)
                                {
                                        domElement = do_QueryInterface(node,&rv);    //FAILS UNDER FIREFOX 10: NO_INTERFACES_ERROR
                                        if(domElement!=NULL)
                                        {
                                                bool retbool = false;
                                                domElement->HasAttribute(attribute, &retbool);
                                                if(retbool == (bool) true)
                                                {
                                                        domElement->GetAttribute(attribute,retval);
                                                }
                                        }
                                }
                        }
                }
        }


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »