-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
Missing hints from iframe #28
Comments
Can you check what those elements are? Maybe it doesn't have anything to do with being in an iframe. |
They are anchor tags. This is the a site I use pretty frequently and it has worked for me previously I am almost certain.
|
That should work. I'll see if I can make an account and figure out what's happening |
I wouldn't recommend creating an account if you can avoid it. You'll have
to give over your credit card info. I'll dig a little bit and see if I can
figure it out I just wanted to report in case it was something you knew
about already or was obvious.
…On Thu, 30 Jun 2022, 2:14 am David Tejada, ***@***.***> wrote:
That should work. I'll see if I can make an account and figure out what's
happening
—
Reply to this email directly, view it on GitHub
<#28 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACIYKXWLKTEACQOOU3TBXTVRRK6BANCNFSM52ET37KA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Yeah, I was hoping creating an account would be an easy process. If you find the time we can pair and try to fix it |
I don't think it's this but maybe you inadvertently disable hints for the host/page. Try the command |
I did So I did a bit of digging and found some things... I noticed that the bottom of the webpage there is yet another iframe (nested in the other one) which does have hints in it - the "Help topics" section. Debugging on MainSo I thought I would have a go at debugging myself so spun up the latest version of
To load the extensions in to a separate instance of Firefox And I only get the hints at the very bottom of the page: Here are some observations:
Yet I can't find anything element in the DOM with a class of <input id="0-1656744554848-3410" aria-labelledby="0-1656744554848-3410-label" class="_input_4yi2u_db2mu_14" type="checkbox"> There is a second error in the console for the same type of issue but from a different code path:
|
Sorry about this. I introduced bug when I created the code to filter out disabled elements' labels. I also mixed up the class with the id selector. That is fixed now, you can pull and try again. I think the links in Resources not appearing could be a similar error that we are not catching and halts everything |
So I can only see two |
Adding this only prints 2 I would have expected this to print the document from each iframe on the page regardless of whether or not the iframe is visible or not. This has kinda left me unsure where to go from here, as I was hoping to step through the logic from the page loading, but if my understanding is correct rango isn't firing for some of these iframes. diff --git a/src/content/intersectors.ts b/src/content/intersectors.ts
index cf76a96..ab61845 100644
--- a/src/content/intersectors.ts
+++ b/src/content/intersectors.ts
@@ -2,6 +2,7 @@ import { Intersector } from "../typing/types";
import { getClickableType } from "./utils/clickable-type";
import { NoHintError } from "./classes/errors";
+console.debug(document)
export const intersectors: Intersector[] = [];
export const removedIntersectorsHints: Set<string> = new Set();
|
I did a Which is weird as I can't see anything that stands out in that commit. But before this commit, it worked, with this commit applied it does not. There are no errors in the console. |
I ended up making an account and found out where the bug is. It's in this function: rango/src/content/utils/background-color.ts Lines 23 to 30 in 0c746f3
The funny thing is that if I visit the dashboard directly the hints work but if I reload they don't. So I guess it has to do with the document not being ready when it tries to attach the element to head. Anyway, I think I'm going to scratch that code. I found it in stack overflow but I think we can assume the default color to be rgba(0, 0, 0, 0). Thanks for your help. It would have taken me longer without it. I didn't know about git bisect, that seems really useful |
Amazing David!! Thanks a lot. That is super weird, I would have expected an
error to bubble up and show on the console, was there some error handling
elsewhere stopping that?
Git bisect is super cool! It kinda feels like a super power when I get to
use it. It worked really well in this case cause the project would just
auto compile and reload in the Firefox instance, super easy and quick to
find the offending commit.
Thanks for fixing this, I'm sorry you had to create an account with AWS. If
I were you I would close the account now if you don't intend to use it. I'd
hate to hear of your account being compromised and racking up a big bill.
…On Mon, 4 Jul 2022, 10:15 pm David Tejada, ***@***.***> wrote:
Closed #28 <#28> as completed.
—
Reply to this email directly, view it on GitHub
<#28 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACIYKX3RLYTE6TJMB52ZZTVSK2STANCNFSM52ET37KA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
No problem, Amazon already had my card number so 🤷♂️. I'll close it if I see I'm not going to use it Yeah, I don't know why the error didn't show up in the console. There is no error handling for that code, it's called from here: rango/src/content/hints/styles.ts Line 13 in 48226ae
|
So, I figured out why the exception wasn't appearing in the console. I was testing some code and I noticed there wasn't any error log for an exception that I knew was happening. The debugger would even stop if I marked "Pause on exceptions". Turns out exceptions from content scripts don't log to the Web Console in Firefox. You have to use the Browser Console if you want to see those. They log fine to the web console in Chrome, though. |
I have only just seen this now and haven't dug into how when it is happening, highlighted blue area does not have hints and it is an iframe.
The text was updated successfully, but these errors were encountered: