Closed Bug 1877 Opened 26 years ago Closed 25 years ago

[FEATURE] Javascript window.screen implementation

Categories

(SeaMonkey :: UI Design, defect, P1)

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: balu.ram, Assigned: davidm)

References

Details

(Whiteboard: Mac/GTK have garbage values until dependant bugs are fixed)

Attachments

(1 file)

Hi,
I have a file with the following code. When I try to load in the NGlayout (Geko)
it fails to load.
<script language=javascript>
	window.open("index1.html", "Alerts",

"TOOLBAR=NO,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resiz
able=no,width="+eval("screen.width - 10")+",height="+eval("screen.height -
45")+"screenX=0,screenY=0");
//	close(parent);
</script>
<html>
</html>

Javascript error: Screen is not defined.
URL: file ://N:/alerts/index.html, LineNo:3
Line text: '(null)', Error text: 'null'


Thanks
Assignee: kipp → vidur
Assignee: vidur → joki
Assignee: joki → rpotts
Summary: Javascript error: screen is not defined → window.screen is not fully implemented
I've added the screen object so as to stop causing errors.  The value it
returns are still bogus, though.  Rick, passing this to you as a reminder that
I need this api for screen info.  Pass it back to me when you're done.
Setting all current Open Critical and Major to M3
Component: Layout → Apprunner
OS: Windows 95 → All
Hardware: PC → All
Changed platform and OS to all, and component to Apprunner.

Rick, figure out whether you or Nisheeth should implement this.
Can we downgrade the severity to normal on this one?
QA Contact: 3853
per leger, assigning QA contacts to all open bugs without QA contacts according
to list at http://bugzilla.mozilla.org/describecomponents.cgi?product=Browser
Priority: P2 → P1
QA Contact: 3853 → 3832
Setting QA Contact to rpotts since eng will have to verify this code fix.
Component: Apprunner → XPApps
Target Milestone: M3 → M4
Changed component to XPApps and milestone to M4.
Assignee: rpotts → davidm
Target Milestone: M4 → M5
Re-assigned to davidm@netscape.com and changed target milestone to M5.
Is implementing js objects really an XPApp task? I don't mind doing it if someone
points me in the right direction but I would like to know how many of these
objects there are so I can fix them before they make it to the bug list.
Status: NEW → ASSIGNED
so I don't get spammed
Target Milestone: M5 → M6
Changed milestone to M6.
*** Bug 5463 has been marked as a duplicate of this bug. ***
Target Milestone: M6 → M7
m7
Depends on: 7796, 7797
Filed bugs against layout for not implimenting
nsDeviceContextMac::GetDeviceSurfaceDimensions. Still have to figure out how to
determine which chrome is on a screen when given a window
Summary: window.screen is not fully implemented → [FEATURE] Javascript window.screen implementation
Checked in code. The avail functions currently return default values ( 0 for the
offsets or the hieght/width). On Mac/GTK the values will be garabage until the
dependant bugs are fixed. Still have to work out a strategy for calculating
window chrome location and size. Moving off to m9. I have attached my sample test
file
Target Milestone: M7 → M9
*** Bug 8763 has been marked as a duplicate of this bug. ***
Depends on: 9166
added dependency
*** Bug 9731 has been marked as a duplicate of this bug. ***
Target Milestone: M9 → M11
Not going to happen for m9 lets try ,11
Blocks: 10575
Blocks: 11081
Whiteboard: Mac/GTK have garbage values until dependant bugs are fixed
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Fix checked in an verified on the mac.
No longer blocks: 10575
Product: Core → Mozilla Application Suite
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: