WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
184570
REGRESSION: Using the reload button while offline pushes identical pages onto the back/forward list
https://bugs.webkit.org/show_bug.cgi?id=184570
Summary
REGRESSION: Using the reload button while offline pushes identical pages onto...
Sihui Liu
Reported
2018-04-12 16:24:02 PDT
If device is not connected to the internet, pressing reload button will add item to the history list.
Attachments
Patch
(4.46 KB, patch)
2018-04-15 23:37 PDT
,
Sihui Liu
no flags
Details
Formatted Diff
Diff
Patch
(4.26 KB, patch)
2018-04-18 10:00 PDT
,
Sihui Liu
no flags
Details
Formatted Diff
Diff
Patch
(4.13 KB, patch)
2018-04-18 10:09 PDT
,
Sihui Liu
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Sihui Liu
Comment 1
2018-04-12 16:26:11 PDT
<
rdar://problem/34807323
>
Sihui Liu
Comment 2
2018-04-15 23:37:21 PDT
Created
attachment 337989
[details]
Patch
Chris Dumez
Comment 3
2018-04-18 09:29:13 PDT
Comment on
attachment 337989
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=337989&action=review
r=me with nit fixes.
> Source/WebCore/loader/FrameLoader.cpp:1443 > + } else if (shouldTreatURLAsSameAsCurrent(newDocumentLoader->unreachableURL()) && (m_loadType == FrameLoadType::Reload || m_loadType == FrameLoadType::ReloadExpiredOnly || m_loadType == FrameLoadType::ReloadFromOrigin))
There is a isReload(FrameLoadType) utility function that does what you want.
> Tools/TestWebKitAPI/Tests/WebKitCocoa/LoadAlternateHTMLString.mm:139 > + NSURL* targetURL = WebCore::URLWithData([NSData dataWithBytes:literal length:strlen(literal)], nil);
I would suggest: NSURL *invalidURL = [NSURL URLWithString:@"
https://www.example.com
<>/"]; And dropping your literal variable.
Sihui Liu
Comment 4
2018-04-18 10:00:43 PDT
Created
attachment 338222
[details]
Patch
Sihui Liu
Comment 5
2018-04-18 10:09:31 PDT
Created
attachment 338223
[details]
Patch
WebKit Commit Bot
Comment 6
2018-04-18 10:50:20 PDT
Comment on
attachment 338223
[details]
Patch Clearing flags on attachment: 338223 Committed
r230767
: <
https://trac.webkit.org/changeset/230767
>
WebKit Commit Bot
Comment 7
2018-04-18 10:50:22 PDT
All reviewed patches have been landed. Closing bug.
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