@@ -257,19 +257,19 @@ cdef class PyBrowser:
257257 bool (forward), bool (matchCase), bool (findNext))
258258
259259 cpdef PyFrame GetFocusedFrame(self ):
260- assert IsCurrentThread (TID_UI), (
260+ assert IsThread (TID_UI), (
261261 " Browser.GetFocusedFrame() may only be called on UI thread" )
262262 return GetPyFrame(self .GetCefBrowser().get().GetFocusedFrame())
263263
264264 cpdef PyFrame GetFrame(self , py_string name):
265- assert IsCurrentThread (TID_UI), (
265+ assert IsThread (TID_UI), (
266266 " Browser.GetFrame() may only be called on the UI thread" )
267267 cdef CefString cefName
268268 PyToCefString(name, cefName)
269269 return GetPyFrame(self .GetCefBrowser().get().GetFrame(cefName))
270270
271271 cpdef list GetFrameNames(self ):
272- assert IsCurrentThread (TID_UI), (
272+ assert IsThread (TID_UI), (
273273 " Browser.GetFrameNames() may only be called on the UI thread" )
274274 cdef cpp_vector[CefString] cefNames
275275 self .GetCefBrowser().get().GetFrameNames(cefNames)
@@ -317,7 +317,7 @@ cdef class PyBrowser:
317317
318318 cpdef double GetZoomLevel(self ) except * :
319319 IF CEF_VERSION == 1 :
320- assert IsCurrentThread (TID_UI), (
320+ assert IsThread (TID_UI), (
321321 " Browser.GetZoomLevel() may only be called on UI thread" )
322322 cdef double zoomLevel
323323 IF CEF_VERSION == 1 :
@@ -349,7 +349,7 @@ cdef class PyBrowser:
349349 IF CEF_VERSION == 1 :
350350
351351 cpdef py_bool IsPopupVisible(self ):
352- assert IsCurrentThread (TID_UI), (
352+ assert IsThread (TID_UI), (
353353 " Browser.IsPopupVisible() may only be called on UI thread" )
354354 return self .GetCefBrowser().get().IsPopupVisible()
355355
@@ -471,7 +471,7 @@ cdef class PyBrowser:
471471 IF CEF_VERSION == 1 :
472472
473473 cpdef tuple GetSize(self , PaintElementType paintElementType):
474- assert IsCurrentThread (TID_UI), (
474+ assert IsThread (TID_UI), (
475475 " Browser.GetSize(): this method should only be called "
476476 " on the UI thread" )
477477 cdef int width = 0
@@ -496,7 +496,7 @@ cdef class PyBrowser:
496496
497497 cpdef PaintBuffer GetImage(self , PaintElementType paintElementType,
498498 int width, int height):
499- assert IsCurrentThread (TID_UI), (
499+ assert IsThread (TID_UI), (
500500 " Browser.GetImage(): this method should only be called "
501501 " on the UI thread" )
502502
0 commit comments