Categories: Docs :

When try to type __proto__ in Document, it suddenly stop

Showing 1-4 of 4 messages
When try to type __proto__ in Document, it suddenly stop parksama 9/4/11 1:17 AM
Browser & Operating System (e.g. Firefox/Mac OSX):
OS
- Mac OS X Lion 10.7.1

Browser
- Chrome 13.0.782.220
- Safari 5.1(7534.48.3)

Free consumer account (@gmail, @yahoo...) or Google Apps account (@yourdomain): park...@gmail.com
Describe the steps you took that produced this error:

I tried to copy or type string __proto__ and pasted into my document, it suddenly stop working, and I can't type any single character.

Copy and paste any error messages:

I found 4 errors in 3684604164-v2-kix_main_i18n_kix_core.js

Uncaught CustomError: Error in protected function: Object __proto__</span></bdo> has no method 'da'
Uncaught CustomError: Error in protected function: Cannot read property '0' of undefined
Uncaught CustomError: Error in protected function: INVALID_CHARACTER_ERR: DOM Exception 5
Uncaught CustomError: Error in protected function: Cannot read property '0' of undefined
Uncaught CustomError: Error in protected function: Object __proto__</span></bdo> has no method 'df'
Uncaught CustomError: Error in protected function: Cannot read property '0' of undefined

Re: When try to type __proto__ in Document, it suddenly stop Bas Braams 9/4/11 4:33 AM
This error report easily beats the earlier report that typing the string "<=" into a document turns off spell check [1]. And it is a correct report too. I just tried it on a Firefox 5.0 browser on Ubuntu. The editor hangs after typing in the final underscore in the string __proto__, without even displaying that final underscore. I see the same behavior using Chrome on a Windows 2007 system, but in IE8 on Windows 2007 one can type in the offending string and continue normally. Congratulations on finding this and thank you for posting it.
Re: When try to type __proto__ in Document, it suddenly stop Bas Braams 9/5/11 12:53 PM
This __proto__ error is a real charmer. Chrome 13.0 on Ubuntu 11.04. I open a document and type __proto__ into it; it hangs without echoing the final underscore. The challenge is now to get that text into the document. I type __pro to__, which is fine, and then try to backspace away the blank in the middle; it hangs. I create a plain text file on my local machine that contains the string __proto__ and upload it, converting it to Docs format; the uploaded file can't be opened. Actually, it can be opened if one cancels a few error messages, but then the file won't display and can't be edited.

I'm curious if this is a recent error or a hold-over from a hack from the alpha or beta-days of GDocs, or even of Writely. Are there other magic words that have similar effects to __proto__?

Could this error explain other recent error reports on the forum, like of files not uploading or not being editable? I know that __proto__ belongs to Java or Javascript; I just don't know how common it is.
Re: When try to type __proto__ in Document, it suddenly stop parksama 9/5/11 9:15 PM
__proto__ is a Mozilla-specific property of JavaScript Object, and it allows us to access Object's prototype chain in code level, but it still non-standard property. Only Safari, Firefox and Chrome are affected, and that is why it doesn't affect on IE browsers.