Closed Bug 513377 Opened 16 years ago Closed 10 years ago

HTML rendered differently depending on window opener - nsIWindowWatcher vs window.open

Categories

(Core Graveyard :: Embedding: APIs, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: jgriffin, Unassigned)

Details

Attachments

(3 files)

Attached file testcase-bad-1 (XUL)
Some HTML content is rendered incorrectly in windows opened using nsIWindowWatcher.openWindow(), but correctly in windows opened using window.open(). This problem was discovered in the context of creating an extension to allow reftests to be run over HTTP. To reproduce: Download the attached testcase-bad-1.xul. Launch firefox with the chrome argument and the path to the xul file, e.g., ./firefox -chrome /path/to/testcase-bad-1.xul. Press Allow if presented with an Internet Security dialog. The xul window will open two new windows, one opened using nsIWindowWatcher.openWindow(), the other using window.open(). Both new windows will load http://people.mozilla.org/~jgriffin/371561-1.html, but the window opened using nsIWindowWatcher.openWindow() will render the content incorrectly; the green bar which should span the width of the underlying text will only be a few pixels wide. The problem disappears if "display:inline" is removed from the source content; load testcase-good.xul to see. Another problem case is found in testcase-bad-2.xul. In this case, the height of the yellow div will be too small in the window opened using nsIWindowWatcher.openWindow(). In this case, the problem will disappear if removing the line: option { height: 0; min-height: 0; }
Attached file testcase-bad-2 (XUL)
Attached file testcase-good (XUL)
Marking a bunch of bugs in the "Embedding: APIs" component INCOMPLETE in preparation to archive that component. If I have done this incorrectly, please reopen the bugs and move them to a more correct component as we don't have "embedding" APIs any more.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → INCOMPLETE
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: