Closed
Bug 93885
Opened 23 years ago
Closed 23 years ago
javascript:open() in address field shouldn't care what the current page is
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: mpt, Assigned: jst)
Details
(Sorry, Browser-General people, I have no idea which component this should go in.)
Build: 2001080308, Mac OS 9.1
To reproduce:
1. Make a basic test.xul file in your `Documents' folder (or equivalent for
your system).
2. Make a copy of the file in the `res' folder in your Mozilla installation.
3. In Navigator, open a local HTML file (such as bookmarks.html).
4. In Navigator's address field, type
javascript:open("file:///Macintosh%20HD/Documents/test.xul", "",
"width=200,height=200")
(or the equivalent URL for your system) and press Enter. Close the window
that opens.
5. In Navigator's address field, type
javascript:open("resource://strres-test.xul", "", "width=200,height=200")
and press Enter. Close the window that opens.6. Now go to
<http://bugzilla.mozilla.org/>, or any other remote URL.
7. Repeat step 4.
8. Repeat step 5.
What should happen:
7. The same window appears as appeared in step 4.
8. The same window appears as appeared in step 5.
What actually happens:
7. Nothing.
8. Nothing.
Comment 1•23 years ago
|
||
Over to DOM. I bet js in the location bar runs in the current page's security
context... ccing mstoltz
Assignee: asa → jst
Component: Browser-General → DOM Level 0
QA Contact: doronr → desale
Assignee | ||
Comment 2•23 years ago
|
||
This works as designed, typeing javascript:foo in the URL bar is equivalent to
executing the javascript 'foo' in the current page. WONTFIX.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → WONTFIX
Reporter | ||
Comment 3•23 years ago
|
||
> typeing javascript:foo in the URL bar is equivalent to executing the
> javascript 'foo' in the current page.
That's why I filed the bug. The function clearly has absolutely nothing to do
with the current page, so it makes absolutely no sense for it to be pretending
it is code in the current page. It doesn't even work when I don't have any
pages open!
Status: RESOLVED → REOPENED
Resolution: WONTFIX → ---
Comment 4•23 years ago
|
||
> The function clearly has absolutely nothing to do with the current page
mpt, most uses of javascript: in the url bar are to debug the current page.... I
can see how we should consider doing something special for about:blank....
maybe....
Assignee | ||
Comment 5•23 years ago
|
||
javascript: URL's in the URL bar have everything to do with the current page,
that's just how it works, in mozilla, and in all other browsers. Try
javascript:alert(window.location.href) in any browser and you'll get the URL of
the current page.
WONTFIX, again.
Status: REOPENED → RESOLVED
Closed: 23 years ago → 23 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•