firebug / firequery Goto Github PK
View Code? Open in Web Editor NEWFirefox plugin for jQuery development
License: Other
Firefox plugin for jQuery development
License: Other
STR:
There is an error: FireQuery: DebuggerServer.ObjectActorPreviewers is undefined
This comes from firequery-actor.js, from the attach() method
Honza
Hi there,
I don't have the jQuerify
button in my dev tools (Firefox 52).
Is it still supported ?
Thanks
Tested with:
OSX 10.10, Firefox 36.0.1, Firebug 3.0.0 a9, Firequery 2.0.0 b1
Test 1:
now you can see some data infos
now you still see the same data infos. h1 still has no data showing. if you do a console log console.log($("h1").data())
you see it was added correctly.
Test 2:
$("h1").data("test2","some data");
an run itnow you still see h1 has no Data - but if you do a console log console.log($("h1").data("test2"))
it's there.
The entire error message is:
JSM trace: Got a mutation for an unexpected actor: server1.conn0.domnode3507, please file a bug on bugzilla.mozilla.org!
Here is a platform bug:
https://bugzilla.mozilla.org/show_bug.cgi?id=1182135
Honza
Like the title says. When FireQuery is enabled, the inspector's selector arrow tool does not highlight/find/locate the html in the main window.
Disable FireQuery and Inspector starts working properly again.
Firefox Developer Edition.
Windows 7.
Allow npm install to ignore minor version of firebug.sdk but respect major versions
So, um, it looks like firequery is injecting some script into pages that can run into trouble with CSP.
I noticed this because I was having trouble logging into accounts.firefox.com (hoping to tag some stuff on AMO), and when I opened the devtools, this message caught my eye:
Content Security Policy: The page's settings observed the loading of a resource at self ("script-src https://accounts.firefox.com https://accounts.cdn.mozilla.net"). A CSP report is being sent.
The message is attributed to line 382 of resource://firequery-at-binaryage-dot-com/lib/firequery-actor.js, which reads as follows:
win.eval(this.watcher);
Given the context,
let win = this.parent.window.wrappedJSObject;
win.addEventListener("jQueryDetected", this.onJQueryDetected, true);
win.addEventListener("firequery-event", this.onDataModified, true);
win.eval(this.watcher);
the cause of the problem is obvious: you're calling the debuggee's eval
function, which is not permitted by the debuggee's CSP.
I was poking around MDN looking for something that might help, and I ran across a link to mozilla bug #1042840, which removed [Component.utils.evalInWindow] because ...
Now that eval() resolves on Xrayed globals, this is unnecessary. The only functional difference between the two is that evalInWindow implicitly clones its return value, and we've decided in bug 1042824 that we want to move away from implicit cloning.
(Apparently, the change allowing eval
on Xray'ed global objects was part of bug #933681.)
So it seems like maybe the problem would go away if you skipped the .wrappedJSObject
here (and before the other win.eval
call)?
Firefox will not support old-style XUL-based extensions starting November 2017 (in Firefox 57+). Do you have plans to migrate to a new WebExtension standard?
Using FireQuery 2.0.1 with Firebug 3.0.0 beta 1 in Nightly x64 2015-10-30.
When I start Nightly, having only Firebug enabled, and either
then Inspector pane works ok, i.e. the HTML and CSS panes show info on the selected element.
If now I enable FireQuery, then Inspector panes appear empty:
and clicking the icon to "Pick an element from the page" does nothing.
When this occurs, disabling both FireBug + FireQuery (having now no other addons enabled) doesn't fix the problem - I have to restart Nightly (with FireQuery disabled) for Inspector to work again.
Here's what's shown in Browser Console shows when this occurs:
Error writing response to: getWalker protocol.js:1025
<unavailable> protocol.js:907
Protocol error (unknownError): InternalError: too much recursion Promise-backend.js:937
STR:
Console Service ERROR [JavaScript Error: "The object cannot be linked to the inspector, the corresponding nodeFront could not be found" {file: "resource://gre/modules/commonjs/toolkit/loader.js -> resource:///modules/devtools/webconsole/console-output.js" line: 3212}] [JavaScript Error: "The object cannot be linked to the inspector, the corresponding nodeFront could not be found" {file: "resource://gre/modules/commonjs/toolkit/loader.js -> resource:///modules/devtools/webconsole/console-output.js" line: 3212}]
Honza
Running npm install returns the following error message.
Error: version not found: [email protected]
I was thinking it was Firefox was the culprit but it was your addon.
Look here: https://bugzilla.mozilla.org/show_bug.cgi?id=1318899
I'm the OP of the report, if you need more information just ask me
Regards
See screenshot taken with Fx44:
Also the briefcase icon should be same color like the "ev" icon imho. That is, not pink but more in a bright sense like the "ev" icon. Anyway, why is a briefcase/letter icon used anyway? Isn't there a better icon for jQuery? https://brand.jquery.org/logos/ Maybe just a jQ
next to ev
would do best
Integration with the Inspector panel requires new platform API
See: https://bugzilla.mozilla.org/show_bug.cgi?id=1036949
Honza
E.g. clicking on an element in the Inspector panel tooltip should close the tooltip and select the element in the MarkupView.
Honza
STR:
Honza
"Handler function threw an exception: TypeError: this.tooltip is undefined
Stack: DataTooltip.prototype.show<@resource://gre/modules/commonjs/toolkit/loader.js -> resource://firequery-at-binaryage-dot-com/lib/data-tooltip.js:68:5
exports.makeInfallible/<@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/shared/ThreadSafeDevToolsUtils.js:101:14
InspectorOverlay<.onClickTooltip/<@resource://gre/modules/commonjs/toolkit/loader.js -> resource://firequery-at-binaryage-dot-com/lib/inspector-overlay.js:255:7
Handler.prototype.process@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:937:23
this.PromiseWalker.walkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:816:7
this.PromiseWalker.scheduleWalkerLoop/<@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:750:11
Line: 68, column: 5"
Hi - I noticed this review on
Cause some conflicts Rated 1 out of 5 stars
by TomaszKane on March 6, 2015 · permalink · translate
Kubuntu 14.02, Firefox 36, Firebug 2.0.8 and FireQuery 1.4.1
and I found the same. I am using Firefox 37.0.1 and Firebug 2.08 and
FireQuery 1.4.1 on Windows 7 64bit.
Regards, Tim Makins
In FF Dev Edition (make sure it has a homepage, my is pointing to the Dev Edition Start page).
it maybe that Firequery is loading up before firebug on startup so when Firebug initialised there is already a jQuerify button and so just adds the Persist at the end.
The number or "data-modified" packets sent back to the client (by FireQueryActor) can be relatively big and it would be great if we can reduce the amount somehow.
The primary purpose of these event packets is to update UI of the Inspector panel. Make sure that the 'jquery-data' indicator (a little envelope icon) is created or removed. The Inspector panel usually doesn't display all of the elements and the update is not needed in most cases. So, if we could determine that the element, whose jQuery.data has changed, is actually not visible (or not even "imported" by the client) we don't have to send that data-modified packet at all.
How could we do that?
Honza
Honza
Hi,
The first line in the wiki: 'Install FireQuery'. But how??? I've downloaded the zip. What should I do with this? Copy the contents somewhere? Could you please explain?
Arjen Haayman
I don't know why or how, but when FireQuery is enabled some elements in the DOM tree can't be unfolded or rather they appear empty when unfolded despite having inner html. The common thing about these elements is they all are being processed with JQ. I've noticed that it sometimes works correctly on the first page inspection in a session but after a page reload the problem persists.
Disabling the extension removes the issue. I know its only a beta, but its a pretty major flaw.
To reproduce:
Console
tabLog data
button:about:addons
in a new tab and disable fireQuery.Log data
button:You must restart Firefox for fireQuery to be disabled.
The "jQueryDetected" event should be fired when jQuery is detected on the page, which should happen almost immediately when it's loaded on the page, but it isn't the trace message (from FireQueryActor.onJQueryDetected) appears when Inspector panel jQuery tooltip is opened or the page refreshed. This needs to be investigated.
Honza
STR:
Honza
Rendering of jQuery data within the Inspector panel should be done using ReactJS.
Honza
It should be possible to inject jQuery lint into the page (if not yet loaded) to report errors and any incorrect usage of jQuery.
See more:
http://james.padolsey.com/javascript/jquery-lint/
There is already the injector code available in the code base and so, we just need to wire it up and perhaps have a little & handy UI for it.
Honza
jQuery data associated with elements can be big and they should be displayed in a tooltip rather than inline.
Honza
Firefox 45.0.1
FireQuery 2.0.1
If loading the inspector via F12 and FireQuery-Addon enabled, the inspector is "blinking" - seems that it's loading a second time.
This is annoying because it's loading time is much more longer than without the addon enabled (and it's done twice)
See the screenshot:
http://snag.gy/QrfYK.jpg
Honza
The current release is Firefox 38, we need to support it as well.
Honza
Are there plans to develop that?
Like it was in binaryage's firequery Plugin
MarkupView element isn't auto-expanded when the user clicks a link from within jQuery.data tooltip displayed inside the Inspector panel.
STR:
You can try clicking on "body#content" (again the value), the body element is properly selected in the MarkupView since it's visible (?).
Platform support might be needed.
Here is the related piece of code that does the auto-selection of given node.
Line 153 in de49a7f
Honza
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.