--- a/ipc/chromium/chromium-config.mozbuild.orig	2023-08-06 22:57:17.000000000 -0700
+++ b/ipc/chromium/chromium-config.mozbuild	2023-08-08 11:59:05.529453920 -0700
@@ -26,3 +26,17 @@ if CONFIG['OS_ARCH'] == 'WINNT':
     DEFINES['_WIN32'] = True
     DEFINES['_WINDOWS'] = True
     DEFINES['WIN32_LEAN_AND_MEAN'] = True
+
+if CONFIG["CC_TYPE"] in ("clang"):
+    # Prevent stuck on current position video seek bug
+    CXXFLAGS += [
+        "__OFLAG_SAFE__",
+        "-fno-fast-math",
+    ]
+
+if CONFIG["CC_TYPE"] in ("gcc"):
+    # Prevent stuck on current position video seek bug
+    CXXFLAGS += [
+        "__OFLAG_SAFE__",
+        "-fno-fast-math",
+    ]
