Erez Hochman
Erez Hochman

Reputation: 1708

chrome.processes.getProcessIdForTab returns wrong pid

In my background page I have the following:

 chrome.processes.getProcessIdForTab(tabId, function(pid){
     console.log('proccess id is ',pid); 
 }

this return the number 8, which does not correspond with the process id I see in the windows task manager. does anyone has any idea what I'm doing wrong?

Upvotes: 2

Views: 711

Answers (1)

Erez Hochman
Erez Hochman

Reputation: 1708

Figured it out alone, the pid returned from "getProcessIdForTab" is an internal chrome pid, to get the os process id you need to use "getProcessInfo" with the internal pid.

Upvotes: 2

Related Questions