Closed
Bug 38576
Opened 26 years ago
Closed 26 years ago
commonDialog.js dialog is too wide for screen
Categories
(Core Graveyard :: Embedding: APIs, defect, P3)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: locka, Assigned: alecf)
References
()
Details
I clicked on the submit button in a form (see sample URL) and I was presented
with the dialog "Any information you submit is insecure and could be observed by
a third party ... " etc. that appears every time you do this unless you uncheck
the "Show Me This Alert Next Time". Unfortunately, the message is so long that
the dialog stretches to the display width and still does not show the whole
message.
The dialog should be a sensible size and wrap the message to fit if it is too
long to display on one line.
Comment 3•26 years ago
|
||
This looks like DougT's, reassigning.
Assignee: trudelle → dougt
Component: XP Toolkit/Widgets: XUL → XP Miscellany
Comment 4•26 years ago
|
||
Peter, the problem is that the Alert and Confirm dialogs do a poor job at
wrapping text. I am not sure who owns this. Back to you.
Assignee: dougt → trudelle
Comment 5•26 years ago
|
||
I think this 'too wide alert' comes from the code in commonDialog.js, where
the message text is put inside a <text> element. These elements do not wrap
by definition (no?). I'm not sure what the right fix for this is though. alecf?
| Assignee | ||
Comment 6•26 years ago
|
||
I think this is a bug with boxes, because new children to vertically-oriented
boxes are being added to the box as if the box is horizontally aligned.
Adding evaughan, box owner
Comment 7•26 years ago
|
||
I cheated and spoke with eric earlier. Try a change like this to
commonDialog.js (not that it makes the dialog pretty, but line-wrapping
is restored/width is reasonable)
> diff -c commonDialog.js.orig commonDialog.js
*** commonDialog.js.orig Thu May 11 19:45:32 2000
--- commonDialog.js Thu May 11 19:45:41 2000
***************
*** 60,68 ****
done = true;
messageFragment = messageText;
}
! var textnode = document.createElement("text");
! textnode.setAttribute("value", messageFragment);
! messageParent.appendChild(textnode);
}
}
var msg = param.GetString( 3 );
--- 60,69 ----
done = true;
messageFragment = messageText;
}
! var textnode = document.createTextNode(messageFragment);
! var htmlnode = document.createElement("html");
! htmlnode.appendChild(textnode);
! messageParent.appendChild(htmlnode);
}
}
var msg = param.GetString( 3 );
| Assignee | ||
Comment 8•26 years ago
|
||
ok.... but what did eric say about adding elements to the box? should we file a
new bug?
Comment 9•26 years ago
|
||
Sorry, I wasn't clear. I spoke with Eric earlier this afternoon, before your
note above. I didn't ask him about your 'box children orientation' question.
Yes, file a bug (although did this just start happening since this morning?
I don't see it in a quick test with an a.m. build).
Do you want to take this bug, by the way?
| Assignee | ||
Comment 10•26 years ago
|
||
do you mind just checking in your patch for now? looks good to me.
Comment 11•26 years ago
|
||
Ah, but I just a plebe with no checkin powers or know-how :-] Over to you ...
Comment 12•26 years ago
|
||
what's the point of this alert? sites can gather information without using
submittable forms, and many sites with forms do not gather information.
Comment 13•26 years ago
|
||
Jesse : that's a topic for a newsgroup or a separate bug report. This issue
really boils down to a generic bit of dialog behaviour. [Although, personally
I feel that this warning is instructive and appropriate].
Summary: "Security warning" dialog is too wide for screen → commonDialog.js dialog is too wide for screen
| Assignee | ||
Comment 15•26 years ago
|
||
fix checked in, thanks john
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Comment 16•25 years ago
|
||
Works for Me
Platform: PC
OS: Windows 98
Build # 2000100508
Marking as Verified
Status: RESOLVED → VERIFIED
Updated•7 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•