summaryrefslogtreecommitdiffstats
path: root/chromium/chrome/browser/extensions/api/messaging/chrome_messaging_delegate.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/chrome/browser/extensions/api/messaging/chrome_messaging_delegate.cc')
-rw-r--r--chromium/chrome/browser/extensions/api/messaging/chrome_messaging_delegate.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/chromium/chrome/browser/extensions/api/messaging/chrome_messaging_delegate.cc b/chromium/chrome/browser/extensions/api/messaging/chrome_messaging_delegate.cc
index ff4cc1c31a6..a236b6b0709 100644
--- a/chromium/chrome/browser/extensions/api/messaging/chrome_messaging_delegate.cc
+++ b/chromium/chrome/browser/extensions/api/messaging/chrome_messaging_delegate.cc
@@ -86,8 +86,13 @@ std::unique_ptr<base::DictionaryValue> ChromeMessagingDelegate::MaybeGetTabInfo(
// reached as a result of a tab (or content script) messaging the extension.
// We need the extension to see the sender so that it can validate if it
// trusts it or not.
- return ExtensionTabUtil::CreateTabObject(
- web_contents, ExtensionTabUtil::kDontScrubTab, nullptr)
+ // TODO(tjudkins): Adjust scrubbing behavior in this situation to not scrub
+ // the last committed URL, but do scrub the pending URL based on
+ // permissions.
+ ExtensionTabUtil::ScrubTabBehavior scrub_tab_behavior = {
+ ExtensionTabUtil::kDontScrubTab, ExtensionTabUtil::kDontScrubTab};
+ return ExtensionTabUtil::CreateTabObject(web_contents, scrub_tab_behavior,
+ nullptr)
->ToValue();
}
return nullptr;