WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
110652
add to HistoryItem a way to know if its underlying CachedPage has expired
https://bugs.webkit.org/show_bug.cgi?id=110652
Summary
add to HistoryItem a way to know if its underlying CachedPage has expired
Alice Liu
Reported
2013-02-22 15:31:48 PST
Add to HistoryItem a way to know if its underlying CachedPage has expired. This inevitably touches some existing code that has hard-coded the expiration time for a back/forward PageCached-item to 1800. It was okay to have hard-coded these because the FIXMEs made it okay. Fixmes make everything okay.
Attachments
not for review, just running through bots
(13.04 KB, patch)
2013-02-22 15:54 PST
,
Alice Liu
buildbot
: commit-queue-
Details
Formatted Diff
Diff
patch
(12.69 KB, patch)
2013-02-22 18:13 PST
,
Alice Liu
beidson
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Alice Liu
Comment 1
2013-02-22 15:54:49 PST
Created
attachment 189853
[details]
not for review, just running through bots
Build Bot
Comment 2
2013-02-22 17:46:32 PST
Comment on
attachment 189853
[details]
not for review, just running through bots
Attachment 189853
[details]
did not pass mac-wk2-ews (mac-wk2): Output:
http://queues.webkit.org/results/16719342
Alice Liu
Comment 3
2013-02-22 18:13:41 PST
Created
attachment 189888
[details]
patch
Brady Eidson
Comment 4
2013-02-26 11:17:30 PST
Comment on
attachment 189888
[details]
patch View in context:
https://bugs.webkit.org/attachment.cgi?id=189888&action=review
r+ with that change
> Source/WebCore/history/CachedPage.cpp:56 > : m_timeStamp(currentTime()) > + , m_expiration(m_timeStamp + page->settings()->backForwardCacheExpirationInterval()) > , m_cachedMainFrame(CachedFrame::create(page->mainFrame()))
Could this be m_expirationTime instead?
> Source/WebCore/history/CachedPage.cpp:122 > +bool CachedPage::hasExpired() const > +{ > + return currentTime() > m_expiration; > +}
If it was, this code would read more naturally.
Alice Liu
Comment 5
2013-03-14 00:34:04 PDT
committed
r145789
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug