Skip to content

Commit

Permalink
LOL
Browse files Browse the repository at this point in the history
  • Loading branch information
surapunoyousei committed Jan 25, 2025
1 parent 3cc654d commit ff3fb74
Show file tree
Hide file tree
Showing 47 changed files with 2,769 additions and 27 deletions.
373 changes: 373 additions & 0 deletions .github/LICENSE

Large diffs are not rendered by default.

Binary file added .github/assets/installer/7zSD.ARM64.sfx
Binary file not shown.
Binary file added .github/assets/installer/7zSD.Win32.sfx
Binary file not shown.
Binary file added .github/assets/installer/setup.ico
Binary file not shown.
8 changes: 8 additions & 0 deletions .github/assets/readme/Link2MainRepo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions .github/assets/readme/Link2RuntimeRepo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions .github/patches/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Useful diff command

```bash
git diff HEAD -- . :^.github :^browser/branding/noraneko :^noraneko > .github/patches/[dir]/[filename].patch
```
22 changes: 22 additions & 0 deletions .github/patches/dev/CDP.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
diff --git a/remote/cdp/CDP.sys.mjs b/remote/cdp/CDP.sys.mjs
index 1715e8a54b..bcf4c379e8 100644
--- a/remote/cdp/CDP.sys.mjs
+++ b/remote/cdp/CDP.sys.mjs
@@ -77,7 +77,7 @@ export class CDP {
// avoid potential race conditions.
this._running = true;

- lazy.RecommendedPreferences.applyPreferences(RECOMMENDED_PREFS);
+ //lazy.RecommendedPreferences.applyPreferences(RECOMMENDED_PREFS);

// Starting CDP too early can cause issues with clients in not being able
// to find any available target. Also when closing the application while
@@ -137,7 +137,7 @@ export class CDP {
this.targetList?.destructor();
this.targetList = null;

- lazy.RecommendedPreferences.restorePreferences(RECOMMENDED_PREFS);
+ //lazy.RecommendedPreferences.restorePreferences(RECOMMENDED_PREFS);
} catch (e) {
lazy.logger.error("Failed to stop protocol", e);
} finally {
13 changes: 13 additions & 0 deletions .github/patches/dev/Marionette.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/remote/components/Marionette.sys.mjs b/remote/components/Marionette.sys.mjs
index 87a53679e4..8c1552d21d 100644
--- a/remote/components/Marionette.sys.mjs
+++ b/remote/components/Marionette.sys.mjs
@@ -140,7 +140,7 @@ class MarionetteParentProcess {
Services.obs.addObserver(this, "domwindowopened");
}

- lazy.RecommendedPreferences.applyPreferences();
+ //lazy.RecommendedPreferences.applyPreferences();

// Only set preferences to preserve in a new profile
// when Marionette is enabled.
13 changes: 13 additions & 0 deletions .github/patches/dev/RemoteAgent.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/remote/components/RemoteAgent.sys.mjs b/remote/components/RemoteAgent.sys.mjs
index 1b2ad4649b..43d7dd3154 100644
--- a/remote/components/RemoteAgent.sys.mjs
+++ b/remote/components/RemoteAgent.sys.mjs
@@ -395,7 +395,7 @@ class RemoteAgentParentProcess {
Services.obs.addObserver(this, "quit-application");

// Apply the common set of preferences for all supported protocols
- lazy.RecommendedPreferences.applyPreferences();
+ //lazy.RecommendedPreferences.applyPreferences();

// With Bug 1717899 we will extend the lifetime of the Remote Agent to
// the whole Firefox session, which will be identical to Marionette. For
13 changes: 13 additions & 0 deletions .github/patches/dev/WebDriverBiDi.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/remote/webdriver-bidi/WebDriverBiDi.sys.mjs b/remote/webdriver-bidi/WebDriverBiDi.sys.mjs
index 639c5f6080..fe00523f03 100644
--- a/remote/webdriver-bidi/WebDriverBiDi.sys.mjs
+++ b/remote/webdriver-bidi/WebDriverBiDi.sys.mjs
@@ -209,7 +209,7 @@ export class WebDriverBiDi {

this.#running = true;

- lazy.RecommendedPreferences.applyPreferences(RECOMMENDED_PREFS);
+ //lazy.RecommendedPreferences.applyPreferences(RECOMMENDED_PREFS);

// Install a HTTP handler for direct WebDriver BiDi connection requests.
this.#agent.server.registerPathHandler(
12 changes: 12 additions & 0 deletions .github/patches/packaging/moz.build.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/moz.build b/moz.build
index 37e12e4c99..4ee3ec1af0 100644
--- a/moz.build
+++ b/moz.build
@@ -154,6 +154,7 @@ DIRS += [
"python",
"testing",
"third_party/python",
+ "noraneko"
]

if not CONFIG["JS_STANDALONE"]:
16 changes: 16 additions & 0 deletions .github/patches/packaging/package-manifest.in.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
diff --git a/browser/installer/package-manifest.in b/browser/installer/package-manifest.in
index 861ba1c484..83f8d4cf87 100644
--- a/browser/installer/package-manifest.in
+++ b/browser/installer/package-manifest.in
@@ -196,6 +196,11 @@
@RESPATH@/chrome/remote.manifest
#endif

+; [Noraneko Files]
+@RESPATH@/chrome/noraneko.manifest
+@RESPATH@/chrome/noraneko@JAREXT@
+@RESPATH@/browser/buildid2
+
; [Extensions]
@RESPATH@/components/extensions-toolkit.manifest
@RESPATH@/browser/components/extensions-browser.manifest
41 changes: 41 additions & 0 deletions .github/patches/upstream/SplitViewCpp.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
diff --git a/dom/ipc/BrowserChild.cpp b/dom/ipc/BrowserChild.cpp
index 27fb1239db..43e6b876d8 100644
--- a/dom/ipc/BrowserChild.cpp
+++ b/dom/ipc/BrowserChild.cpp
@@ -2542,7 +2542,8 @@ mozilla::ipc::IPCResult BrowserChild::RecvRenderLayers(const bool& aEnabled) {
ProcessHangMonitor::MaybeStartPaintWhileInterruptingJS();
}

- mRenderLayers = aEnabled;
+ bool splitViewIsEnabled = Preferences::GetBool("floorp.browser.splitView.working", false);
+ mRenderLayers = splitViewIsEnabled ? true : aEnabled;
const bool wasVisible = IsVisible();

UpdateVisibility();
diff --git a/dom/ipc/BrowserHost.cpp b/dom/ipc/BrowserHost.cpp
index 489f07a612..032b87e537 100644
--- a/dom/ipc/BrowserHost.cpp
+++ b/dom/ipc/BrowserHost.cpp
@@ -106,7 +106,7 @@ void BrowserHost::UpdateEffects(EffectsInfo aEffects) {
/* attribute boolean renderLayers; */
NS_IMETHODIMP
BrowserHost::GetRenderLayers(bool* aRenderLayers) {
- if (!mRoot) {
+ if (!mRoot && !Preferences::GetBool("floorp.browser.splitView.working", false)) {
*aRenderLayers = false;
return NS_OK;
}
diff --git a/dom/ipc/BrowserParent.cpp b/dom/ipc/BrowserParent.cpp
index b37d6838d9..48acddae31 100644
--- a/dom/ipc/BrowserParent.cpp
+++ b/dom/ipc/BrowserParent.cpp
@@ -3584,7 +3584,8 @@ void BrowserParent::SetRenderLayers(bool aEnabled) {
return;
}

- mRenderLayers = aEnabled;
+ bool splitViewIsEnabled = Preferences::GetBool("floorp.browser.splitView.working", false);
+ mRenderLayers = splitViewIsEnabled ? true : aEnabled;

SetRenderLayersInternal(aEnabled);
}
Loading

0 comments on commit ff3fb74

Please sign in to comment.