This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 46287
Collapse All | Expand All

(-)openide/src/org/openide/awt/SwingBrowserImpl.java (-2 / +8 lines)
Lines 278-287 Link Here
278
        }
278
        }
279
    }
279
    }
280
    
280
    
281
    private boolean blocked = false;
281
    public void run() {
282
    public void run() {
282
        if (SwingUtilities.isEventDispatchThread()) {
283
        if (SwingUtilities.isEventDispatchThread()) {
283
            title = null;
284
            title = null;
284
            updateTitle();
285
            blocked = true;
286
            try {
287
                updateTitle();
288
            } finally {
289
                blocked = false;
290
            }
285
        } else {
291
        } else {
286
            synchronized (this) {
292
            synchronized (this) {
287
                try {
293
                try {
Lines 421-427 Link Here
421
        protected InputStream getStream (URL page) throws IOException {
427
        protected InputStream getStream (URL page) throws IOException {
422
            SwingUtilities.invokeLater (SwingBrowserImpl.this);
428
            SwingUtilities.invokeLater (SwingBrowserImpl.this);
423
            // XXX debugger ought to set this temporarily
429
            // XXX debugger ought to set this temporarily
424
            if (Boolean.getBoolean("org.openide.awt.SwingBrowserImpl.do-not-block-awt")) {
430
            if (Boolean.getBoolean("org.openide.awt.SwingBrowserImpl.do-not-block-awt") || blocked) {
425
                // try to set contentType quickly and return (don't block AWT Thread)
431
                // try to set contentType quickly and return (don't block AWT Thread)
426
                setContentType ("text/html"); // NOI18N
432
                setContentType ("text/html"); // NOI18N
427
                return new FilteredInputStream (page.openConnection(), 
433
                return new FilteredInputStream (page.openConnection(), 

Return to bug 46287