Skip to content

RDKEMW-13657: Plugin Feature fails on Xione-UK#124

Merged
vjain008 merged 2 commits into
developfrom
topic/RDKEMW-13657
Feb 27, 2026
Merged

RDKEMW-13657: Plugin Feature fails on Xione-UK#124
vjain008 merged 2 commits into
developfrom
topic/RDKEMW-13657

Conversation

@gurpreet319
Copy link
Copy Markdown
Contributor

Reason for change: Resolving the plugin issue
Test Procedure: build should be successful
Risk: low
Priority: P2

Copilot AI review requested due to automatic review settings February 19, 2026 20:11
@gurpreet319 gurpreet319 requested a review from a team as a code owner February 19, 2026 20:11
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request addresses a plugin compatibility issue for Xione-UK by modifying how the JavaScriptCore library is loaded and how module paths are resolved. The changes introduce environment-based conditional logic for library loading and add fallback handling for root directory execution.

Changes:

  • Modified JavaScriptCore library loading to be conditional based on the ETHAN_LOGGING_PIPE environment variable
  • Fixed the logging fallback mechanism in NativeJSLogger to properly handle cases when Ethan logging is compiled but not enabled at runtime
  • Added special handling for module path resolution when running from the root directory

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 10 comments.

File Description
src/jsc/JavaScriptContext.cpp Conditionally loads/unloads libJavaScriptCore.so based on ETHAN_LOGGING_PIPE environment variable
src/NativeJSLogger.cpp Fixed control flow to properly fall back to printf logging when USE_ETHANLOG is defined but not enabled
src/JavaScriptContextBase.cpp Added hardcoded fallback path for module resolution when PWD is "/" and removed early return for better logging

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/jsc/JavaScriptContext.cpp
Comment thread src/jsc/JavaScriptContext.cpp
Comment thread src/JavaScriptContextBase.cpp
Comment thread src/JavaScriptContextBase.cpp Outdated
Comment thread src/NativeJSLogger.cpp Outdated
Comment thread src/JavaScriptContextBase.cpp Outdated
Comment thread src/jsc/JavaScriptContext.cpp
Comment thread src/jsc/JavaScriptContext.cpp
Comment thread src/JavaScriptContextBase.cpp Outdated
Comment thread src/NativeJSLogger.cpp Outdated
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/jsc/JavaScriptContext.cpp
Comment thread src/jsc/JavaScriptContext.cpp
Comment thread src/jsc/JavaScriptContext.cpp
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

Comments suppressed due to low confidence (2)

src/NativeJSRenderer.cpp:368

  • This change stops injecting window.location.href when enableJSDOM is enabled (it now only happens for enableMiniJSDOM). If full JSDOM apps rely on window.location being set to the app URL (previous behavior), they will now see an empty/default location. Consider using enableJSDOM || enableMiniJSDOM here, or otherwise setting location consistently for both modes.
			if(context->getModuleSettings().enableMiniJSDOM)
			{
				std::stringstream window;
            	    		window<<"window.location = {\"href\":\"" << url << "\"};";
           			NativeJSLogger::log(INFO, "Adding the window location: %s to js file\n", window.str().c_str());
            			context->runScript(window.str().c_str(),true, url, nullptr, true);
			}

src/NativeJSRenderer.cpp:387

  • Same as above for local apps: window.location is now only set for enableMiniJSDOM, not enableJSDOM, which can regress behavior for JSDOM mode. Consider setting location for both DOM modes or documenting/handling the difference explicitly.
			if(context->getModuleSettings().enableMiniJSDOM)
            		{
			    std::stringstream window;
                	    window<<"window.location = {\"href\":\"file:/" << url << "\"};";
                	    NativeJSLogger::log(INFO, "Adding the window location: %s to js file\n", window.str().c_str());
                	    context->runScript(window.str().c_str(),true, url, nullptr, true);
			}

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/JavaScriptContextBase.cpp
Comment thread src/JavaScriptContextBase.cpp
Comment thread src/jsc/JavaScriptContext.cpp
Reason for change: Resolving the plugin issue
Test Procedure: build should be successful
Risk: low
Priority: P2
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/JavaScriptContextBase.cpp
Comment thread src/JavaScriptContextBase.cpp
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 6 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/jsc/JavaScriptContext.cpp
Comment thread src/JavaScriptContextBase.cpp
Comment thread src/jsc/JavaScriptContext.cpp
Comment thread src/jsc/JavaScriptContext.cpp
Comment thread src/jsc/JavaScriptContext.cpp
Comment thread src/NativeJSLogger.cpp
@vjain008 vjain008 merged commit b6f56ee into develop Feb 27, 2026
8 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Feb 27, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants