Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chrome.runtime.getURL("/index.html") in chrome extension causes pages to keep on loading #17066

Open
rohankeskar19 opened this issue Jul 21, 2021 · 0 comments
Labels
feature/extensions OS/Desktop priority/P5 Not scheduled. Don't anticipate work on this any time soon.

Comments

@rohankeskar19
Copy link

Description

I'm working on a chrome extension and I'm injecting a content script which injects a iframe of which src I'm setting to chrome.runtime.getURL("/index.html")

When I remove this line the pages load properly but this line causes the pages to keep on loading, I have tried this extension in google chrome and it works perfectly fine there, It was even working in brave before but I think some update broke it.

Steps to Reproduce

  1. Create a chrome extension and add a content script and a index.html file
  2. In content script inject an iframe into the page and set src of that iframe to chrome.runtime.getURL("/index.html")
  3. Make sure the index.html is added in web_accessible_resources in manifest.json of the chrome extension

Actual result:

Pages don't finish loading

Expected result:

The pages should finish loading

Reproduces how often:

Easily reproduced

Brave version (brave://version info)

Brave 1.26.77 Chromium: 91.0.4472.164 (Official Build) (64-bit)
Revision 541163496c9982c98f61819bab7cf2183ea8180f-refs/branch-heads/4472@{#1569}
OS Windows 10 OS Version 2009 (Build 19043.1110)
JavaScript V8 9.1.269.39
User Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.164 Safari/537.36
Command Line "C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe" --enable-dom-distiller --disable-domain-reliability --no-pings --origin-trial-public-key=bYUKPJoPnCxeNvu72j4EmPuK7tr1PAC7SHh8ld9Mw3E=,fMS4mpO6buLQ/QMd+zJmxzty/VQ6B1EUZqoCU04zoRU= --sync-url=https://sync-v2.brave.com/v2 --lso-url=https://no-thanks.invalid --variations-server-url=https://variations.brave.com/seed --enable-features=PrefetchPrivacyChanges,WebUIDarkMode,PasswordImport,ReducedReferrerGranularity,AutoupgradeMixedContent,SafetyTip,WinrtGeolocationImplementation,LegacyTLSEnforced --disable-features=AutofillServerCommunication,FederatedLearningOfCohorts,HandwritingRecognitionWebPlatformApi,HandwritingRecognitionWebPlatformApiFinch,FlocIdComputedEventLogging,FledgeInterestGroups,InterestCohortFeaturePolicy,DirectSockets,TrustTokens,SignedExchangeSubresourcePrefetch,AutofillEnableAccountWalletStorage,FledgeInterestGroupAPI,EnableProfilePickerOnStartup,TextFragmentAnchor,SignedExchangePrefetchCacheForNavigations,NetworkTimeServiceQuerying,SubresourceWebBundles,IdleDetection,LangClientHintHeader,NotificationTriggers,WebOTP,FirstPartySets,InterestCohortAPIOriginTrial,LiveCaption --flag-switches-begin --flag-switches-end
Executable Path C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe
Profile Path C:\Users\rohan\AppData\Local\BraveSoftware\Brave-Browser\User Data\Default
Variations AdRewardsStudy:NextPaymentDay
EphemeralStorageStudy:Enabled
NativeCosmeticFilteringStudy:Enabled
PermissionLifetimeReleaseStudy:Enabled

  • Can you reproduce this issue with the current release?
  • Yes

Other Additional Information:

  • Does the issue resolve itself when disabling Brave Shields?
  • No
  • Does the issue resolve itself when disabling Brave Rewards?
  • No
  • Is the issue reproducible on the latest version of Chrome?
  • No
@rebron rebron added feature/extensions priority/P5 Not scheduled. Don't anticipate work on this any time soon. labels Feb 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature/extensions OS/Desktop priority/P5 Not scheduled. Don't anticipate work on this any time soon.
Projects
None yet
Development

No branches or pull requests

2 participants