Hello,
I’m encountering a crash while trying to display a list of tweets (10 atm) on a webpage.
I am using Brave version 1.46.134 on Ubuntu, it uses to be working few days ago.
(It is working fine on Firefox version 107.0.1)
Here is my code:
I have in HTML a list of tweets like this:
<div class="tweets analyse">
<span class="tweet-info" data-tweeet-id="1024801727080321024"></span>
<span class="tweet-info" data-tweeet-id="1024795890542895104"></span>
<span class="tweet-info" data-tweeet-id="1024786016597508096"></span>
<span class="tweet-info" data-tweeet-id="1024773098925641728"></span>
<span class="tweet-info" data-tweeet-id="1024769174919372806"></span>
<span class="tweet-info" data-tweeet-id="1024759736003125250"></span>
<span class="tweet-info" data-tweeet-id="1024752352014856193"></span>
<span class="tweet-info" data-tweeet-id="1024747079048949760"></span>
<span class="tweet-info" data-tweeet-id="1024746593294143489"></span>
<span class="tweet-info" data-tweeet-id="1024741463895302146"></span>
</div>
I have imported directly <script defer src="https://platform.twitter.com/widgets.js"></script>
And here is my JS
function loadTweets() {
for (tweet of document.getElementsByClassName("tweet-info")) {
var id = tweet.getAttribute("data-tweeet-id");
twttr.widgets.createTweet(id, tweet);
}
}
Which is call on window.addEventListener("load", onLoadFunction);
I have no specific error on network:
When I try to load my webpage, Brave completely freeze, until the page throw a SIGILL error.
I have not found any topics discussing matters similar.
Is there any recent changes in widget.js that could cause this issue or is the problem on the Brave/Chromium side ?
Let me know if you need any more infos,
Looking forward to here from you
(Here is what it looks like on Firefox:)
Hello there !
If anyone wondering, this issue was caused by a display: flex; on my div tag containing the iframe.
Apparently you can’t combine column, flex and iframe on chrome/chromium.
Therefore, I have no more issues here !
Thanks !
1 Like
system
Closed
#3
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.