Closed crssi closed 4 years ago
Did you check which domains are involved in the redirect back from the login? Since #228 isn't available, a workaround would be to use uBlock's logger and set it to "All" - that should show all involved domains.
Thank you for quick response.
Sure I did. 😉 I always use uBO logger they way you described.
And what's the domain chain?
www.bing.com -> www.bing.com -> login.live.com -> login.live.com -> login.live.com -> www.bing.com -> www.bing.com -> www.bing.com
Well, in that case I'd need a debug log since the rules seem to cover that
Ah, I see, here the isolation kicks in
Thu, 06 Aug 2020 12:37:37 GMT "[shouldIsolateAlways] found pattern for incoming request url" "*.bing.com" {"action":"enabled","allowedInPermanent":false,"allowedInTemporary":false} background.js:468:25 Thu, 06 Aug 2020 12:37:37 GMT "[shouldIsolateAlways] isolating because the tab/opener url doesnt match the pattern" "https://login.live.com/ppsecure/post.srf?wa=wsignin1.0&rpsnv…94&bk=1596717452&uaid=3678045f2ee243b7a0f23bd46bf26d83&pid=0" undefined "*.bing.com" background.js:468:25
That's because "Always open in" is "Enabled" for the pattern *.bing.com
Will reopen Tabs in a new Temporary Container if: The active Tab URL doesn't match the Domain Pattern and then tries to navigate to an URL that matches the Domain Pattern
Hmmm... I guess I will have to get back to drawing board.
*
on the exclude target domain
to the rule 2. I guess that I got this setting all wrong. What exactly for is used exclude target domain
?Cheers
Thinking more and more and I guess this is actually the case for https://github.com/stoically/temporary-containers/issues/397?
So, in this case I would like always to isolate bing (and separatelly the google and fb and some more) in a separate container, except when returning from specific domains (used for login in this case).
So the #397 rule should say something like: if origin=login.live.com and target=bing.com leave it be as is for BING case and... if origin=accounts.google.com and target=* leave it be as is for GOOGLE case.
Or for https://github.com/stoically/temporary-containers/issues/432#issuecomment-665168500 and the first post after.
Cheers
Yeah, #397 would make stuff like this easier.
Depending on how you're using "Always open in" currently, you could tick the "Disable if Navigation in Temporary Containers" checkbox for the *.bing.com
rule. This would make it so that the isolation doesn't happen while you're in a TC when the redirection happens from live.com
to bing.com
.
To avoid what you are saying I have put * on the exclude target domain to the rule 2. I guess that I got this setting all wrong. What exactly for is used exclude target domain ?
Pretty sure you got it right. But, yeah, now that you mention it. I think it could actually be classified as a bug that isolation happens with rule 2, since exclusion maybe should also encompass the "Always open in" behavior. Scratch that. It's rule 5 triggering the isolation in this case - and there's nothing another rule could do about it.
Depending on how you're using "Always open in" currently, you could tick the "Disable if Navigation in Temporary Containers" checkbox for the
*.bing.com
rule.
Yes, but in that case I cannot enforce isolation when coming to bing (or google or...) domain from somewhere else... or am I wrong?
What exactly is exclude target domain
meant for?
Cheers
Yes, but in that case I cannot enforce isolation when coming to bing (or google or...) domain from somewhere else... or am I wrong?
Not if currently in a TC, correct.
What exactly is exclude target domain meant for?
If the target domain you're navigating to matches the exclusion pattern (and in case of per domain rules, the origin must match the per domain rule pattern), then no isolation takes place.
If the target domain you're navigating to matches the exclusion pattern (and in case of per domain rules, the origin must match the per domain rule pattern), then no isolation takes place.
Why then even gets to the next rule, shouldn't it stop processing in that case on a rule 2 if there is exclude target domain
= *
?
In that case, "my approach" should work.
No, because the rule depends on the per domain rule pattern matching
Like, if you're navigating from live.com
to bing.com
, only the *.bing.com
rule is used at all.
Will pretend that I understand. 😄
So... exclude target domain
= *
would work if there were no *.bing.com
defined?
All options defined per rule in "per domain isolation" only have an effect if the origin or target domain matches the domain pattern, so, no
Thank you again... I really appreciate your commitment. Will humble wait for #397
Cheers ❤️
Hi,
I have working rules for google, but have troubles to make similar for bing.
Let me first explain for google. Goal is:
Here is my configuration (to simplify I have drop out everything that has nothing to with this case): https://github.com/crssi/Firefox/blob/master/.Archive/temporary_containers_preferences_demo.json
As you can see in the per domain isolation rules 1, 3 and 4 are doing it and it works as intended.
For the bing, I am tried whatnot variants, but none successful and I cannot figure out why. The lines 2 and 5 should do it, but are not.
STR:
https://www.bing.com
Sign in
, which leads you tologin.live.com
where line 2 kicks in successful.https://www.bing.com
creates new tab/container instead staying in current one.Thank you for any hint and cheers