1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-14 03:45:47 +01:00

Add short URL to g<C-g>. Also fix bugs.

This commit is contained in:
Kris Maglione
2013-03-17 14:25:21 -07:00
parent c3e430ab39
commit 1f1b7e06ec
2 changed files with 69 additions and 5 deletions

View File

@@ -290,6 +290,13 @@ var Sanitizer = Module("sanitizer", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakRef
}
},
/**
* Returns a load context for the given thing, to be used with
* interfaces needing one for per-window private browsing support.
*
* @param {Window|Document|Node} thing The thing for which to return
* a load context.
*/
getContext: function getContext(thing) {
if (!Ci.nsILoadContext)
return null;