diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc index 214d67948e8c3..28bd4197b4883 100644 --- a/content/browser/renderer_host/render_widget_host_impl.cc +++ b/content/browser/renderer_host/render_widget_host_impl.cc @@ -2030,6 +2030,15 @@ void RenderWidgetHostImpl::DragTargetDrop(const DropData& drop_data, base::OnceClosure callback) { // TODO(crbug.com/40138933): Replace with a for_frame() check. if (blink_frame_widget_) { + // === POC INSTRUMENTATION === + for (const auto& ui : drop_data.url_infos) { + LOG(ERROR) << "[POC] DragTargetDrop url_infos: " << ui.url.spec(); + } + LOG(ERROR) << "[POC] DragTargetDrop download_metadata: " + << (drop_data.download_metadata + ? drop_data.download_metadata->url.spec() + : std::string("")); + // =========================== DropData drop_data_with_permissions(drop_data); GrantFileAccessFromDropData(&drop_data_with_permissions); StoragePartitionImpl* storage_partition = @@ -2975,6 +2984,24 @@ void RenderWidgetHostImpl::StartDragging( } } + // === POC INSTRUMENTATION (read-only logging, no behavior change) === + for (const auto& ui : filtered_data.url_infos) { + LOG(ERROR) << "[POC] StartDragging filtered_data.url_infos: " + << ui.url.spec(); + } + LOG(ERROR) << "[POC] StartDragging filtered_data.download_metadata: " + << (filtered_data.download_metadata + ? filtered_data.download_metadata->url.spec() + : std::string("")); + for (const auto& it : drag_data->items) { + if (it->is_string()) { + LOG(ERROR) << "[POC] StartDragging RAW drag_data item type=" + << it->get_string()->string_type << " data=" + << base::UTF16ToUTF8(it->get_string()->string_data); + } + } + // ================================================================== + if (frame_tree_) { bool intercepted = false; devtools_instrumentation::WillStartDragging(