473,387 Members | 1,899 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Unexplainable error in Mozilla

Why do I get the following error message in Mozilla if I press a key in the
input box?

================================

Error: [Exception... "'Permission denied to get property
XULElement.selectedIndex' when calling method:
[nsIAutoCompletePopup::selectedIndex]" nsresult: "0x8057001e
(NS_ERROR_XPC_JS_THREW_STRING)" location: "JS frame ::
file:///D:/test/index.html :: message :: line 4" data: no]
Source File: file:///D:/test/index.html
Line: 4

================================

<html>
<script type="text/javascript">
function showmessage() {
alert("Why does Mozilla report an error?")
}

</script>

<body>
<form name="myform">
<input type="text" name="myinputbox" value=""
onKeyPress="showmessage()">
</form>
</body>
</html>

================================

What's wrong with my code?
Stefan
Oct 31 '05 #1
4 1518
I get that occasional when using the focus() function to set focus to
some elements in FireFox.
I've yet to find a solution to it anywhere, so if you find one I'd be
most interested :D

Oct 31 '05 #2
VK

Xandax wrote:
I get that occasional when using the focus() function to set focus to
some elements in FireFox.
I've yet to find a solution to it anywhere, so if you find one I'd be
most interested :D

Try not to pay too much attention to that ;-) The guys are making XPCom
/ XPConnect right "on the go" and right on the current browser version
using their users as laboratory rats. A semi-questionnable approach but
proven by companies like Microsoft to be the most results effective.
:-)

More precisely it's an XPConnect security interface is leaking. When
starting to type anything in a form field it leads to autocomplete call
which in an "out-of-sandbox" situation has to run security check for
UniversalPropertyRead privilege (but should stay quiet in the regular
situation).

Report it to bugzilla.mozilla.org and try to forget it for now (?)
P.S. As it doesn't stop script execution we have to mark that with this
bug FireFox introduces new program flow event besides Error: a
Perl-like Warning. So there is nothing bad without something good in it
:-)

Oct 31 '05 #3
Xandax wrote:
I get that occasional when using the focus() function to set focus to
some elements in FireFox.
I've yet to find a solution to it anywhere, so if you find one I'd be
most interested :D


https://bugzilla.mozilla.org/show_bug.cgi?id=236791

A workaround is autocomplete="OFF" on the input field.

I am waiting forever for them to fix it.
Nov 1 '05 #4
Hmm - not really a suitible solution for my case seeing as customers
often wants autocomplete, but perhaps I can turn some completion off in
some of my fields and perhaps reduce the number of exceptions I get.

But as said by the previous poster (VK), it doesn't break script
execution (thank god :D), so I can live with it, it just annoys me :D

Nov 2 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Paul | last post by:
I thought this is more of an IE issue but i've had no joy on that group perhaps somebody here will have a clue. If i click a link to a web page embedded in Excel (97 OR 2000) i get the standard...
2
by: Peter | last post by:
Hello, First of all, sorry for all the code. I don't know how to explain my problem without it. I have a javascript function which can build a webpage dynamically. A striped down version of...
8
by: Mr. x | last post by:
Hello, I wrote a javascript, and when I open the html by the browser, I get the message : Error in page. It is about tousand lines, and I cannot figure out in a simple way, where is the...
5
by: DU | last post by:
Hi! I really need to understand what is so-called browser error correction mechanisms. Can you explain this? I read somewhere (and I no longer can find where I read that) that browsers try to...
8
by: Grant Richard | last post by:
Using the TcpListener and TcpClient I created a program that just sends and receives a short string - over and over again. The program is fine until it gets to around 1500 to 1800 messages. At...
3
by: Nathan Sokalski | last post by:
When I view any page in my application a second time, I recieve the following error: System.Web.TraceContext.AddNewControl(String id, String parentId, String type, Int32 viewStateSize) +313...
3
by: Will Chamberlain | last post by:
I am running into a strange error when I try debugging my current application. A form loads up with a dynamically-populated textbox full of software titles. Upon selection of a software title and...
3
by: teo | last post by:
Mozilla error on postback and validation ----------- A Button causes a Listbox to desappear. If no item has been selected on the Listbox, all is OK. If one or more items are selected,
18
by: andreas.luethi | last post by:
Hi All Compile a our source with BM XL C/C++ Enterprise Edition V8.0 for AIX (Version: 08.00.0000.0000) produces a lot of Informational message like this: "aaalib.c", line 671.1: 1506-412 (I)...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.