Fixed http://bugs.webkit.org/show_bug.cgi?id=11712
REGRESSION: Crash when clicking JS link on crateandbarrel.com (window.open("http[...]"))
This was an accidental commit by Anders.
Chrome can't use the FrameView at window.open time, because it doesn't
exist yet.
* page/Chrome.cpp:
(WebCore::Chrome::pageRect):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@17931
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2006-11-29 Geoffrey Garen <ggaren@apple.com>
+
+ Reviewed by Anders Carlsson.
+
+ Fixed http://bugs.webkit.org/show_bug.cgi?id=11712
+ REGRESSION: Crash when clicking JS link on crateandbarrel.com (window.open("http[...]"))
+
+ This was an accidental commit by Anders.
+
+ Chrome can't use the FrameView at window.open time, because it doesn't
+ exist yet.
+
+ * page/Chrome.cpp:
+ (WebCore::Chrome::pageRect):
+
2006-11-29 Geoffrey Garen <ggaren@apple.com>
Reviewed by Mitz Pettel.
#include "ChromeClient.h"
#include "FloatRect.h"
-#include "Frame.h"
-#include "FrameView.h"
#include "Page.h"
#include "ResourceLoader.h"
#include <wtf/PassRefPtr.h>
FloatRect Chrome::pageRect() const
{
- return m_page->mainFrame()->view()->visibleContentRect();
+ return m_client->pageRect();
}
float Chrome::scaleFactor()