Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(397)

Issue 2531013002: WebView loadDataWithBaseURL() was determined as a same page navigation (Closed)

Created:
4 years ago by Takashi Toyoshima
Modified:
4 years ago
Reviewers:
Charlie Reis, Torne, dcheng
CC:
chromium-reviews, tyoshino+watch_chromium.org, loading-reviews_chromium.org, gavinp+loader_chromium.org, blink-reviews, kinuko+watch, Nate Chapin, android-webview-reviews_chromium.org, boliu
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

WebView loadDataWithBaseURL() was determined as a same page navigation In WebView, if loadDataWithBaseURL() is called with null or non-data baseUrl consequently, previous historyUrl and new baseUrl is compared to detemine a same page navigation. To be consistent with others, we need to use the new URL for the comparison, but it isn't clear what should be URL for loadDataWithBaseURL(). In this patch, we assume loadDataWithBaseURL() does not make a same page navigation always to be compatible in most API usages. BUG=662823

Patch Set 1 #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -1 line) Patch
M android_webview/javatests/src/org/chromium/android_webview/test/AndroidScrollIntegrationTest.java View 2 chunks +65 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoader.cpp View 1 chunk +6 lines, -1 line 5 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.cpp View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (7 generated)
Takashi Toyoshima
Hi, can you take a look? creis@ do you think this is a right fix ...
4 years ago (2016-11-25 11:54:56 UTC) #7
Torne
This LGTM from a WebView perspective; this just means webview will be back to the ...
4 years ago (2016-11-28 11:48:57 UTC) #8
Torne
This LGTM from a WebView perspective; this just means webview will be back to the ...
4 years ago (2016-11-28 11:48:57 UTC) #9
Charlie Reis
[+dcheng] Sorry, I'm out of my depth here (and not an owner in Blink). I ...
4 years ago (2016-11-28 20:07:27 UTC) #11
dcheng
https://codereview.chromium.org/2531013002/diff/1/third_party/WebKit/Source/core/loader/FrameLoader.cpp File third_party/WebKit/Source/core/loader/FrameLoader.cpp (right): https://codereview.chromium.org/2531013002/diff/1/third_party/WebKit/Source/core/loader/FrameLoader.cpp#newcode945 third_party/WebKit/Source/core/loader/FrameLoader.cpp:945: bool isDataUrlWithEmulatedBaseUrl = request.substituteData().isValid(); I echo Charlie's concern here: ...
4 years ago (2016-11-28 20:12:55 UTC) #12
Takashi Toyoshima
I filed a new bug crbug.com/669408 as creis@ suggested. Torne, can you join the thread? ...
4 years ago (2016-11-29 09:13:33 UTC) #13
Takashi Toyoshima
https://codereview.chromium.org/2531013002/diff/1/third_party/WebKit/Source/core/loader/FrameLoader.cpp File third_party/WebKit/Source/core/loader/FrameLoader.cpp (right): https://codereview.chromium.org/2531013002/diff/1/third_party/WebKit/Source/core/loader/FrameLoader.cpp#newcode942 third_party/WebKit/Source/core/loader/FrameLoader.cpp:942: // TODO(crbug.com/662823): WebFrameLoaderImpl::loadData() sets baseUrl for Filed a new ...
4 years ago (2016-11-29 09:39:36 UTC) #14
Torne
On 2016/11/29 09:13:33, toyoshim wrote: > I filed a new bug crbug.com/669408 as creis@ suggested. ...
4 years ago (2016-11-29 13:53:58 UTC) #15
Takashi Toyoshima
IMO, Blink should not make much efforts to keep minor old behaviors that are not ...
4 years ago (2016-11-30 06:24:56 UTC) #16
Torne
On 2016/11/30 06:24:56, toyoshim wrote: > IMO, Blink should not make much efforts to keep ...
4 years ago (2016-11-30 10:22:10 UTC) #17
Takashi Toyoshima
> You're overlooking a much more important effect of the base URL, which is that ...
4 years ago (2016-11-30 10:36:03 UTC) #18
Torne
On 2016/11/30 10:36:03, toyoshim wrote: > > You're overlooking a much more important effect of ...
4 years ago (2016-11-30 10:47:55 UTC) #19
Takashi Toyoshima
I checked an old API document from SDK 1.0r2, and am a bit confused actually. ...
4 years ago (2016-11-30 10:51:53 UTC) #20
Torne
On 2016/11/30 10:51:53, toyoshim wrote: > I checked an old API document from SDK 1.0r2, ...
4 years ago (2016-11-30 10:55:43 UTC) #21
Torne
The current function signature and documentation have been there since at least Froyo (the oldest ...
4 years ago (2016-11-30 10:57:46 UTC) #22
Takashi Toyoshima
Re#19 Regardless of my CL, reported case has been assumed as a same page navigation ...
4 years ago (2016-11-30 11:21:51 UTC) #23
Takashi Toyoshima
Re #21 > The expected behaviour is whatever WebView does, as I said - that's ...
4 years ago (2016-11-30 12:12:57 UTC) #24
Torne
On 2016/11/30 11:21:51, toyoshim wrote: > Re#19 > > Regardless of my CL, reported case ...
4 years ago (2016-11-30 14:08:21 UTC) #25
Torne
On 2016/11/30 12:12:57, toyoshim wrote: > Re #21 > > The expected behaviour is whatever ...
4 years ago (2016-11-30 14:19:32 UTC) #26
dcheng
On 2016/11/30 14:19:32, Torne wrote: > On 2016/11/30 12:12:57, toyoshim wrote: > > Re #21 ...
4 years ago (2016-12-02 19:17:14 UTC) #27
Torne
On 2016/12/02 19:17:14, dcheng wrote: > So I agree with toyoshim: we should rename/clarify the ...
4 years ago (2016-12-05 14:49:14 UTC) #28
dcheng
On 2016/12/05 14:49:14, Torne wrote: > On 2016/12/02 19:17:14, dcheng wrote: > > So I ...
4 years ago (2016-12-05 18:24:31 UTC) #29
Torne
On 2016/12/05 18:24:31, dcheng wrote: > On 2016/12/05 14:49:14, Torne wrote: > > On 2016/12/02 ...
4 years ago (2016-12-05 18:26:02 UTC) #30
dcheng
On 2016/12/05 18:26:02, Torne wrote: > On 2016/12/05 18:24:31, dcheng wrote: > > On 2016/12/05 ...
4 years ago (2016-12-05 18:27:49 UTC) #31
Torne
On 2016/12/05 18:27:49, dcheng wrote: > A top-level about:blank page effectively has unique origin... but ...
4 years ago (2016-12-06 12:25:26 UTC) #32
Takashi Toyoshima
Thank you for discussing here. Yes, I want to know if this can cause a ...
4 years ago (2016-12-06 12:40:44 UTC) #33
Takashi Toyoshima
4 years ago (2016-12-09 05:59:25 UTC) #34
We haven't received any updates from the original reporter.
So, I closed the report as WontFix because in terms of spec and implementation,
this could be assumed as an intentional behavior change.

Powered by Google App Engine
This is Rietveld 408576698