-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[webview_flutter_platform_interface] Adds WebResourceRequest to HttpResponseError #4025
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat (don't just cc him here, he won't see it! He's on Discord!). If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix? Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
...es/webview_flutter/webview_flutter_platform_interface/lib/src/types/http_response_error.dart
Show resolved
Hide resolved
...es/webview_flutter/webview_flutter_platform_interface/lib/src/types/http_response_error.dart
Show resolved
Hide resolved
56f3997
to
6c4be6a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with a couple of nits
.../webview_flutter/webview_flutter_platform_interface/lib/src/types/web_resource_response.dart
Outdated
Show resolved
Hide resolved
.../webview_flutter/webview_flutter_platform_interface/lib/src/types/web_resource_response.dart
Outdated
Show resolved
Hide resolved
...es/webview_flutter/webview_flutter_platform_interface/lib/src/types/http_response_error.dart
Outdated
Show resolved
Hide resolved
.../webview_flutter/webview_flutter_platform_interface/lib/src/types/web_resource_response.dart
Outdated
Show resolved
Hide resolved
packages/webview_flutter/webview_flutter_platform_interface/CHANGELOG.md
Outdated
Show resolved
Hide resolved
...es/webview_flutter/webview_flutter_platform_interface/lib/src/types/http_response_error.dart
Outdated
Show resolved
Hide resolved
.../webview_flutter/webview_flutter_platform_interface/lib/src/types/web_resource_response.dart
Outdated
Show resolved
Hide resolved
.../webview_flutter/webview_flutter_platform_interface/lib/src/types/web_resource_response.dart
Outdated
Show resolved
Hide resolved
@HugoOlthof Are you still planning on updating this based on the feedback above? |
@stuartmorgan I am, I was on vacation for a few weeks :) I will update the PR as soon as possible. |
1d50f39
to
b3b50f1
Compare
...es/webview_flutter/webview_flutter_platform_interface/lib/src/types/http_response_error.dart
Outdated
Show resolved
Hide resolved
...s/webview_flutter/webview_flutter_platform_interface/lib/src/types/web_resource_request.dart
Outdated
Show resolved
Hide resolved
...s/webview_flutter/webview_flutter_platform_interface/lib/src/types/web_resource_request.dart
Outdated
Show resolved
Hide resolved
@HugoOlthof Are you planning on addressing the remaining review comments here? |
b3b50f1
to
8fa0424
Compare
@HugoOlthof I see there are commits since my last comment; was this ready for re-review? |
@stuartmorgan Yes it is :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
The stuck |
@HugoOlthof Thanks for the contribution! Will you be able to do the merge to get this landed? |
8fa0424
to
b7e23a8
Compare
@bparrishMines Ping on this second review |
.../webview_flutter/webview_flutter_platform_interface/lib/src/types/web_resource_response.dart
Outdated
Show resolved
Hide resolved
What is the next step here? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In all of the discussion I lost track of the fact that this is missing tests.
The new data types should have trivial tests that they work as expected, and we should have a test that would have caught the missing export
(e.g., something that imports just types.dart
and then tries to construct a HttpResponseError
with all of its fields.
}); | ||
|
||
/// The URI that this response is associated with. | ||
final String? uri; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I know I said we should go back to String?
above, but now that I'm looking at it again in the context of not asking it to be changed to a request object: shouldn't it be Uri?
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
types.dart
needs to export
both of these new files, unless I'm missing something, since it exports http_response_error.dart
and these are now part of that class's public interface.
Obsoleted by #5790 |
…rror (flutter#5790) This is a copy of flutter#4025 with updates from PR comments. The original didn't allow maintainers to update the code, so I create this branch.
As requested in #3695 this PR adds the WebResourceRequest object to HttpResponseError so it's possible for the client to know which request failed.
Pre-launch Checklist
dart format
.)[shared_preferences]
pubspec.yaml
with an appropriate new version according to the [pub versioning philosophy], or this PR is [exempt from version changes].CHANGELOG.md
to add a description of the change, [following repository CHANGELOG style].///
).