Skip to content

Commit

Permalink
[FB] SSB | Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
surapunoyousei committed May 11, 2024
1 parent 1637ffc commit 3312bd6
Show file tree
Hide file tree
Showing 32 changed files with 44 additions and 55,169 deletions.
4 changes: 2 additions & 2 deletions browser/base/content/browser-browserActions.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export const gFloorpBrowserActions = {
"undoCloseTab();"
).then(() => {
if (
ChromeUtils.importESModule("resource:///modules/FloorpStartup.sys.mjs")
ChromeUtils.importESModule("resource://floorp/FloorpStartup.sys.mjs")
.isFirstRun
) {
CustomizableUI.addWidgetToArea(
Expand All @@ -117,7 +117,7 @@ export const gFloorpBrowserActions = {
"SidebarUI.reversePosition();"
).then(() => {
if (
ChromeUtils.importESModule("resource:///modules/FloorpStartup.sys.mjs")
ChromeUtils.importESModule("resource://floorp/FloorpStartup.sys.mjs")
.isFirstRun
) {
CustomizableUI.addWidgetToArea(
Expand Down
2 changes: 1 addition & 1 deletion browser/base/content/browser-preferences.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

let { userJsList } = ChromeUtils.importESModule(
"resource:///modules/UserjsUtils.sys.mjs",
"resource://floorp/UserjsUtils.sys.mjs",
);

// I glared at the source code for about 3 hours, but for some reason I decided to use the server because it would be unclear because of the Floorp interface settings. God forgive me
Expand Down
6 changes: 3 additions & 3 deletions browser/base/content/browser-ssb-support.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ export const gSsbSupport = {
});

// This is needed to handle the case when the user opens a new tab in the same window.
window.setTimeout(() => {
gSsbSupport.eventListeners.onCurrentTabChangedOrLoaded();
}, 1000);
window.setInterval(() => {
gSsbSupport.eventListeners.onCurrentTabChangedOrLoaded();
} , 1000);

this._initialized = true;
} else {
Expand Down
2 changes: 1 addition & 1 deletion browser/base/content/floorp-scripts.inc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

// This ESM has build configuration constants.
var { FloorpAppConstants } = ChromeUtils.importESModule(
"resource:///modules/FloorpAppConstants.sys.mjs"
"resource://floorp/FloorpAppConstants.sys.mjs"
);

import("chrome://browser/content/browser-ua-data.mjs");
Expand Down
13 changes: 5 additions & 8 deletions browser/components/FloorpActors.sys.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,15 @@ export const EXPORTED_SYMBOLS = [];
import { ActorManagerParent } from "resource://gre/modules/ActorManagerParent.sys.mjs";

export let JSWINDOWACTORS = {
AboutCalendar: {
SiteSpecificBrowser: {
parent: {
esModuleURI: "resource:///actors/AboutCalendarParent.sys.mjs",
esModuleURI: "resource://floorp/ssb/SiteSpecificBrowserParent.sys.mjs",
},
child: {
esModuleURI: "resource:///actors/AboutCalendarChild.sys.mjs",
events: {
DOMDocElementInserted: {},
},
esModuleURI: "resource://floorp/ssb/SiteSpecificBrowserChild.sys.mjs",
},
matches: ["about:calendar*"],
remoteTypes: ["privilegedabout"],

allFrames: true,
},
};

Expand Down
4 changes: 2 additions & 2 deletions browser/components/FloorpStartup.sys.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ if (isMainBrowser) {
if (isMainBrowser) {
// Load actors
try {
ChromeUtils.importESModule("resource:///modules/FloorpActors.sys.mjs");
ChromeUtils.importESModule("resource://floorp/FloorpActors.sys.mjs");
} catch (e) {
console.error(e);
}
Expand Down Expand Up @@ -223,7 +223,7 @@ if (isMainBrowser) {
// Load PortableUpdate feature
try {
if (Services.prefs.getBoolPref("floorp.isPortable", false)) {
ChromeUtils.importESModule("resource:///modules/PortableUpdate.sys.mjs");
ChromeUtils.importESModule("resource://floorp/PortableUpdate.sys.mjs");
}
} catch (e) {
console.error(e);
Expand Down
4 changes: 2 additions & 2 deletions browser/components/OpenLinkInExternal.sys.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import { FileUtils } from "resource://gre/modules/FileUtils.sys.mjs";
import { ExtensionCommon } from "resource://gre/modules/ExtensionCommon.sys.mjs";
import { AppConstants } from "resource://gre/modules/AppConstants.sys.mjs";
import { Subprocess } from "resource://gre/modules/Subprocess.sys.mjs";
import { DesktopFileParser } from "resource:///modules/DesktopFileParser.sys.mjs";
import { EscapeShell } from "resource:///modules/EscapeShell.sys.mjs";
import { DesktopFileParser } from "resource://floorp/DesktopFileParser.sys.mjs";
import { EscapeShell } from "resource://floorp/EscapeShell.sys.mjs";

// Migration from JSM to ES Module in the future.
const { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
Expand Down
16 changes: 0 additions & 16 deletions browser/components/calendar/actors/AboutCalendarChild.sys.mjs

This file was deleted.

This file was deleted.

140 changes: 0 additions & 140 deletions browser/components/calendar/content/calendar.html

This file was deleted.

Loading

0 comments on commit 3312bd6

Please sign in to comment.