Skip to content

Commit

Permalink
[GTK] "use-after-free" warning in WebCore/page/Navigation.cpp with …
Browse files Browse the repository at this point in the history
…GCC 12

https://bugs.webkit.org/show_bug.cgi?id=271648

Reviewed by NOBODY (OOPS!).

Similar to https://bugs.webkit.org/show_bug.cgi?id=239353.

It seems like a bug in GCC. This warning can be ignored.

* Source/WebCore/page/Navigation.cpp:
(WebCore::Navigation::innerDispatchNavigateEvent):
  • Loading branch information
obyknovenius committed Mar 25, 2024
1 parent b8a264c commit 899ffb0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/WebCore/page/Navigation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,9 @@ bool Navigation::innerDispatchNavigateEvent(NavigationNavigationType navigationT
if (apiMethodTracker)
apiMethodTracker->info = JSC::jsUndefined();

IGNORE_GCC_WARNINGS_BEGIN("use-after-free")
Ref event = NavigateEvent::create(eventNames().navigateEvent, init, abortController);
IGNORE_GCC_WARNINGS_END
m_ongoingNavigateEvent = event.ptr();
m_focusChangedDuringOnoingNavigation = false;
m_suppressNormalScrollRestorationDuringOngoingNavigation = false;
Expand Down

0 comments on commit 899ffb0

Please sign in to comment.