Open Bug 1422268 Opened 7 years ago Updated 1 year ago

"run_at": "document_start" is bad effect in that Firefox for Android

Categories

(WebExtensions :: Android, defect, P5)

defect

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: 626954412, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0
Build ID: 20171128222554

Steps to reproduce:

Add some event listener on document for that user can use two-fingers-gestures to do that - Up to close the tab, Down to open a new tab, Left or Right to switch tab

The extensions:
https://addons.mozilla.org/en-US/android/addon/two-fingers-gestures/
https://github.com/pea3nut/two-fingers-gestures




Actual results:

The extension is unsatisfactory because that it's too slow when the website is loading, It could not even capture user touch event.

See reviews of user daiyi in:
https://addons.mozilla.org/en-US/android/addon/two-fingers-gestures/reviews/

I already add the "run_at": "document_start":
https://github.com/pea3nut/two-fingers-gestures/blob/master/manifest.json#L25

But it's frustrating that it doesn't effect distinctly.


Expected results:

Like UC browser
https://play.google.com/store/apps/details?id=com.UCMobile.intl

can control tabs by two-fingers-gestures
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
I don't think this bug is a duplicate of bug 1369841.

This bug seek some help that how can I fix this bug, and I don't think it has any methods can resolve this case now, but maybe we can add some new API to resolve this case.
So what do you think is the difference, and how to solve this bug?
Did you try the extension that I had uploaded? This bug because firefox rather compute page than extension's script when page in loading.

I dont's know how can solve this bug, maybe can create a new thread for extension content script? and this type content script only can do some DOM action by limited.
I am not sure, waiting for others to deal with.
Status: RESOLVED → UNCONFIRMED
Resolution: DUPLICATE → ---
Priority: -- → P5
Product: Toolkit → WebExtensions

Is it possible to check the styles of this div in Firefox or Chrome developer tools https://tellthebell.onl/

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.