Closed Bug 774100 Opened 13 years ago Closed 12 years ago

reload causes onlocationchange to stop triggering

Categories

(Core :: DOM: Navigation, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: daleharvey, Assigned: daleharvey)

References

Details

The situation is 2 seperate mozbrowser iframes with the same parent, one iframe calls location.reload() and the other subsequently tests for security / location changes. http://mxr.mozilla.org/mozilla-central/source/docshell/base/nsDocShell.cpp#1873 prior to a reload, isSubShell is always true (its false by default then set to true subsequently), even after the reload there is a few calls to nsDocShell:CloneAndReplace which explicity set this to true, but it comes out false from that point on will fail to trigger onLocationChanges's, which securityChange depends on to reset various things. Will add a test shortly
And just a clarrification, this only happens when the iframes are run inside the same process, it doesnt happen with oop frames.
Component: DOM → Document Navigation
Summary: reload causes onlocation to stop triggering → reload causes onlocationchange to stop triggering
Assignee: nobody → dale
I cant reproduce this anymore
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → INVALID
(In reply to Jim Mathies [:jimm] from comment #3) > If this was addresses, should we enable the disabled test? > > http://mxr.mozilla.org/mozilla-central/source/dom/browser-element/mochitest/ > Makefile.in#164 If that test works, yes please!
You need to log in before you can comment on or make changes to this bug.