Skip to content

Instantly share code, notes, and snippets.

View nt1m's full-sized avatar
🌝

Tim Nguyen nt1m

🌝
View GitHub Profile
timnguyen @ mozilla-unified ⚡️ ./mach build
0:00.69 Clobber not needed.
0:00.69 Adding make options from /Users/timnguyen/code/mozilla-unified/mozconfig
MOZ_OBJDIR=/Users/timnguyen/code/mozilla-unified/obj-x86_64-apple-darwin18.0.0
OBJDIR=/Users/timnguyen/code/mozilla-unified/obj-x86_64-apple-darwin18.0.0
FOUND_MOZCONFIG=/Users/timnguyen/code/mozilla-unified/mozconfig
export FOUND_MOZCONFIG
0:00.71 /usr/bin/make -f client.mk -s
0:01.84 Elapsed: 0.00s; From dist/public: Kept 0 existing; Added/updated 0; Removed 0 files and 0 directories.
0:01.84 Elapsed: 0.00s; From dist/private: Kept 0 existing; Added/updated 0; Removed 0 files and 0 directories.
Compiling libservo v0.0.1 (file:///home/user/servo/components/servo)
error: linking with `cc` failed: exit code: 1
|
= note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L" "/home/user/.rustup/toolchains/nightly-2018-06-13-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/home/user/servo/target/debug/deps/servo-e1b7d444e5bf66cb.1598q11f1nfieoq0.rcgu.o" "/home/user/servo/target/debug/deps/servo-e1b7d444e5bf66cb.15kf3rm38hz1a26r.rcgu.o" "/home/user/servo/target/debug/deps/servo-e1b7d444e5bf66cb.15kq92zzbmxot4k9.rcgu.o" "/home/user/servo/target/debug/deps/servo-e1b7d444e5bf66cb.16u6js6g0l3k1ic6.rcgu.o" "/home/user/servo/target/debug/deps/servo-e1b7d444e5bf66cb.17erb31xn70viq4b.rcgu.o" "/home/user/servo/target/debug/deps/servo-e1b7d444e5bf66cb.181cuta0v63atwcm.rcgu.o" "/home/user/servo/target/debug/deps/servo-e1b7d444e5bf66cb.1a0nsug1b6300e6n.rcgu.o" "/home/user/servo/target/debug/deps/servo-e1b7d444e5bf66cb.1adz5g7vbdvg6ekb.rcgu.o" "/home/user/servo/target/debug/deps/servo-e1b7d
# Methods on the browser binding
```
[
"autoscrollEnabled",
"canGoBack",
"canGoForward",
"homePage",
"currentURI",
"documentURI",
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Verifying my Blockstack ID is secured with the address 1G5Pc8B68GWUMZip1oU69cdEKHPAxMeChU https://explorer.blockstack.org/address/1G5Pc8B68GWUMZip1oU69cdEKHPAxMeChU
@nt1m
nt1m / face-sad.svg
Last active July 31, 2017 07:35
Preferences SVG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nt1m
nt1m / the-plan.md
Last active September 17, 2017 22:15
<iframe mozbrowser> implementation plan for WebExtensions

Implementing iframe mozbrowser> bug 1318532

Opportunities with this API

  • Tile Tabs
  • Create a wrapper around web content (à la Responsive design Mode)
  • Make use of container tabs properties for iframes
  • More secure alternative to overriding CSP to make web content iframe-able
function getPositionReference(node) {
let pos = getComputedStyle(node).getPropertyValue("position");
switch (pos) {
case "relative":
return node;
case "absolute":
let parentPosition = "static";
let parent = node.parentNode;
while (parentPosition == "static" && parent.parentNode) {
parent = parent.parentNode;
@nt1m
nt1m / search-proposal.md
Last active February 26, 2017 07:47
Search engines proposal

Adding new search engines: the search_engine manifest field

{
  "search_engine": "opensearch.xml"
}

Managing search engines: the browser.searchEngines namespace

- browser.searchEngines.remove()
@nt1m
nt1m / proposal.md
Last active February 25, 2017 14:23
browser.region WebExtension proposal

Interacting with current regions

Supported region IDs

  • navigation_bar
  • tabs_bar
  • find_bar
  • {side}_{end/start}
    • where side is top/left/right/bottom
  • Possibly more UI regions unlikely to change (future proof)

the "browser_region_tweak" manifest field