You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Jun 8, 2023. It is now read-only.
RBLHTMLView spins the current run loop while it waits for the HTML to render.
I haven't dug into it too far yet, but I've seen this cause an intermittent crash if the HTML for the view has been assigned inside of a 'transaction' such as the begin/endUpdates calls used in view based NSTableViews.
This method is called when rows are inserted into the table view, so usually after a call to [tableView beginUpdates]. My theory is that spinning the run loop is implicitly calling endUpdates resulting in unbalanced calls.
I think this is done to avoid a flash when the page reloads (by simply not returning control to the renderer until the page is ready).
Maybe we could instead do this in a block asynchronously dispatched to the main thread. It'd introduce an imperceptible delay before starting to render, but would ensure that it occurs outside of any transactional behavior.
This was to ensure that it rendered the new content as soon as it was set, as you'd expect a label to do. Introducing a queue hop doesn't seem like it'd solve the problem :\
Activity
jspahrsummers commentedon Sep 6, 2013
I think this is done to avoid a flash when the page reloads (by simply not returning control to the renderer until the page is ready).
Maybe we could instead do this in a block asynchronously dispatched to the main thread. It'd introduce an imperceptible delay before starting to render, but would ensure that it occurs outside of any transactional behavior.
joshaber commentedon Sep 15, 2013
This was to ensure that it rendered the new content as soon as it was set, as you'd expect a label to do. Introducing a queue hop doesn't seem like it'd solve the problem :\