WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
195647
Add WebFrameProxy::loadData
https://bugs.webkit.org/show_bug.cgi?id=195647
Summary
Add WebFrameProxy::loadData
Jiewen Tan
Reported
2019-03-12 15:37:09 PDT
Add WebFrameProxy::loadData.
Attachments
Patch
(5.39 KB, patch)
2019-03-12 15:47 PDT
,
Jiewen Tan
youennf
: review+
Details
Formatted Diff
Diff
Patch for landing
(5.40 KB, patch)
2019-03-12 16:58 PDT
,
Jiewen Tan
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2019-03-12 15:38:15 PDT
<
rdar://problem/48826856
>
Jiewen Tan
Comment 2
2019-03-12 15:44:42 PDT
The Internal counterpart is within: <
rdar://problem/48048800
>.
Jiewen Tan
Comment 3
2019-03-12 15:47:13 PDT
Created
attachment 364463
[details]
Patch
youenn fablet
Comment 4
2019-03-12 16:25:15 PDT
Comment on
attachment 364463
[details]
Patch It might be good to add a test for that if it is difficult to test it without additional features. Maybe we could expose a private API on the web view for testing purposes only. This API could take a frameId and some data to be loaded. TestRunner would then grab the frameId and call that new API. View in context:
https://bugs.webkit.org/attachment.cgi?id=364463&action=review
> Source/WebKit/WebProcess/WebPage/WebPage.cpp:1401 > + SubstituteData substituteData(WTFMove(sharedBuffer), URL(), WTFMove(response), SubstituteData::SessionHistoryVisibility::Hidden);
It is true that the above code is not doing that but I would tend to set the correct URL in both response and substituteData.
Jiewen Tan
Comment 5
2019-03-12 16:47:33 PDT
(In reply to youenn fablet from
comment #4
)
> Comment on
attachment 364463
[details]
> Patch > > It might be good to add a test for that if it is difficult to test it > without additional features. > > Maybe we could expose a private API on the web view for testing purposes > only. > This API could take a frameId and some data to be loaded. > TestRunner would then grab the frameId and call that new API.
I am not sure whether it will be good idea to expose this into SPI, which will then be misused probably. Do we have test only SPIs?
> > View in context: >
https://bugs.webkit.org/attachment.cgi?id=364463&action=review
> > > Source/WebKit/WebProcess/WebPage/WebPage.cpp:1401 > > + SubstituteData substituteData(WTFMove(sharedBuffer), URL(), WTFMove(response), SubstituteData::SessionHistoryVisibility::Hidden); > > It is true that the above code is not doing that but I would tend to set the > correct URL in both response and substituteData.
Sure.
Jiewen Tan
Comment 6
2019-03-12 16:58:42 PDT
Created
attachment 364475
[details]
Patch for landing
WebKit Commit Bot
Comment 7
2019-03-12 17:36:08 PDT
Comment on
attachment 364475
[details]
Patch for landing Clearing flags on attachment: 364475 Committed
r242836
: <
https://trac.webkit.org/changeset/242836
>
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