Changeset 155615 in webkit


Ignore:
Timestamp:
Sep 12, 2013 8:46:54 AM (11 years ago)
Author:
Alan Bujtas
Message:

REGRESSION: Inline PDF that are cached fail to appear in iframe.
https://bugs.webkit.org/show_bug.cgi?id=75449

Reviewed by Darin Adler.

Make sure 'frame is from page cache' flag is set for subframes too.

WebFrameLoaderClient::m_frameCameFromPageCache == true forces plugins
to be loaded manually. It ensures that the plugin raw data is fetched again
while the containing frame is being restored from the page cache.
(Plugins get destroyed when the frame goes to page cache.)

Source/WebKit2:

  • WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:

(WebKit::WebFrameLoaderClient::transitionToCommittedFromCachedFrame):
This gets called only on the frame where the actual history navigation happens.
(WebKit::WebFrameLoaderClient::didRestoreFromPageCache):
This gets called for all the restored frames.

LayoutTests:

  • fast/history/history-back-while-pdf-in-pagecache-expected.html: Added.
  • fast/history/history-back-while-pdf-in-pagecache.html: Added.
  • fast/history/resources/history-back-for-pfd-test.html: Added.
Location:
trunk
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r155611 r155615  
     12013-09-12  Zalan Bujtas  <zalan@apple.com>
     2
     3        REGRESSION: Inline PDF that are cached fail to appear in iframe.
     4        https://bugs.webkit.org/show_bug.cgi?id=75449
     5
     6        Reviewed by Darin Adler.
     7
     8        Make sure 'frame is from page cache' flag is set for subframes too.
     9
     10        WebFrameLoaderClient::m_frameCameFromPageCache == true forces plugins
     11        to be loaded manually. It ensures that the plugin raw data is fetched again
     12        while the containing frame is being restored from the page cache.
     13        (Plugins get destroyed when the frame goes to page cache.)
     14
     15        * fast/history/history-back-while-pdf-in-pagecache-expected.html: Added.
     16        * fast/history/history-back-while-pdf-in-pagecache.html: Added.
     17        * fast/history/resources/history-back-for-pfd-test.html: Added.
     18
    1192013-09-12  Gabor Abraham  <abrhm@inf.u-szeged.hu>
    220
  • trunk/Source/WebKit2/ChangeLog

    r155582 r155615  
     12013-09-12  Zalan Bujtas  <zalan@apple.com>
     2
     3        REGRESSION: Inline PDF that are cached fail to appear in iframe.
     4        https://bugs.webkit.org/show_bug.cgi?id=75449
     5
     6        Reviewed by Darin Adler.
     7
     8        Make sure 'frame is from page cache' flag is set for subframes too.
     9
     10        WebFrameLoaderClient::m_frameCameFromPageCache == true forces plugins
     11        to be loaded manually. It ensures that the plugin raw data is fetched again
     12        while the containing frame is being restored from the page cache.
     13        (Plugins get destroyed when the frame goes to page cache.)
     14
     15        * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
     16        (WebKit::WebFrameLoaderClient::transitionToCommittedFromCachedFrame):
     17        This gets called only on the frame where the actual history navigation happens.
     18        (WebKit::WebFrameLoaderClient::didRestoreFromPageCache):
     19        This gets called for all the restored frames.
     20
    1212013-09-11  Simon Fraser  <simon.fraser@apple.com>
    222
  • trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp

    r155289 r155615  
    11851185void WebFrameLoaderClient::transitionToCommittedFromCachedFrame(CachedFrame*)
    11861186{
    1187     m_frameCameFromPageCache = true;
    11881187}
    11891188
     
    12411240void WebFrameLoaderClient::didRestoreFromPageCache()
    12421241{
     1242    m_frameCameFromPageCache = true;
    12431243}
    12441244
Note: See TracChangeset for help on using the changeset viewer.