Comment #4 on issue 7386 by [email protected]: GURL-related layout test  
failure: http/security/postMessage/invalid-origin-throws-exception.html
http://code.google.com/p/chromium/issues/detail?id=7386

 From the test results, it looks like "http:" is failing to parse as a URL  
and throwing a
SYNTAX_ERR exception in violation of the spec.  The correct behavior is for  
the message
to be dropped on the floor without an exception.

You can try this in Firefox 3 and WebKit nightly by going to:

http://images.google.com/imgres?
imgurl=http://www.madison.com/communities/saa/library/files/cutest%2520puppy.jpg&imgrefur
l=http://frecklescassie.wordpress.com/2007/05/31/puppies-at-the-white-house/

and typing

javascript:try{frames[0].postMessage("hi", "http:")} catch(e) { alert(e) }

in the location bar.

> This does not seem like a big issue since the postMessage fails in any
> case.  Maybe we just need to rebaseline the test?

We should not rebaseline the test.  I hope this hasn't been our approach to  
resolving
other compatibility bugs.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/group/chromium-bugs
-~----------~----~----~----~------~----~------~--~---

Reply via email to