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

Issue 652953008: Navigation transitions (web to native app): Pass data after starting provisional load (Chrome side) (Closed)

Created:
6 years, 2 months ago by Zhen Wang
Modified:
6 years, 1 month ago
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Navigation transitions (web to native app): Pass data after starting provisional load (Chrome side) Pass transitional elements' CSS selector, names and rects to TransitionPageHelper after starting provisional load. Those data are needed when overriding the URL navigation to jump to a native Android app. The is the Chrome side of the CL. The Clank side is here: https://chrome-internal-review.googlesource.com/#/c/180668/ BUG=370696 Committed: https://crrev.com/5b846f579d3dd1a0f4d0b8c26ff274117bfba0bc Cr-Commit-Position: refs/heads/master@{#302279}

Patch Set 1 #

Total comments: 4

Patch Set 2 : review fix #

Total comments: 2

Patch Set 3 : nit fix #

Total comments: 2

Patch Set 4 : use struct for name+rect #

Total comments: 2

Patch Set 5 : Has* to Get* #

Patch Set 6 : add hard limit #

Patch Set 7 : rebase #

Patch Set 8 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+139 lines, -60 lines) Patch
M content/browser/frame_host/navigator_delegate.h View 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/frame_host/navigator_impl.cc View 1 2 3 4 5 6 1 chunk +10 lines, -2 lines 0 comments Download
M content/browser/loader/cross_site_resource_handler.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_message_filter.cc View 1 2 3 4 5 6 1 chunk +3 lines, -2 lines 0 comments Download
M content/browser/transition_browsertest.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M content/browser/transition_request_manager.h View 1 2 3 4 5 6 7 chunks +15 lines, -14 lines 0 comments Download
M content/browser/transition_request_manager.cc View 1 2 3 4 5 chunks +9 lines, -16 lines 0 comments Download
M content/browser/web_contents/web_contents_android.h View 1 2 3 4 5 6 1 chunk +3 lines, -1 line 0 comments Download
M content/browser/web_contents/web_contents_android.cc View 1 2 3 4 5 6 1 chunk +18 lines, -2 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 1 chunk +3 lines, -2 lines 0 comments Download
M content/common/frame_messages.h View 1 2 3 4 5 6 3 chunks +14 lines, -9 lines 0 comments Download
M content/content_common.gypi View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java View 1 2 3 4 5 6 1 chunk +11 lines, -2 lines 0 comments Download
M content/public/android/java/src/org/chromium/content_public/browser/NavigationTransitionDelegate.java View 1 2 1 chunk +13 lines, -1 line 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/TransitionTest.java View 1 2 3 4 5 6 1 chunk +6 lines, -1 line 0 comments Download
A content/public/common/transition_element.h View 1 2 3 1 chunk +23 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -4 lines 0 comments Download

Messages

Total messages: 25 (6 generated)
Zhen Wang
6 years, 2 months ago (2014-10-22 13:55:39 UTC) #2
nasko
Please have someone review the java code, as I'm not familiar with it. https://codereview.chromium.org/652953008/diff/1/content/browser/frame_host/navigator_impl.cc File ...
6 years, 2 months ago (2014-10-22 21:10:04 UTC) #3
Zhen Wang
Hi Daniel, can you take a look at the Java part? Thanks! https://codereview.chromium.org/652953008/diff/1/content/browser/frame_host/navigator_impl.cc File content/browser/frame_host/navigator_impl.cc ...
6 years, 2 months ago (2014-10-22 23:04:40 UTC) #5
no sievers
+oysteine for review, I can stamp https://codereview.chromium.org/652953008/diff/20001/content/public/android/java/src/org/chromium/content_public/browser/NavigationTransitionDelegate.java File content/public/android/java/src/org/chromium/content_public/browser/NavigationTransitionDelegate.java (right): https://codereview.chromium.org/652953008/diff/20001/content/public/android/java/src/org/chromium/content_public/browser/NavigationTransitionDelegate.java#newcode41 content/public/android/java/src/org/chromium/content_public/browser/NavigationTransitionDelegate.java:41: * or applied ...
6 years, 2 months ago (2014-10-23 22:14:13 UTC) #7
Zhen Wang
https://codereview.chromium.org/652953008/diff/20001/content/public/android/java/src/org/chromium/content_public/browser/NavigationTransitionDelegate.java File content/public/android/java/src/org/chromium/content_public/browser/NavigationTransitionDelegate.java (right): https://codereview.chromium.org/652953008/diff/20001/content/public/android/java/src/org/chromium/content_public/browser/NavigationTransitionDelegate.java#newcode41 content/public/android/java/src/org/chromium/content_public/browser/NavigationTransitionDelegate.java:41: * or applied to transition layer's makrup later. On ...
6 years, 2 months ago (2014-10-23 23:18:20 UTC) #8
oystein (OOO til 10th of July)
https://codereview.chromium.org/652953008/diff/40001/content/browser/web_contents/web_contents_android.cc File content/browser/web_contents/web_contents_android.cc (right): https://codereview.chromium.org/652953008/diff/40001/content/browser/web_contents/web_contents_android.cc#newcode340 content/browser/web_contents/web_contents_android.cc:340: for (; it != transition_data.names.end() && jt != transition_data.rects.end(); ...
6 years, 1 month ago (2014-10-27 18:45:12 UTC) #9
Zhen Wang
https://codereview.chromium.org/652953008/diff/40001/content/browser/web_contents/web_contents_android.cc File content/browser/web_contents/web_contents_android.cc (right): https://codereview.chromium.org/652953008/diff/40001/content/browser/web_contents/web_contents_android.cc#newcode340 content/browser/web_contents/web_contents_android.cc:340: for (; it != transition_data.names.end() && jt != transition_data.rects.end(); ...
6 years, 1 month ago (2014-10-27 23:47:19 UTC) #10
oystein (OOO til 10th of July)
lgtm
6 years, 1 month ago (2014-10-29 21:37:31 UTC) #11
nasko
LGTM with one nit. https://codereview.chromium.org/652953008/diff/60001/content/browser/frame_host/navigator_impl.cc File content/browser/frame_host/navigator_impl.cc (right): https://codereview.chromium.org/652953008/diff/60001/content/browser/frame_host/navigator_impl.cc#newcode260 content/browser/frame_host/navigator_impl.cc:260: TransitionRequestManager::GetInstance()->HasPendingTransitionRequest( This method name looks ...
6 years, 1 month ago (2014-10-29 22:14:25 UTC) #12
nasko
On 2014/10/29 22:14:25, nasko wrote: > LGTM with one nit. > > https://codereview.chromium.org/652953008/diff/60001/content/browser/frame_host/navigator_impl.cc > File ...
6 years, 1 month ago (2014-10-29 22:18:43 UTC) #13
Zhen Wang
> Actually, one thing I missed. There should be a hard limit on the size ...
6 years, 1 month ago (2014-10-29 23:11:06 UTC) #14
nasko
On 2014/10/29 23:11:06, Zhen Wang wrote: > > Actually, one thing I missed. There should ...
6 years, 1 month ago (2014-10-29 23:17:19 UTC) #15
Zhen Wang
I see. Hard limit added.
6 years, 1 month ago (2014-10-29 23:45:51 UTC) #16
nasko
LGTM
6 years, 1 month ago (2014-10-29 23:48:40 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/652953008/120001
6 years, 1 month ago (2014-10-31 15:38:55 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/652953008/120001
6 years, 1 month ago (2014-10-31 16:32:20 UTC) #22
commit-bot: I haz the power
Committed patchset #7 (id:120001)
6 years, 1 month ago (2014-10-31 16:33:27 UTC) #23
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/5b846f579d3dd1a0f4d0b8c26ff274117bfba0bc Cr-Commit-Position: refs/heads/master@{#302279}
6 years, 1 month ago (2014-10-31 16:34:01 UTC) #24
Hajime Morrita
6 years, 1 month ago (2014-10-31 18:24:07 UTC) #25
Message was sent while issue was closed.
A revert of this CL (patchset #7 id:120001) has been created in
https://codereview.chromium.org/689123003/ by morrita@chromium.org.

The reason for reverting is: Crashing a LayoutTest

http://test-results.appspot.com/dashboards/flakiness_dashboard.html#master=Ch...

Hitting an assertion:
10:15:12.016 3607  
[10283:10283:1031/101511:5678803780814:FATAL:transition_request_manager.cc(161)]
Check failed: ::content::BrowserThread::CurrentlyOn(BrowserThread::IO). Must be
called on Chrome_IOThread; actually called on CrBrowserMain.
10:15:12.016 3607   #0 0x7f66666664ce base::debug::StackTrace::StackTrace()
10:15:12.016 3607   #1 0x7f6666700bf5 logging::LogMessage::~LogMessage()
10:15:12.016 3607   #2 0x7f66612dcafa
content::TransitionRequestManager::GetPendingTransitionRequest()
10:15:12.016 3607   #3 0x7f6660bccdb1
content::NavigatorImpl::DidStartProvisionalLoad()
10:15:12.016 3607   #4 0x7f6660bdb821
content::RenderFrameHostImpl::OnDidStartProvisionalLoadForFrame()
10:15:12.016 3607   #5 0x7f6660bf3554 DispatchToMethod<>()
10:15:12.016 3607   #6 0x7f6660be38b7
FrameHostMsg_DidStartProvisionalLoadForFrame::Dispatch<>()
10:15:12.016 3607   #7 0x7f6660bda57e
content::RenderFrameHostImpl::OnMessageReceived()
10:15:12.016 3607   #8 0x7f666103ad0e
content::RenderProcessHostImpl::OnMessageReceived()
10:15:12.016 3607   #9 0x7f666103b11f
content::RenderProcessHostImpl::OnMessageReceived()
10:15:12.016 3607   #10 0x7f6664fe5e9d
IPC::ChannelProxy::Context::OnDispatchMessage()
10:15:12.016 3607   #11 0x7f6664feea5a base::internal::RunnableAdapter<>::Run()
10:15:12.016 3607   #12 0x7f6664fee9b1
base::internal::InvokeHelper<>::MakeItSo()
10:15:12.016 3607   #13 0x7f6664fee94c base::internal::Invoker<>::Run()
10:15:12.016 3607   #14 0x7f666664eb3e base::Callback<>::Run()
10:15:12.016 3607   #15 0x7f666666cb89 base::debug::TaskAnnotator::RunTask()
10:15:12.016 3607   #16 0x7f6666729968 base::MessageLoop::RunTask()
10:15:12.016 3607   #17 0x7f6666729acb
base::MessageLoop::DeferOrRunPendingTask()
10:15:12.016 3607   #18 0x7f6666729d05 base::MessageLoop::DoWork()
10:15:12.016 3607   #19 0x7f66666227bc base::MessagePumpGlib::HandleDispatch()
10:15:12.016 3607   #20 0x7f6666622fd1 base::(anonymous
namespace)::WorkSourceDispatch()
10:15:12.016 3607   #21 0x7f6658588d13 g_main_context_dispatch
10:15:12.016 3607   #22 0x7f6658589060 <unknown>
10:15:12.016 3607   #23 0x7f6658589124 g_main_context_iteration
10:15:12.016 3607   #24 0x7f66666228c5 base::MessagePumpGlib::Run()
10:15:12.016 3607   #25 0x7f6666729432 base::MessageLoop::RunHandler()
10:15:12.016 3607   #26 0x7f66667920d4 base::RunLoop::Run()
10:15:12.016 3607   #27 0x7f66609ca164
content::BrowserMainLoop::MainMessageLoopRun()
10:15:12.016 3607   #28 0x7f66609c9fc1
content::BrowserMainLoop::RunMainMessageLoopParts()
10:15:12.016 3607   #29 0x7f66609d3075 content::BrowserMainRunnerImpl::Run()
10:15:12.016 3607   #30 0x000000452ef4 (anonymous namespace)::RunOneTest()
10:15:12.016 3607   #31 0x000000452b53 (anonymous namespace)::RunTests()
10:15:12.016 3607   #32 0x0000004529af LayoutTestBrowserMain()
10:15:12.016 3607   #33 0x00000044fcda content::ShellMainDelegate::RunProcess()
10:15:12.017 3607   #34 0x7f6660849f01 content::RunNamedProcessTypeMain()
10:15:12.017 3607   #35 0x7f666084e232 content::ContentMainRunnerImpl::Run()
10:15:12.017 3607   #36 0x7f66608493f5 content::ContentMain()
10:15:12.017 3607   #37 0x00000044ee5c main
10:15:12.017 3607   #38 0x7f665785676d __libc_start_main
10:15:12.017 3607   #39 0x00000044ed49 <unknown>
.

Powered by Google App Engine
This is Rietveld 408576698