Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Per tab browserActions data should be clear when navigating #5327

Closed
darkdh opened this issue Nov 1, 2016 · 0 comments · Fixed by #5339
Closed

Per tab browserActions data should be clear when navigating #5327

darkdh opened this issue Nov 1, 2016 · 0 comments · Fixed by #5339

Comments

@darkdh
Copy link
Member

darkdh commented Nov 1, 2016

In chrome/browser/extensions/tab_helper.cc:

void TabHelper::DidNavigateMainFrame(
    const content::LoadCommittedDetails& details,
    const content::FrameNavigateParams& params) {
  ...
  if (!details.is_in_page)
    ExtensionActionAPI::Get(context)->ClearAllValuesForTab(web_contents());
}

We should clear the data when navigation happen just like chrome.

Example of not doing this:
pocket-icon

@darkdh darkdh added this to the 0.12.8dev milestone Nov 1, 2016
@darkdh darkdh self-assigned this Nov 1, 2016
darkdh added a commit to darkdh/browser-laptop that referenced this issue Nov 2, 2016
fix brave#5327

Auditors: @bridiver, @bbondy

Test Plan:
1. Go to about:preferences#advanced and enable pocket
2. Login pocket
3. Navigate to arbitrary page
4. Save page to pocket
5. Navigate to other page/refresh the page
6. The pocket icon should not be illuminated
darkdh added a commit to darkdh/browser-laptop that referenced this issue Nov 2, 2016
fix brave#5327

Auditors: @bridiver, @bbondy

Test Plan:
1. Go to about:preferences#advanced and enable pocket
2. Login pocket
3. Navigate to arbitrary page
4. Save page to pocket
5. Navigate to other page/refresh the page
6. The pocket icon should not be illuminated
bbondy pushed a commit that referenced this issue Nov 4, 2016
fix #5327

Auditors: @bridiver, @bbondy

Test Plan:
1. Go to about:preferences#advanced and enable pocket
2. Login pocket
3. Navigate to arbitrary page
4. Save page to pocket
5. Navigate to other page/refresh the page
6. The pocket icon should not be illuminated
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.