Closed
      
        Bug 234982
      
      
        Opened 21 years ago
          Closed 21 years ago
      
        
    
  
nsPrintEngine::ShowPrintErrorDialog() fails in many cases     
    Categories
(Core :: Printing: Output, defect)
        Core
          
        
        
      
        
    
        Printing: Output
          
        
        
      
        
    Tracking
()
        RESOLVED
        FIXED
        
    
  
People
(Reporter: roland.mainz, Assigned: roland.mainz)
Details
Attachments
(1 file)
| 1.85 KB,
          patch         | roc
:
              
              review+ roc
:
              
              superreview+ | Details | Diff | Splinter Review | 
nsPrintEngine::ShowPrintErrorDialog() fails in many cases where mozilla should
display one, therefore print errors may not be shown to the user.
This seems to affect mainly FireFox and ThunderBird, but sometimes even
Seamonkey "hides" those errors from the user.
Looking at the following code:
-- snip --
2305   nsCOMPtr<nsIWindowWatcher> wwatch =
do_GetService(NS_WINDOWWATCHER_CONTRACTID, &rv);
2306   if (NS_FAILED(rv))
2307     return;
2308 
2309   nsCOMPtr<nsIDOMWindow> active;
2310   wwatch->GetActiveWindow(getter_AddRefs(active));
2311 
2312   nsCOMPtr<nsIDOMWindowInternal> parent = do_QueryInterface(active);
2313   if (!parent)
2314     return;
-- snip --
|parent| is |nsnull| in this cases - and that's it. No error. And a confused
user.
|   | Assignee | |
| Updated•21 years ago
           | 
Status: NEW → ASSIGNED
|   | Assignee | |
| Comment 1•21 years ago
           | ||
|   | Assignee | |
| Comment 2•21 years ago
           | ||
Comment on attachment 141792 [details] [diff] [review]
Patch for 2004-02-19-trunk
Requesting r=/sr= and checkin= to get rid of this mess...
        Attachment #141792 -
        Flags: superreview?(roc)
        Attachment #141792 -
        Flags: review?(roc)
|   | Assignee | |
| Comment 3•21 years ago
           | ||
rbs:
I remember I originally copied the print error dialog code from the code for
your MathML font warning dialog... is it possible that that dialog suffers from
the same problem ?
The MathML version has evolved from what it was originally. I have never heard
of a problem. On the contrary, I keep hearing of people wanting to get rid of it
-- as expected (by installing the fonts that the dialog complains about :-))
|   | Assignee | |
| Comment 5•21 years ago
           | ||
rbs@maths.uq.edu.au wrote:
> The MathML version has evolved from what it was originally. I have never heard
> of a problem.
BTW: Did you ever found a way to add HTML code as part of the dialog (for links
or tables) ?
> On the contrary, I keep hearing of people wanting to get rid of 
> it -- as expected (by installing the fonts that the dialog complains about 
> :-))
In this case I WANT that people get this dialog. There should be no way to avoid
it.... :)
>BTW: Did you ever found a way to add HTML code as part of the dialog (for links
>or tables) ?
I haven't bothered looking at this ever since. It is assigned to XUL folks as it
depended on things that are yet to happen. I don't recollect to have received
any bugmail that something has happened about them.
        Attachment #141792 -
        Flags: superreview?(roc)
        Attachment #141792 -
        Flags: superreview+
        Attachment #141792 -
        Flags: review?(roc)
        Attachment #141792 -
        Flags: review+
|   | Assignee | |
| Comment 7•21 years ago
           | ||
rbs@maths.uq.edu.au wrote:
> > BTW: Did you ever found a way to add HTML code as part of the dialog (for 
> > links or tables) ?
> I haven't bothered looking at this ever since. It is assigned to XUL folks as 
> it depended on things that are yet to happen.
I guess we need a new bug resolution "XUL-bug-noone-cares-about;ignore-bug" and
mark it as such. Mozilla's XUL implementation is just horrible - lots of stuff
like DOM, printing, BiDi etc. is just unuseable... ;-((
|   | Assignee | |
| Comment 8•21 years ago
           | ||
Patch checked-in by jst
(http://tinderbox.mozilla.org/bonsai/cvsquery.cgi?module=MozillaTinderboxAll&branch=HEAD&cvsroot=/cvsroot&date=explicit&mindate=1077310500&maxdate=1077311160&who=jst%25mozilla.jstenback.com),
marking bug as FIXED.
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
          You need to log in
          before you can comment on or make changes to this bug.
        
Description
•