Closed
Bug 130655
Opened 23 years ago
Closed 23 years ago
top.location is being incorrectly changed when frames change
Categories
(Core :: Networking, defect)
Tracking
()
VERIFIED
DUPLICATE
of bug 125225
People
(Reporter: peharri, Assigned: radha)
References
Details
Attachments
(2 files)
I'm going to try and produce code that will reproduce the problem, but the
simpler ones I've tried aren't hacking it so...
I'm having trouble whereby the location property of the top window is getting
messed up when a sub-frame changes and has new stuff loaded into it. The
location box will reflect the URL of a subframe, and the location object will
return blanks for properties I need to access. This is a problem with 0.9.9 but
wasn't a problem with 0.9.8. Has anything major changed?
As soon as I'm able to create a reproducable example that doesn't involve giving
you billions of lines of JavaScript I'll post it.
Thanks,
Paul Harrison
Reporter | ||
Comment 1•23 years ago
|
||
This attachment is a zip file containing a sample frameset that exhibits the
bug. If you need more examples, I can ask my employer to give you access to the
product I work on. While the code above is somewhat ugly (sorry! We use a
somewhat odd third party database package that provides data in the form of
server-served client-side Javascript arrays. As a result, the entire product is
client side.) it does demonstrate the problem.
If you load entry.html into your browser, and ignore the warnings about
blank.html etc being missing, you'll get into a cut down version of our
newsflash facility. The location bar will show the URL of the visible frame at
the bottom of the screen (Bug!). Typing "javascript:
alert(top.location.protocol) in the location box will tell you it's "wyciwyg:".
(Bug!). Viewing "Page Source" will show you the source to the bottom visible
frame again.
Thanks for any help you can provide, please don't hesitate to call me for
further assistance. (772) 220 4410 ex 210.
Reporter | ||
Comment 2•23 years ago
|
||
Before I forget, this has been confirmed on NT4 and Win98 on machines here. I
don't know about other platforms. Both were running build 2002031104.
![]() |
||
Comment 3•23 years ago
|
||
More fun wyciwyg stuff. Radha, does your other patch fix this issue?
Reporter | ||
Comment 4•23 years ago
|
||
More information, after reading your "depends on" bugs this morning:
I tried to create a test case where the "bottom" frame did not include a
document.write..., and found that the bug "went away."
Going through the cases where the same bug afflicts other parts of our project,
in all cases during the lifetime of Javascript scripts called from a loaded
frame, if that javascript calls document.writeln then the URL of the page
containing the kicked off script will be moved to the location.
That mangled English is mangled for a reason: In many cases, the
document.writeln is applying to a frame that isn't the one that kicked off the
script, so it's NOT necessarily the URL of the frame whose document's writeln is
being invoked that gets put in the location bar, just the URL of the frame
which, directly or indirectly, called that writeln method.
Does that help?
I'll see if I can work on a new test case to help here,
Paul
Reporter | ||
Comment 5•23 years ago
|
||
This is a test case demonstrating the principle above. Notes:
1. On running, the location box will reflect the URL of the bottom visible
frame where the code that calls the code to write to the top frame's document
object is initiated.
2. There is no write to the lower visible frame's document object.
It's still a little ugly (I suspect most of the **** in there to do with our
project can be stripped out) but I don't want to remove that stuff in case I
end up *gag* fixing something ;-)
This pretty much obsoletes my old test case but Bugzilla will not let me mark
it as such.
Assignee | ||
Comment 6•23 years ago
|
||
I think this is a dupe of 125225. I haven't tried the testcase attached here.
Once I do that, I will confirm the same.
Assignee | ||
Comment 7•23 years ago
|
||
Confirming. This is a dupe of bug 125225
*** This bug has been marked as a duplicate of 125225 ***
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
Comment 8•23 years ago
|
||
verified dupe
Status: RESOLVED → VERIFIED
Summary: top.location is being changed incorrectly when frames change → top.location is being chantly when framesged incorrec change
Reporter | ||
Updated•23 years ago
|
Summary: top.location is being chantly when framesged incorrec change → top.location is being incorrectly changed when frames change
Reporter | ||
Comment 9•23 years ago
|
||
Summary was garbled by last change.
I hope the person who garbledthe summary wasn't using Mozilla ;-)
Comment 10•8 years ago
|
||
:mcmanus, how can a 15 years old duplicate dom related bug block pipelinining?
Comment 11•8 years ago
|
||
(In reply to Frank Nestel from comment #10)
> :mcmanus, how can a 15 years old duplicate dom related bug block
> pipelinining?
a typo, i.e. 1340655
You need to log in
before you can comment on or make changes to this bug.
Description
•