utubo / firefox-simple_gesture

๐ŸฆŠAn add-on that adds simple touch gestures for Firfox for Android. Sorry, I only check issues sometimes.
https://addons.mozilla.org/ja/firefox/addon/simple-gesture/
Other
32 stars 1 forks source link

How to open "about:home". (Firefox for Android) #21

Closed utubo closed 1 year ago

utubo commented 6 years ago

https://bugzilla.mozilla.org/show_bug.cgi?id=1400555

utubo commented 6 years ago

ใ“ใ“ใซใƒ’ใƒณใƒˆใŒใชใ„ใ‹ใชใ https://dxr.mozilla.org/mozilla-central/source/mobile/android/chrome/content/browser.js

L.3441ใŒๆ€ชใ—ใ„

let tab = BrowserApp.addTab(aURI ? aURI.spec : "about:blank", { flags: loadflags,

L.1674ใฎใ“ใ„ใคใ‚’ๆ”ฏ้…ใงใใ‚Œใฐ่‰ฒใ€…ใงใใ‚‹

onEvent: function (event, data, callback) {

L.1927 ใ“ใ‚Œใง้–‹ใ‘ใ‚‹ใ‹ใช๏ผŸ

      case "Tab:OpenUri":
        window.browserDOMWindow.openURI(Services.io.newURI(data.uri),
                                        /* opener */ null,
                                        Ci.nsIBrowserDOMWindow[data.flags],
                                        Ci.nsIBrowserDOMWindow.OPEN_EXTERNAL,
                                        /* triggeringPrincipal */ null);

ใ“ใ†ใ‹ใชใƒผ

var Ci = Components.interfaces;
var Cu = Components.utils;
Cu.import("resource://gre/modules/Services.jsm");
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
window.browserDOMWindow.openURI(
    Services.io.newURI(data.uri),
    null, // opener
    Ci.nsIBrowserDOMWindow.OPEN_NEWTAB,
    Ci.nsIBrowserDOMWindow.OPEN_EXTERNAL,
    null // triggeringPrincipal
);

XPCOMUtils

ใ†๏ฝŽโ€ฆ

Efreak commented 1 year ago

about:home no longer exists on mobile

utubo commented 1 year ago

๐Ÿ˜ข๐Ÿ˜ข๐Ÿ˜ข๐Ÿ˜ข๐Ÿ˜ข