Closed Bug 159324 Opened 22 years ago Closed 15 years ago

Include URL in "The document contains no data" alert dialog box

Categories

(Core :: DOM: Navigation, defect)

defect
Not set
minor

Tracking

()

RESOLVED DUPLICATE of bug 299769
Future

People

(Reporter: Brian.Dance, Unassigned)

References

Details

(Keywords: helpwanted)

The Alert "The document contains no data" is produced by 1.0 Mozilla extracted 
from mozilla-sparc-sun-solaris2.7-1.0.tar.gz when using a particular set of 
pages and javascript. These pages/script do not show this alert on mozilla 0.9 
on linux. 

Mozilla 1.0 may well be checking more rigorously than 0.9 but my problem is 
that the Alert does not identify the document or frame or script which is 
giving offence. Javascript console shows no messages when the Alert is raised.

The Alert appears to be associated with a frame which is rewritten by 
javascript periodically with doc.open() doc.write(string) doc.close().  The 
Alert occurs only on the first rewrite of the page. Subsequent updates do not 
raise the Alert. The Alert appears to be raised just before the written data 
appears on the screen.
The Alert message appears to be associated with a cgi program which 
returns "Location:  apage.shtml".   It has been difficult to get this far 
because there is no clue in the original Alert.
Reporter: please test this using a recent nightly build.. If the problem is
gone, mark this bug as WORKSFORME. Thanks !
Dupe of bug 135182 or bug 139879?
Thank you for pointing me to bug 135182. Comment 33 has provided a successful 
work around.  
However,  the problem reported here concerns the unhelpful nature of the 
message.  If the message had been  " *url* contains no data" it would have 
saved several people time.  I think this bug should remain as a request for an 
improved message.  When the message is delivered in genuine circumstances it 
will then be a helpful message.
-> Networking:http
Assignee: Matti → darin
Component: Browser-General → Networking: HTTP
QA Contact: asa → tever
Suggest changing Summary text to something like: Change alert text from "The
document contains no data." for better Bugzilla searching and clarification of bug.
Changed summary, incorporating Comment #6's suggestions. 

Confirming, as I can not find any duplicates.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: Unexpected Alert : The document contains no data → Include URL in "The document contains no data" alert dialog box
this bug will be resolved when we start displaying errors using documents
instead of popup windows.  we'll then be able to easily add the URL to the error
page.

adding dependency on bug 28586.
Depends on: errorpages
I want this for all plats.
OS: Solaris → All
Hardware: Sun → All
"The document contains no data" error comes for some web pages, but these web
pages open up with IE! Is it something to do with my setting? I use WIN XP
sundar: do you have any kind of web filtering programs running on your machine?
I have received this bug on numerous websites now newest is tucows.com.
The bug still exists in 1.3b under WindowsXP Pro. This bug still exists.  One
site that does it is www.ticketmaster.com.
 Reproducible.yes

My system. Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3b)
Gecko/20030210 {Build ID:2003021008}

Specifics. I use a ad blocker on my network, ad servers are given the address
127.0.0.1, mozilla gives a alert box with "The document contains no data" this
occurs when a blocked advert tries to load within a IFRAME. This seems to only
happens when the server in the iframe is set to 127.0.0.1

Overview Description: "The document contains no data" within a IFRAME

Steps to Reproduce:Demo page http://www.techead.co.uk/stuff/mozillabug.html with
rv:1.3b

have not tryed Latest build 

Additional Builds and Platforms:
IE gives the "action cancelled" error page (within the IFRAME)
Moz 1.2.1 is fine 
Mozilla 1.3

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3) Gecko/20030312


This error no longer happens with 1.3 final
OS: Win2k
Tested versions of Mozilla where error occurs: 1.3 Final and 1.4A

When visiting page:
http://www.tiede.net/

I either get the error message: "The Document contains no data" message 
or the page doesn't load completely. (Or both at same time)

Since several people say that this bug has been fixed, I think it is OS independent.
Does document contains no data work as a XUL page? That would might provide some
better information.
QA Contact: tever → httpqa
*** Bug 236702 has been marked as a duplicate of this bug. ***
I am now using the Mozilla 1.7 version, and the problem I told about earlier
doesn't show up anymore. But I am not sure is the bug fixed, because time has
passed and that website might have changed also at url:

http://www.tiede.net/
Am using Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040614
Firefox/0.9 on a WinXP PC.  No proxy, connect via DSL with firewall.  Have a XP
user with Netscape 7.1, get the same error intermittantly.  IE 6 blanks out on
and off as well.  Have Firefox 0.9 using Things They Left Out set Direct and
Proxy connect with HTTP 1.0;  disabled keep alive and pipeling; Direct
connection to the internet; have disabled  XUL, disk and mem caches.  Regular
options cache set to zero pages; use the Clear HTTP Auth Cache extension as
well.  All to no avail, sometimes on www.nytimes.com will get the error when I
click to go to page two, via next or numeral 2.  Also have this listed in # 135182
Severity: normal → minor
Keywords: helpwanted
Target Milestone: --- → Future
Please implement a feature in Mozilla to turn off the pop-up window "The
document contains no data", so that it doesn't disrupt web-surfing. On many
sites, I'll get 3 or 4 of these errors in a row, so I have to stop what I'm
doing and click OK to each one, which becomes tedious.
Mark: that is really a separate bug, see bug 28586.

removing depends, because actually, this bug is about fixing the dialog text,
not getting rid of the dialog for this error state.

And, more importantly, the wisdom of age has taught me this is docshell.
Assignee: darin → adamlock
Component: Networking: HTTP → Embedding: Docshell
No longer depends on: errorpages
QA Contact: networking.http → adamlock
*** Bug 299769 has been marked as a duplicate of this bug. ***
Error pages are now on by default, so this bug is likely INVALID/WORKSFORME.
It's still possible to disable error pages, though? So I'd say the bug is still valid.
Perhaps I should have been clearer, I meant to say that it is probably WONTFIX in its current state, and INVALID should the error dialogs ever be removed.
Assignee: adamlock → nobody
QA Contact: adamlock → docshell
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.