-
Notifications
You must be signed in to change notification settings - Fork 15
Conversation
Thanks @Hsn723! This appears to fix it when enabling advanced mode, but it causes another issue when disabling it. For some reason the firewall is not hidden in the pop-up UI when you disable it from settings, even though it appears that the Possibly a fix at the moment that still works with the above bug is to remove the body {
width: 100%;
} This at least seems to works in Edge in all cases, including when the @gorhill, is the above CSS change something that would be ok in the core repo? Or will it cause issues with other browsers? |
I will have to test to find out. I will do so when I get the time and will notify you if I add this to the core. |
Thanks @gorhill! |
@nikrolls Whether Also, the additional issue you found is actually not directly related to this fix, since the code for this fix only compiled for the Edge target. That you could repro it in Chrome indicates that it is a separate issue. Upon investigation, the behavior you describe is actually related to As the fix for that needs to be done in the
Needs to be
In order for the behavior you described not to occur. As this is out of the scope of the current PR and affects all browsers, I could send another PR to the upstream uBO repo for that additional issue. |
@Hsn723 What I meant was that because of this issue, applying the CSS fix to only Regardless, if it can be made in the core I'm happier with it because I'd prefer not to add more workarounds to the build script. |
@nikrolls I see your point. I've removed the |
Unfortunately using This also causes a regression for the Firefox/legacy version: I did not test the Firefox for Android version, but I fear this could cause issue as well. One thing I could do to avoid the |
@gorhill Thank you, that sounds like a more elegant and future-proof solution than the |
Thanks @gorhill, I'm happy with that solution if it fits in with your usual strategy for platform-specific overrides. |
@Hsn723, we could actually add this ahead of time based on gorhill@f6afd8c. They will probably go out in the same release anyway. |
@nikrolls Cool, I've gone ahead and moved things accordingly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just a couple of notes.
src/js/ublock.js
Outdated
if ( value === true ) { | ||
us.dynamicFilteringEnabled = true; | ||
} | ||
us.dynamicFilteringEnabled = value; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can't make these changes here, they need to be made in the core repository.
tools/make-edge.sh
Outdated
cp LICENSE.txt $DES/ | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unnecessary blank line
tools/make-edge.sh
Outdated
@@ -21,8 +21,10 @@ cp platform/edge/*.js $DES/js/ | |||
cp -R platform/edge/img $DES/ | |||
cp platform/edge/*.html $DES/ | |||
cp platform/edge/*.json $DES/ | |||
cp -R platform/edge/css $DES/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For consistency with the JS line could this be:
cp -R platform/edge/*.css $DES/css
And then move the vapi-popup.css
file to the edge
folder.
platform/edge/css/vapi-popup.css
Outdated
@@ -0,0 +1,3 @@ | |||
body { | |||
width: 100%; | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing new line at the end of the file 😊
@nikrolls Thanks for the quick review. I've made the requested changes. For the part that affects the core repository I'll submit a separate PR over there. |
Tested by sideload 1.15.4 plus this fix into Edge. I have to say, the fix do solve the problem, but just partly. The popup will show contents properly. But the popup sometimes still just show the right side with proper content. However, if mouse is hovered on it, the popup will be just okay. So I think this fix is just a workaroud tweak, the true fix to this issue maybe rely on Microsoft. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @Hsn723! Sorry to be a bother, but do you mind squashing these commits? Especially since there have been a couple of different approaches throughout. Makes the commit history nice and clean. Then I can merge right away!
Thanks @lychichem for giving it a go. I'll run it for a while and see what I come up with as well. The more feedback the better. Which release branch of Windows are you running? |
@nikrolls No problem, as requested I've squashed them all into one clean commit. |
Should fix #95 and similar issues
Not entirely sure, but I am assuming best practice here is to not touch anything under src/ for platform-specific issues so I placed my changes in platform/edge and reflected them in
make-edge.sh
.