Closed cuba closed 5 months ago
The above requires 1.68.127
or higher for 1.68.x
verification 👍
Verified on iPhone 14
using version(s):
Device/OS: iPhone 14 / iOS 17.6
Brave build: 1.68 (128)
BraveCore: 1.68.128 (127.0.6533.73)
STEPS:
ACTUAL RESULTS:
True
is shown for the This frame
column when loading/refreshing https://dev-pages.brave.software/filtering/scriptlets.htmlhttps://github.com/user-attachments/assets/83ff9f52-efb5-4211-bef0-e7e64b7ca43e
Description
There are some cases we've seen that the resources are not set.
This seems to be caused only during branch switching and results from the resources updated callback only triggering if the resources were updated.Edit: This may in fact be a larger issue than just in development.
As a precaution, we should ensure that the callback is triggered at least once when subscribing regardless if resources have been updated or not. This will not cause any unforeseen performance issues as the engines will ignore any resource updates that are of a lower or same version but will ensure the resources are set if they weren't.
Steps to reproduce
Unfortunately the steps to reproduce this are impossible to define. However we should test youtube ad-blocking on launch (new install) and re-launch (after termination)Actual result
nil is shown in the "This frame" column
Sometimes youtube ads are not blocked
(again seems to only happen in isolated development cases)Expected result
Eventually (after resources are downloaded) true should be shown in "This frame" column
Reproduces how often
Intermittent
Brave version
1.67(The code that caused this issue wasn't in 1.67 and this must have been a typo) 1.68Device/iOS version
Any
Affected browser versions
Reproducibility
Miscellaneous information
No response