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 490672 - Popup management is broken
Popup management is broken
Status: RESOLVED FIXED
Product: epiphany
Classification: Core
Component: General
git master
Other Linux
: Normal normal
: ---
Assigned To: Epiphany Maintainers
Epiphany Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-10-26 22:35 UTC by Xan Lopez
Modified: 2007-11-17 20:44 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
[1/1] Re-enable popup management code in EphyBaseEmbed. (22.29 KB, patch)
2007-11-17 13:41 UTC, Xan Lopez
committed Details | Review
[1/1] Put visibility property into EphyBaseEmbed, we need it for popups. (7.65 KB, patch)
2007-11-17 16:34 UTC, Xan Lopez
committed Details | Review
[1/1] Move size-to code to the gecko backend. (9.20 KB, patch)
2007-11-17 20:35 UTC, Xan Lopez
committed Details | Review

Description Xan Lopez 2007-10-26 22:35:19 UTC
Moved hidden-popup-count and popups-allowed properties to EphyEmbed. They use EphyWindow, so they are disabled until we refactor them to not use the epiphany frontend.
Comment 1 Diego Escalante Urrelo (not reading bugmail) 2007-10-27 02:01:22 UTC
Yep, confirmed. And also most of the ephy extensions that depend on ephytab signals are now useless.
Comment 2 Diego Escalante Urrelo (not reading bugmail) 2007-11-04 19:38:10 UTC
Extensions are fixed now. I don't recall about popups but middle clicks are broken.
Comment 3 Xan Lopez 2007-11-17 13:41:36 UTC
Created attachment 99251 [details] [review]
[1/1] Re-enable popup management code in EphyBaseEmbed.


Plus a small bugfix in MozillaEmbed about GtkMozembed vs. EphyEmbed
confusion.
---
 embed/ephy-base-embed.c         |  618 +++++++++++++++++++--------------------
 embed/ephy-base-embed.h         |    3 +
 embed/mozilla/mozilla-embed.cpp |    8 +-
 3 files changed, 312 insertions(+), 317 deletions(-)
Comment 4 Christian Persch 2007-11-17 13:48:53 UTC
+  popup = g_new0 (PopupInfo, 1);

Let's use gslice here.

+  popup->url = (url == NULL) ? NULL : g_strdup (url);

g_strdup is NULL-safe.
Comment 5 Xan Lopez 2007-11-17 16:34:00 UTC
Created attachment 99257 [details] [review]
[1/1] Put visibility property into EphyBaseEmbed, we need it for popups.

 embed/ephy-base-embed.c         |   33 +++++++++++++++++++++++++++++++++
 embed/ephy-base-embed.h         |    2 ++
 embed/ephy-embed.c              |   16 ++++++++++++++++
 embed/ephy-embed.h              |    2 ++
 embed/mozilla/mozilla-embed.cpp |   14 ++++++++++++++
 src/ephy-window.c               |   19 +++++++++++++++++++
 6 files changed, 86 insertions(+), 0 deletions(-)
Comment 6 Xan Lopez 2007-11-17 17:42:31 UTC
Committed, thanks. We need to put the size-to code in the backend (gecko) to get the right sizes for the popups.
Comment 7 Xan Lopez 2007-11-17 20:35:00 UTC
Created attachment 99260 [details] [review]
[1/1] Move size-to code to the gecko backend.

 embed/mozilla/mozilla-embed.cpp |  137 +++++++++++++++++++++++++++++++++++++++
 src/ephy-window.c               |   75 +---------------------
 2 files changed, 138 insertions(+), 74 deletions(-)
Comment 8 Xan Lopez 2007-11-17 20:44:53 UTC
All committed, closing.