[Title] Update a work-around patch for a naver page
[framework/web/webkit-efl.git] / Source / WebKit2 / WebProcess / WebCoreSupport / WebChromeClient.cpp
index acb4939..166b8b5 100755 (executable)
@@ -509,19 +509,11 @@ PlatformPageClient WebChromeClient::platformPageClient() const
 bool WebChromeClient::canContentsSizeChange(Frame* frame, const IntSize& size) const
 {
     // FIXME1: This patch should be removed AS SOON AS unexpected layout change problem is fixed.
-    // ex) m.news.naver.com
-    // FIXME2: By this patch, contents size is not changed properly on big size contents
-    // ex) www.expedia.com - fixedLayoutSize.width: 980, changedContentsSize: 1272
-    // ex) www.adobe.com - fixedLayoutSize.width: 360, changedContentsSize: 950
-    // ex) www.mt.co.kr (desktop site) - fixedLayoutSize.width: 980, changedContentsSize: 1090
-    FrameView* view = m_page->mainFrame()->view();
-    if (view->fixedLayoutSize().width() != size.width()
-        && size.width() < m_page->viewportSize().width()
-        // This condition is for regression by this work-around patch.
-        // http://en.wordpress.com/wp-login.php?action=lostpassword site doesn't work by this patch.
-        // This patch should be removed as soon as possible.
-        && m_page->corePage()->viewportArguments().initialScale > 0.9)
+    // A page on naver isn't fitted when device is moved from landscape to portrait.
+    String url = frame->document()->url().string();
+    if (url.startsWith("https://nid.naver.com/user"))
         return false;
+
     return true;
 }
 #endif