bugzilla.mozilla.org has resumed normal operation. Attachments prior to 2014 will be unavailable for a few days. This is tracked in Bug 1475801.
Please report any other irregularities here.

require('window/utils').open creates empty window, when called without explicit features

RESOLVED INCOMPLETE

Status

Add-on SDK
General
P3
normal
RESOLVED INCOMPLETE
5 years ago
10 months ago

People

(Reporter: Ralf Strobel, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

5 years ago
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:22.0) Gecko/20100101 Firefox/22.0 (Beta/Release)
Build ID: 20130618035212

Steps to reproduce:

require('window/utils').open() called without any arguments on SDK 1.14, FF 22.


Actual results:

The created window was completely empty (no user interface elements).

Upon code inspection, the reason is that serializeFeatures() defaults to an empty string instead of null, which is expected by windowWatcher.openWindow() to create a standard window.


Expected results:

I expected this call would default to creating a new standard browser window, equivalent to:
windowWatcher.openWindow(null, 'chrome://browser/content/browser.xul', null, null, null);
(Reporter)

Updated

5 years ago
OS: All → Windows 7
Hardware: All → x86_64
Summary: require('window/utils').open creates empty window without explicit features → require('window/utils').open creates empty window, when called without explicit features
This opens a top-level window, I might argue that with no URI it should just throw an exception but I can understand defaulting to the default app UI.
Priority: -- → P3
https://bugzilla.mozilla.org/show_bug.cgi?id=1399562
Status: UNCONFIRMED → RESOLVED
Last Resolved: 10 months ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.