Closed Bug 2055968 Opened 4 months ago Closed 4 months ago

4,100 instances of "'!GetNativePointerLockedMode()'" emitted from widget/cocoa/nsCocoaWindow.mm

Categories

(Core :: Widget: Cocoa, defect)

defect

Tracking

()

RESOLVED FIXED
155 Branch
Tracking Status
firefox155 --- fixed

People

(Reporter: mccr8, Assigned: edgar)

References

(Blocks 1 open bug)

Details

Attachments

(1 external file)

4099 WARNING: '!GetNativePointerLockedMode()', file checkouts/gecko/widget/cocoa/nsCocoaWindow.mm:7623

This is the 6th most common warning on MacOS. It looks like it was added in bug 1829401.

This warning shows up in 33 test suites. A few of the most prevalent:

   452 - test-macosx1015-64-qr/debug-mochitest-browser-chrome-42 bc42
   410 - test-macosx1015-64-qr/debug-mochitest-browser-chrome-13 bc13
   302 - test-macosx1015-64-qr/debug-mochitest-browser-chrome-10 bc10
   239 - test-macosx1015-64-qr/debug-mochitest-browser-chrome-7 bc7
   157 - test-macosx1015-64-qr/debug-mochitest-browser-chrome-vt bc
   156 - test-macosx1015-64-qr/debug-mochitest-browser-chrome-6 bc6
   141 - test-macosx1015-64-qr/debug-mochitest-browser-chrome-18 bc18
   139 - test-macosx1015-64-qr/debug-mochitest-browser-chrome-2 bc2
   138 - test-macosx1015-64-qr/debug-mochitest-browser-chrome-16 bc16
   126 - test-macosx1015-64-qr/debug-mochitest-browser-chrome-36 bc36

It shows up in 803 tests. A few of the most prevalent:

   840 -        Shutdown
   140 -        browser/components/urlbar/tests/browser-searchMode/browser_searchModeSwitcher_basic.js
    93 -        dom/media/webrtc/tests/mochitests/test_1488832.html
    60 -        dom/media/tests/crashtests/1920264.html
    51 -        browser/components/urlbar/tests/browser-searchMode/browser_sessionStore.js
    39 -        browser/components/urlbar/tests/browser/browser_retainedResultsOnFocus.js
    35 -        browser/components/tabbrowser/test/browser/tabs/browser_tab_manager_groups.js
    33 -        browser/components/urlbar/tests/browser/browser_queryContextCache.js
    33 -        browser/components/urlbar/tests/browser/browser_suppressFocusBorder.js
    33 -        browser/components/urlbar/tests/browser-searchMode/browser_searchModeSwitcher_keyNavigation.js

Edgar, is this warning useful? Would it make sense to get rid of it if it is happening so frequently? Thanks.

Blocks: logspam
Flags: needinfo?(echen)
Severity: -- → S4
Type: task → defect

Right, the one in nsCocoaWindow::UnlockNativePointer() isn't useful.

Assignee: nobody → echen
Flags: needinfo?(echen)

UnlockNativePointer() can be called from nsCocoaWindow::DestroyNativeWindow()
where the pointer may not be natively locked.

Thank you!

Pushed by echen@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/807045cf3293 https://hg.mozilla.org/integration/autoland/rev/eb2dd5f2ff6b Don't warn in nsCocoaWindow::UnlockNativePointer() when the pointer isn't natively locked; r=mstange
Status: NEW → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 155 Branch
QA Whiteboard: [qa-triage-done-c156/b155]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: