After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 155603 - Unsaved Form Changes dialog triggers false positives
Unsaved Form Changes dialog triggers false positives
Status: RESOLVED OBSOLETE
Product: epiphany
Classification: Core
Component: General
git master
Other All
: Normal normal
: ---
Assigned To: Epiphany Maintainers
Epiphany Maintainers
: 325109 345786 459365 574538 (view as bug list)
Depends on: 604986
Blocks: 333021
 
 
Reported: 2004-10-16 20:26 UTC by spark
Modified: 2011-05-19 13:18 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18


Attachments
possible fix (5.65 KB, patch)
2005-09-27 19:54 UTC, Christian Persch
committed Details | Review

Description spark 2004-10-16 20:26:57 UTC
The unsaved form changes dialog appears in gmail even after you've
sent/cancelled sending a message and returned to the inbox (or whatever) because
the form is hidden in the background.
Comment 1 Reinout van Schouwen 2005-02-16 17:21:04 UTC
confirmed.
Comment 2 Lionel Dricot 2005-08-08 08:28:45 UTC
It happens in some other websites too, without apparent reason.

For example, see http://ploum.fritalk.com/showthread.html in a ew tab and try to
close the tab.
It's particulary annoying when browsing such a website and you have to confirm
every tab you read.

It doesn't happen in firefox.
Comment 3 Christian Persch 2005-09-27 19:54:07 UTC
Created attachment 52745 [details] [review]
possible fix

Can everyone who's seeing this problem please try the patch and report its
output on sites where it still erroneously claims it has modified fields? It
fixes the site from comment 2 for me, at least.
Comment 4 Corey Burger 2005-12-26 02:41:32 UTC
I don't see this issue anymore with 1.9.3.1 on Dapper. Can this be closed?
Comment 5 Reinout van Schouwen 2005-12-29 17:02:28 UTC
*** Bug 325109 has been marked as a duplicate of this bug. ***
Comment 6 Dev Tugnait 2005-12-29 19:03:33 UTC
Patch confirmed on 1.8.x
Comment 7 Christian Persch 2005-12-30 19:20:30 UTC
So let's get this patch in at least (it doesn't fix all sites though; I still see the warning on google maps for example). The patch needs some cleanup (move includes to top, remove g_prints()s).
Comment 8 Crispin Flowerday (not receiving bugmail) 2006-01-16 21:31:32 UTC
The first patch is committed:

http://mail.gnome.org/archives/cvs-commits-list/2006-January/msg04425.html


We still have problems with gmail and google maps, so leaving open
Comment 9 Christian Persch 2006-09-05 19:25:11 UTC
I think we need to completely change the way we detect whether the form was modified.

I think the following way should work:
Add a nsIDOMFormListener to our event listeners, and listen for onreset, onsubmit, onchange and oninput. In ::Input (and maybe in ::Changed [not sure, since this might be used by script too?]) we mark the form as 'changed', and in ::Submit and ::Reset, we remove the mark.
The problem is how to store the 'changed' bit... perhaps nsIDOM3Node::SetUserData , but not if that's accessible from content (don't know if it is)...
Comment 10 Christian Persch 2006-09-05 19:29:45 UTC
Oh and we also need to handle documents with designmode=on; no idea how to do that, yet.
Comment 11 Christian Persch 2006-09-08 11:59:56 UTC
*** Bug 345786 has been marked as a duplicate of this bug. ***
Comment 12 Matthew Paul Thomas (mpt) 2006-11-08 22:08:39 UTC
This problem also occurs with any article in The Onion, such as <http://www.theonion.com/content/node/40091>.
Comment 13 Reinout van Schouwen 2007-05-14 21:48:28 UTC
still valid.
Comment 14 Gary Wang 2007-06-18 16:49:39 UTC
Until this feature is fixed, would it be possible to allow this feature to be disabled (by the user, perhaps through about:config)? In fact, it would be nice to be able to disable it anyway. I find it really anoying to have to click "Close Document" all the time. 
Comment 15 Reinout van Schouwen 2007-07-23 20:01:01 UTC
*** Bug 459365 has been marked as a duplicate of this bug. ***
Comment 16 Reinout van Schouwen 2009-03-08 15:16:37 UTC
*** Bug 574538 has been marked as a duplicate of this bug. ***
Comment 17 Reinout van Schouwen 2011-05-19 13:18:03 UTC
No longer valid for current webkit-based Epiphany versions.