Closed Bug 1146559 Opened 9 years ago Closed 7 years ago

sdk/tabs/utils.js causes unsafe CPOW usage warnings

Categories

(Add-on SDK Graveyard :: General, defect, P1)

x86
macOS
defect

Tracking

(e10s+)

RESOLVED INCOMPLETE
Tracking Status
e10s + ---

People

(Reporter: mconley, Unassigned)

References

Details

(Whiteboard: [unsafe-cpow-usage])

function getTabTitle(tab) {
  return getBrowserForTab(tab).contentDocument.title || tab.label || ""; <-- causes unsafe CPOW usage
}

function getTabForContentWindow(window) {
  return getTabs().find(tab => getTabContentWindow(tab) === window.top) || null; <-- causes unsafe CPOW usage
}

function getTabContentType(tab) {
  return getBrowserForTab(tab).contentDocument.contentType; <-- causes unsafe CPOW usage
}
Blocks: e10s-sdk
Priority: -- → P1
tracking-e10s: m8+ → ---
Whiteboard: [unsafe-cpow-usage]
These APIs can be called by SDK and add-on code and are not cpow-safe.
tracking-e10s: --- → ?
Assignee: nobody → wmccloskey
Assignee: wmccloskey → nobody
https://bugzilla.mozilla.org/show_bug.cgi?id=1399562
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.