Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Prototype 1.6 security exception in firefox 2.0.0.20 in XPath code
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
  6 messages - 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
 
swindsor  
View profile  
 More options Jun 12, 10:00 pm
From: swindsor <swind...@gmail.com>
Date: Fri, 12 Jun 2009 19:00:07 -0700 (PDT)
Local: Fri, Jun 12 2009 10:00 pm
Subject: Prototype 1.6 security exception in firefox 2.0.0.20 in XPath code
Hey all,

I'm running into a pretty severe bug with protoype 1.6 (and 1.5) with
firefox 2.0.0.20

When prototype loads, I get the following javascript error:

Error: uncaught exception: [Exception... "Security error"  code:
"1000" nsresult: "0x805303e8 (NS_ERROR_DOM_SECURITY_ERR)"  location:
"http://localhost:3000/javascripts/prototype.js?1244843092 Line:
1525"]

Looking at the code, this is the line where it's erroring:

if (Prototype.BrowserFeatures.XPath) {
  document._getElementsByXPath = function(expression, parentElement) {
    var results = [];
    var query = document.evaluate(expression, $(parentElement) ||
document,
      null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);  //////
ERROR /////
    for (var i = 0, length = query.snapshotLength; i < length; i++)
      results.push(Element.extend(query.snapshotItem(i)));
    return results;
  };

}

This doesn't error in newer versions of firefox 3.0, 3.1 beta, but as
a result, after this exception is thrown I can't use any other
protoype javascript on the page (or any jquery, because the noconflict
fails).

Is this a bug in firefox or in prototype?


    Reply to author    Forward  
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.
kangax  
View profile  
 More options Jun 13, 5:18 pm
From: kangax <kan...@gmail.com>
Date: Sat, 13 Jun 2009 14:18:33 -0700 (PDT)
Local: Sat, Jun 13 2009 5:18 pm
Subject: Re: Prototype 1.6 security exception in firefox 2.0.0.20 in XPath code
On Jun 12, 10:00 pm, swindsor <swind...@gmail.com> wrote:

I can not reproduce this with trunk version of prototype and
FF2.0.0.20 on MacOSX.

--
kangax


    Reply to author    Forward  
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.
dmitrymos  
View profile  
 More options Jun 19, 10:37 am
From: dmitrymos <dmitry...@gmail.com>
Date: Fri, 19 Jun 2009 07:37:08 -0700 (PDT)
Local: Fri, Jun 19 2009 10:37 am
Subject: Re: Prototype 1.6 security exception in firefox 2.0.0.20 in XPath code
Do you use both prototype, and jquery on the same page? Probably that
might be the problem.
I use prototype 1.6.1_rc2 on Windows XP FF 2.0.0.20
There is no such error.

On Jun 12, 10:00 pm, swindsor <swind...@gmail.com> wrote:


    Reply to author    Forward  
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.
upi  
View profile  
 More options Jun 24, 10:17 am
From: upi <teich...@gmx.de>
Date: Wed, 24 Jun 2009 07:17:03 -0700 (PDT)
Local: Wed, Jun 24 2009 10:17 am
Subject: Re: Prototype 1.6 security exception in firefox 2.0.0.20 in XPath code
I had the very same problem and solved it by changing the order:
1) include jquery
2) setting jQuery.noConflict().
3) include prototype & scriptaculous

On 13 Jun., 04:00, swindsor <swind...@gmail.com> wrote:


    Reply to author    Forward  
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.
Scott Windsor  
View profile  
 More options Jun 24, 8:10 pm
From: Scott Windsor <swind...@gmail.com>
Date: Wed, 24 Jun 2009 17:10:55 -0700 (PDT)
Local: Wed, Jun 24 2009 8:10 pm
Subject: Re: Prototype 1.6 security exception in firefox 2.0.0.20 in XPath code
Thanks, I am using jquery.  I'll give this a try!

- scott

On Jun 24, 7:17 am, upi <teich...@gmx.de> wrote:


    Reply to author    Forward  
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.
Scott Windsor  
View profile  
 More options Jun 26, 4:15 am
From: Scott Windsor <swind...@gmail.com>
Date: Fri, 26 Jun 2009 01:15:26 -0700 (PDT)
Local: Fri, Jun 26 2009 4:15 am
Subject: Re: Prototype 1.6 security exception in firefox 2.0.0.20 in XPath code
That did the trick.  Odd that this only caused an issue in firefox 2.
Anyway, thanks!

- scott

On Jun 24, 5:10 pm, Scott Windsor <swind...@gmail.com> wrote:


    Reply to author    Forward  
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 »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google