Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix render bug for protected sites #3549

Merged
merged 5 commits into from
Sep 1, 2020
Merged

Fix render bug for protected sites #3549

merged 5 commits into from
Sep 1, 2020

Conversation

Gusted
Copy link
Contributor

@Gusted Gusted commented Aug 29, 2020

  • tab.isProtected should not use enableForProtectedPages option as it doesn't get up-to-date data and will return the old value.
  • Real-time site-toggle disable according isProtected logic and enableForProtectedPages option.
  • Make test according to the good visa-versa logic(Forgot to update in previous PR)
  • Resolves [BUG] protected pages cannot be disabled when granted permission #3548

- Real-time site-toggle disable according isProtected logic and `enableForProtectedPages` option.
- tab.isProtected should not use `enableForProtectedPages` option as it doesn't get up-to-date data and will return the old value.
- Resolves #3548
@Gusted
Copy link
Contributor Author

Gusted commented Aug 30, 2020

@erkinalp
Commit fb99c33 fixed this reversed behavior and is now behaving how it should be.

Copy link
Contributor

@erkinalp erkinalp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks

@erkinalp
Copy link
Contributor

another bug: non-protected pages cannot be toggled now if you disable "enable on protected pages".

@Gusted
Copy link
Contributor Author

Gusted commented Aug 30, 2020

Shit here we go again.

@Gusted
Copy link
Contributor Author

Gusted commented Aug 30, 2020

@erkinalp
Are you sure? I tried a fresh npm run debug of this branch and it just behaves how it should be. Maybe something in your sitelist?

@erkinalp
Copy link
Contributor

erkinalp commented Aug 30, 2020

Certainly sure. I tried a npm run release, though. You know, it is a thing that some things only fail in release builds.

@Gusted
Copy link
Contributor Author

Gusted commented Aug 30, 2020

You know, it is a thing that some things only fail in release builds.

You know, the thing with our build workflow. The output of the code is always the same and gives identical(Other than some more debug info and a inline-source-map that doesn't affect the actual code) output and results.

Certainly sure. I tried a npm run release,

Noppes and nana, it still works. I suggest to remove the extension and than re-side-load it.

@erkinalp
Copy link
Contributor

Re-side loaded but still having the same problem.

@Gusted
Copy link
Contributor Author

Gusted commented Aug 30, 2020

What if you try to sideload this version of the branch

@erkinalp
Copy link
Contributor

That version fixed the problem 🥇

@Gusted
Copy link
Contributor Author

Gusted commented Aug 30, 2020

Well, that was commit 6b309fd but than npm run debug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] protected pages cannot be disabled when granted permission
3 participants