/[blink]
Chromium logo

Revision 201055


Jump to revision: Previous Next
Author: yhirano@chromium.org
Date: Mon Aug 24 10:02:32 2015 UTC (7 years, 8 months ago)
Changed paths: 3
Log Message:
DOMWindow::navigator should return a navigator w/o frame when detached.

Currently DOMWindow::navigator returns a navigator associated with a frame
even when the window is detached from the frame and another window
is attached to it. That means calling frame()->document() may return
an incorrect document, for example.

This CL makes LocalDOMWindow::navigator return a navigator with
a null frame when the window is not associated to the frame.

BUG=522791

Review URL: https://codereview.chromium.org/1308723003

Changed paths

Path Details
Directorytrunk/LayoutTests/http/tests/serviceworker/chromium/frame-detached-by-navigation.html added
Directorytrunk/LayoutTests/http/tests/serviceworker/chromium/frame-removed.html added
Directorytrunk/Source/core/frame/LocalDOMWindow.cpp modified , text changed

Properties

Name Value
commit-bot commit-bot@chromium.org

Powered by ViewVC 1.1.26 ViewVC Help