Closed
Bug 224454
Opened 21 years ago
Closed 19 years ago
Prompts should not be application modal but just window modal
Categories
(Core Graveyard :: Embedding: GTK Widget, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: mpgritti, Assigned: chpe)
References
Details
(Keywords: fixed-aviary1.0.8, fixed1.7.13)
Attachments
(1 file, 5 obsolete files)
1.40 KB,
patch
|
mpgritti
:
review+
blizzard
:
superreview+
dveditz
:
approval-aviary1.0.1-
dveditz
:
approval-aviary1.0.3-
dveditz
:
approval-aviary1.0.8+
dveditz
:
approval1.7.6-
dveditz
:
approval1.7.7-
asa
:
approval1.7.11-
dveditz
:
approval1.7.13+
|
Details | Diff | Splinter Review |
That should be impossible to implement using window groups, exactly like mozilla-the-browser.
Reporter | ||
Comment 1•21 years ago
|
||
So I tried to implement it. It mostly works as expected but for some reason page loading is blocked until you close the dialog. Going to attach the diff anyway.
Reporter | ||
Comment 2•21 years ago
|
||
Reporter | ||
Comment 3•21 years ago
|
||
Attachment #134647 -
Attachment is obsolete: true
Comment 4•21 years ago
|
||
If it's blocking page loading that probably means that the event queue is being pushed.
Reporter | ||
Comment 5•21 years ago
|
||
The only case where it blocks loading is actually with the dns not found dialog. The others works fine, odd.
Assignee | ||
Comment 6•20 years ago
|
||
This has the same effect as the patch above, but without its bugs :) For a dialogue to be modal to another window, it's sufficient to add it to the window group, and use gtk_dialog_run(). Of course, this is not of much use without fixing the blockage in the other windows.
Assignee | ||
Comment 7•20 years ago
|
||
Attachment #169121 -
Attachment is obsolete: true
Comment 8•20 years ago
|
||
Are you looking for review for that? Also, is the group automatically destroyed when the window is destroyed?
Reporter | ||
Comment 9•20 years ago
|
||
The patch looks correct to me. We release our own reference on the group so it will be destroyed when the window is destroyed. The problem is that the loading blockage in the other windows could be very confusing for the users. I guess that's why Christian didnt ask a review yet.
Reporter | ||
Updated•20 years ago
|
Attachment #134648 -
Attachment is obsolete: true
Assignee | ||
Comment 10•20 years ago
|
||
(In reply to comment #9) > The problem is that the loading blockage in the other windows could be very > confusing for the users. I guess that's why Christian didnt ask a review yet. Yes, that's why I didn't seek review on the patch. Also, in #epiphany when we discussed this we thought it might be better to add the dialogue only to the window group if the parent window _already has_ a window group, so that we don't make dialogues non-modal for unsuspecting embedders. If you want, I'll update the patch accordingly.
Assignee | ||
Comment 11•20 years ago
|
||
I've updated the patch to add the prompt to the parent's window group iff that group already exists. That way we don't break applications' expectations about prompt modality. However, there is a problem with apps which DO use window groups: if all windows are in a window group, but the prompts are in none (i.e. without this patch), the prompt ends up being NOT MODAL at all, i.e. you can close the its parent tab (it's destroy-with-parent, but with a multi-tab app like Epiphany, that doesn't say anything), and the prompt persists, causing a crash when dismissed [http://bugzilla.gnome.org/show_bug.cgi?id=165130]. Which means that we need this patch now, even though the problem with the blocking of content loading and link clicking in other windows isn't resolved :/
Assignee | ||
Updated•20 years ago
|
Attachment #169126 -
Attachment is obsolete: true
Attachment #172294 -
Flags: review?(marco)
Reporter | ||
Comment 12•20 years ago
|
||
Comment on attachment 172294 [details] [diff] [review] updated patch You probably should use // commments for consistency. The two GTK_WINDOW(aParentWindow) casts seem unnecessary.
Attachment #172294 -
Flags: review?(marco) → review-
Assignee | ||
Comment 13•20 years ago
|
||
Attachment #172294 -
Attachment is obsolete: true
Attachment #172346 -
Flags: superreview?(blizzard)
Attachment #172346 -
Flags: review?(marco)
Reporter | ||
Updated•20 years ago
|
Attachment #172346 -
Flags: review?(marco) → review+
Updated•20 years ago
|
Attachment #172346 -
Flags: superreview?(blizzard) → superreview+
Assignee | ||
Comment 14•20 years ago
|
||
Comment on attachment 172346 [details] [diff] [review] updated patch with reviewer's objections addressed This is an important fix for embedders which use window groups (Epiphany) (see comment 11 and the gnome bug referenced therein), and doesn't change anything if they don't; so it's low risk and should go on branches.
Attachment #172346 -
Flags: approval1.7.6?
Attachment #172346 -
Flags: approval-aviary1.0.1?
Comment 15•19 years ago
|
||
Comment on attachment 172346 [details] [diff] [review] updated patch with reviewer's objections addressed too late for hitchhikers on the security release. a-
Attachment #172346 -
Flags: approval1.7.6?
Attachment #172346 -
Flags: approval1.7.6-
Attachment #172346 -
Flags: approval-aviary1.0.1?
Attachment #172346 -
Flags: approval-aviary1.0.1-
...but please don't forget to land on the trunk.
Assignee | ||
Comment 17•19 years ago
|
||
Comment on attachment 172346 [details] [diff] [review] updated patch with reviewer's objections addressed This is an important fix for embedders which use window groups (Epiphany) (see comment 11 and the gnome bug referenced therein), and doesn't change anything if they don't; so it's low risk and should go on branches.
Attachment #172346 -
Flags: approval1.7.7?
Attachment #172346 -
Flags: approval-aviary1.0.3?
Comment 18•19 years ago
|
||
*** Bug 288617 has been marked as a duplicate of this bug. ***
Is this code used at all in the Firefox and Mozilla Suite apps?
Assignee | ||
Comment 20•19 years ago
|
||
(In reply to comment #19) > Is this code used at all in the Firefox and Mozilla Suite apps? No. It's only used in embedding apps that use GtkMozEmbed (Epiphany).
Comment 21•19 years ago
|
||
Comment on attachment 172346 [details] [diff] [review] updated patch with reviewer's objections addressed not making 177/103, but based on chpe's comments moving the branch nomination along.
Attachment #172346 -
Flags: approval1.7.8?
Attachment #172346 -
Flags: approval1.7.7?
Attachment #172346 -
Flags: approval1.7.7-
Attachment #172346 -
Flags: approval-aviary1.0.4?
Attachment #172346 -
Flags: approval-aviary1.0.3?
Attachment #172346 -
Flags: approval-aviary1.0.3-
Comment 22•19 years ago
|
||
has this landed on the trunk? Shouldn't it land there first (if it hasn't). If it has, can we resolve it Fixed so that it's obvious it landed on the trunk?
Assignee | ||
Comment 23•19 years ago
|
||
(In reply to comment #22) > has this landed on the trunk? Shouldn't it land there first (if it hasn't). If > it has, can we resolve it Fixed so that it's obvious it landed on the trunk? attachment.cgi 172346 is checked in on trunk. Should we mark this one FIXED and file a follow-up bug for the blocking issue?
Comment 24•19 years ago
|
||
would be nice to have a similar (?) patch for Firefox/Thunderbird. It would resolve bug 132710.
Comment 25•19 years ago
|
||
Comment on attachment 172346 [details] [diff] [review] updated patch with reviewer's objections addressed 1.0.5 and 1.7.8 have shipped, removing nominations.
Attachment #172346 -
Flags: approval1.7.8?
Attachment #172346 -
Flags: approval-aviary1.0.5?
Assignee | ||
Comment 26•19 years ago
|
||
Comment on attachment 172346 [details] [diff] [review] updated patch with reviewer's objections addressed Sigh, nominating for next round of branch releases...
Attachment #172346 -
Flags: approval1.7.11?
Attachment #172346 -
Flags: approval-aviary1.0.7?
Updated•19 years ago
|
Attachment #172346 -
Flags: approval1.7.12?
Attachment #172346 -
Flags: approval1.7.11?
Attachment #172346 -
Flags: approval1.7.11-
Comment 27•19 years ago
|
||
Comment on attachment 172346 [details] [diff] [review] updated patch with reviewer's objections addressed a=dveditz for drivers. Please add fixed-aviary1.0.8 and fixed1.7.13 keywords when checked into the branches.
Attachment #172346 -
Flags: approval1.7.13?
Attachment #172346 -
Flags: approval1.7.13+
Attachment #172346 -
Flags: approval-aviary1.0.8?
Attachment #172346 -
Flags: approval-aviary1.0.8+
Comment 28•19 years ago
|
||
Apparently fixed on trunk (comment 23)
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Updated•19 years ago
|
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 29•19 years ago
|
||
-> chpe per comment 26. If this is going to make this release it needs to go in ASAP.
Assignee: blizzard → chpe
Status: REOPENED → NEW
Updated•19 years ago
|
Status: NEW → RESOLVED
Closed: 19 years ago → 19 years ago
Resolution: --- → FIXED
Comment 30•19 years ago
|
||
Comment on attachment 172346 [details] [diff] [review] updated patch with reviewer's objections addressed mozilla/embedding/browser/gtk/src/EmbedPrompter.cpp 1.12.2.2 MOZILLA_1_7_BRANCH mozilla/embedding/browser/gtk/src/EmbedPrompter.cpp 1.12.24.2 AVIARY_1_0_1_20050124_BRANCH
Keywords: fixed-aviary1.0.8,
fixed1.7.13
Updated•12 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•