With:

browser_default_open_target = OPEN_NEW_WINDOW;

any sort of content-initiated new window, e.g. target=_blank or
window.open() from JavaScript, results in no new window being created at
all (i.e. the attempt to create a new window appears to have no effect),
and the following error appearing in the jsconsole:

Error: uncaught exception: [Exception... "Component returned failure code:
0x80004005 (NS_ERROR_FAILURE) [nsIDOMJSWindow.open]"  nsresult: "0x80004005
(NS_ERROR_FAILURE)"  location: "JS frame :: javascript:window.open(); ::
<TOP_LEVEL> :: line 1"  data: no]

It seems possible that the window is being partially created but not shown,
because after such an error occurs, merely closing the visible windows
doesn't cause the browser to exit.

I traced the problem to commit b432b8233d98df6aafb2382070cef2f63c239910,
which attempts to solve the missing scrollbar problem by setting the
content type to content-primary in window_initialize_late_hook.  I assume
it is set in the hook, as opposed to not at all, specifically to try to
avoid the problem I am experiencing, but it evidently does not work for me
(I have observed this with both the release version of firefox-8 as an
xulrunner, and also with xulrunner 2.0).

Reverting that commit fixes the problem with opening windows; it would
probably also unfix the scrollbar issue if not for my use of the existing
workaround:

add_hook("window_initialize_late_hook",
        function(window) {
            window.buffers.get_buffer(0).top_frame.scrollbars.visible =
true;
        });


I assume since this has gone unnoticed that others aren't experiencing the
same problem, but I wonder why.  (Or maybe no one else has
browser_default_open_target set to OPEN_NEW_WINDOW.)
_______________________________________________
Conkeror mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/conkeror

Reply via email to