Bug 14820 - Domain names should also appear in the Java Script Console messages whenever a domain mismatch occurs.
Summary: Domain names should also appear in the Java Script Console messages whenever ...
Status: RESOLVED DUPLICATE of bug 96247
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Minor
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-30 15:51 PDT by Bhagyalaxmi Dash
Modified: 2013-03-27 22:55 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bhagyalaxmi Dash 2007-07-30 15:51:01 PDT
Whenever there is a domain mismatch and the domain name is set explicitly by a java script method, the Java Script Console message should display the domain names along with the error message.
Comment 1 Alexey Proskuryakov 2007-08-06 06:14:56 PDT
What are the cases when this doesn't happen? Looking at error messages I have in the console now, I do see domain names (even with shipping 10.4 Safari/WebKit):

Unsafe JavaScript attempt to access frame with URL http://newsru.com/finance/06aug2007/kurs.html from frame with URL http://ads.adfox.ru/715/test?p1=cnj&p2=nj&p3=0&p4=a&pr=328653&pt=on&pd=6&pw=1&pv=16&pq=b&pn=b. Domains must match.
Comment 2 Jake Logan 2007-08-07 15:31:57 PDT
(In reply to comment #1)
> What are the cases when this doesn't happen? 

The domains shown are the ones from the URLs of loaded pages. But in some cases "domain relaxing" is performed using Javascript, per IE domain-relaxing rules. In this case we should show the internal document.domain attribute to let web developers know if their domain relaxing code is working correctly. This would help reveal issues with domain-relaxing Javascript code.
Comment 3 fiedler.andre 2009-12-07 11:19:14 PST
Same error for me in Safari 4.0.4... no JavaScript. Take a look at:

http://www.eazyshoppinglist.com/

just HTML & CSS
Comment 4 fiedler.andre 2009-12-07 11:20:49 PST
Same error for me in Safari 4.0.4... no JavaScript. Take a look at:

http://www.eazyshoppinglist.com/

just HTML & CSS
Comment 5 Mike West 2013-03-27 22:55:37 PDT
I'm fairly certain we now do this, see the 'document.domain' set of messages in DOMWindow::crossDomainAccessErrorMessage: http://trac.webkit.org/browser/trunk/Source/WebCore/page/DOMWindow.cpp#L1841

I'll dupe this against https://bugs.webkit.org/show_bug.cgi?id=96247 where that landed.

*** This bug has been marked as a duplicate of bug 96247 ***