Closed Bug 56709 Opened 24 years ago Closed 24 years ago

Can't open the DialogWindow.

Categories

(Core :: Security, defect, P3)

x86
Windows NT
defect

Tracking

()

VERIFIED WONTFIX

People

(Reporter: tato, Assigned: security-bugs)

References

()

Details

Can't open the DialogWindow.
test on 2000101408 WinNT 

<script>

function openDlg(url){
{
test1=openDialog(url)
}

</script>
<form>
  <input type="button" value="openDialog1" onClick="openDlg('test.htm')">
  <input type="button" value="openDialog2" onClick="openDialog('test.htm')">
</form>
misspell...
function openDlg(url){
   test1=openDialog(url)
}

I see Security warnings in the JavaScript console. 
Reassigning to Security for further triage -
Assignee: rogerl → mstoltz
Component: Javascript Engine → Security: General
QA Contact: pschwartau → czhang
This is the correct behavior. As of 10/14, window.openDialog is no longer
accessible from non-system code. openDialog has some security problems, and we
didn't think too many people were using it except in chrome. You're not writing
chrome, are you? openDialog with just one parameter is a synonym of
window.open(), can you use that instead? Marking WONTFIX.
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Resolution: --- → WONTFIX
Verified wontfix.
Status: RESOLVED → VERIFIED
>accessible from non-system code. 
It is very disappointing.
I serialized the article of XUL in the Japanese magazine.
So, openDiarog was being used.
Does it lack the possibility that it comes so that it can use it at all?

<menu>
http://game.gr.jp/xul/tips/
<tree>
http://game.gr.jp/xul/tips0010/
<tab>
http://game.gr.jp/xul/tips0011/xul/index.htm
Try using window.open() instead of openDialog. Yes, openDialog is no longer
accessible from web code because it is not secure. Sorry about that.
>openDialog is no longer accessible from web code 
Is it no longer on the local too?
It is callable only by pages in the chrome directory, loaded using a chrome:// url.
Can you use open() instead of openDialog?
Now I change these web pages to window.open(). (Can't change CD-ROM and 
Magazines.)
 
The difference between open() and openDialog() 
1. width & height ( open() is Min 100*100 because it is not secure? )
2. open() is not Diarog...

 
You need to log in before you can comment on or make changes to this bug.