[tbb-bugs] #17248 [Tor Browser]: Investigate new WebExtensions API requirements for our extensions
Tor Bug Tracker & Wiki
blackhole at torproject.org
Thu Nov 12 15:56:30 UTC 2015
#17248: Investigate new WebExtensions API requirements for our extensions
----------------------------------+--------------------------
Reporter: gk | Owner: tbb-team
Type: task | Status: new
Priority: High | Milestone:
Component: Tor Browser | Version:
Severity: Normal | Resolution:
Keywords: TorBrowserTeam201511 | Actual Points:
Parent ID: | Points:
Sponsor: |
----------------------------------+--------------------------
Comment (by brade):
'''Requirements for which Web Extension APIs exist that are not yet
implemented in Firefox (NI#):'''
NI1: Retrieve OS identifier
Current Solution: nsIXULRuntime.OS
New Solution: chrome.runtime.PlatformInfo.PlatformOs
Related Bugs: https://bugzil.la/1213473
NI2: Size a popup window to fit its content
Current Solution: window.sizeToContent() and window.resizeTo()
New Solution: document.body.offsetWidth/offsetHeight followed by
windows.update() to adjust size
Related Bugs: https://bugzil.la/1213484
NI3: Copy text to the system clipboard
Current Solution: nsIClipboardHelper.copyString()
New Solution: Add this to manifest.json: permissions: [ "clipboardWrite" ]
then put the text to be copied in an HTML element, select it, and then
call document.execCommand("copy");
Related Bugs: https://bugzil.la/1197451
NI4: Exit the browser
Current Solution: nsIAppStartup.quit(eAttemptQuit)
New Solution: chrome.processes.terminate(0) (dev channel only)
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/17248#comment:3>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tbb-bugs
mailing list