Closed Bug 1247414 Opened 10 years ago Closed 8 years ago

View File doesn't work when view_source.editor.external is true

Categories

(Other Applications :: DOM Inspector, defect)

x86_64
Windows 10
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: streetwolf52, Unassigned)

Details

Go to CSS Rules and right click on an object. Select View File. Nothing happens. Here's the console log: DEPRECATION WARNING: The arguments you're passing to openInExternalEditor are using an out-of-date API. You may find more details about this deprecation at: https://developer.mozilla.org/en-US/Add-ons/Code_snippets/View_Source_for_XUL_Applications chrome://global/content/viewSourceUtils.js 235 gViewSourceUtils.openInExternalEditor chrome://global/content/viewSourceUtils.js 67 gViewSourceUtils.viewSource chrome://inspector/content/jsutil/commands/baseCommands.js 155 ViewFileURIBase_DoTransaction chrome://inspector/content/inspector.xml 276 execCommand chrome://inspector/content/viewers/styleRules/styleRules.xul 1 oncommand Deprecated.jsm:79:0 NS_ERROR_ILLEGAL_VALUE: Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIXPCComponents_Utils.isCrossProcessWrapper] viewSourceUtils.js:239:0 NS_ERROR_ILLEGAL_VALUE: Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsITransactionManager.doTransaction] inspector.xml:276:0
I cannot reproduce this in: UA:"Mozilla/5.0 (X11; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0 SeaMonkey/2.44a1" ID:20160208023510 en-US c-c:4a60c0ffe9af0b68a82a6601c121e251863235e5 m-c:1cfe34ea394c66d7fa2c6dc366b05ab00e919113 DOMi 2.0.17pre I opened the DOM Inspector, then "View Content Document" on the present page. I selected an element by "Find a node by clicking on it" and clicking in the middle of comment #0. In the right pane, one of the line was from mu userContent.css. "View File" on that opened its source in a new window. The two lines avove my userContent.css were from resource://gre-resources/html.css. Selecting one of them, then "View File" also gave me its source. The other rules were from various CSS style sheets at BMO itself. There too, "View File" opens the source in a new window. I suspect this problem is already fixed-on-trunk. Gary: which version of DOMi are you using, and in which version of which application (Firefox, Thunderbird, SeaMonkey)? AFAIK, DOMi 2.0.17pre is not yet available except as part of SeaMonkey 2.44a1, which is available for (among others) w64 at https://l10n.mozilla-community.org/~akalla/unofficial/seamonkey/nightly/latest-comm-central-windows64/ It is also available for W32 and L64 in other directories (siblings of this one); the L32 build is an older 2.43a1 and this site simply doesn't build from the Mac. Since this SeaMonkey build hasn't got its symbols saved with Socorro, I advise you to download not only the .zip or .installer.exe for the build itself, but also the .crashreporter-symbols.zip that goes with them, if you want to test it seriously. Or you could extract seamonkey/distribution/extensions/inspector@mozilla.org.xpi from within the zip archive: that is the DOMi build which was "bleeding-edge latest" on 8 February 2016.
Flags: needinfo?(garyshap)
Found out some more info on my problem. I use two prefs to change the Page Source Viewer to another program. When I delete these prefs and default to the Fx built in viewer I can view files in DOMi. Here are the prefs I use: user_pref("view_source.editor.external", true); user_pref("view_source.editor.path", "C:\\Program Files (x86)\\Notepad++\\notepad++.exe");
Flags: needinfo?(garyshap)
Forget to mention that I'm on Nightly which is Fx47 atm. Also while I'm at it, DOMi hasn't worked with content for a long time. Chrome works fine.
(In reply to Gary [:streetwolf] from comment #2) > Found out some more info on my problem. I use two prefs to change the Page > Source Viewer to another program. When I delete these prefs and default to > the Fx built in viewer I can view files in DOMi. Here are the prefs I use: > > user_pref("view_source.editor.external", true); > user_pref("view_source.editor.path", "C:\\Program Files > (x86)\\Notepad++\\notepad++.exe"); Aha! I'm changing the Subject because this seems important (I use no external editor with DOMi). (In reply to Gary [:streetwolf] from comment #3) > Forget to mention that I'm on Nightly which is Fx47 atm. Also while I'm at > it, DOMi hasn't worked with content for a long time. Chrome works fine. For me, and in SeaMonkey 2.44a1 which is also built on Gecko 47.0a1, there is no problem, even in content; but I use default options and in particular no external editor.
Summary: View File doesn't work → View File doesn't work when view.source.editor.external is true
Summary: View File doesn't work when view.source.editor.external is true → View File doesn't work when view_source.editor.external is true
P.S. The Firefox built-in inspector is a totally different animal than the DOM Inspector extension; if ever you find a bug in the built-in inspector, it should be reported to "Firefox / Developer Tools: Inspector" or similar.
The content problem is caused by having e10s enabled. Content displays in DOMi when I disable e10s. As e10s will be the default soon it would be a good idea to fix this.
(In reply to Gary [:streetwolf] from comment #6) > The content problem is caused by having e10s enabled. Content displays in > DOMi when I disable e10s. As e10s will be the default soon it would be a > good idea to fix this. I opened up another bug report on the content issue: https://bugzilla.mozilla.org/show_bug.cgi?id=1248151
Bulk close. This component is no longer supported or maintained. https://bugzilla.mozilla.org/show_bug.cgi?id=1499023
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → INCOMPLETE
Bulk close. This component is no longer supported or maintained. https://bugzilla.mozilla.org/show_bug.cgi?id=1499023
You need to log in before you can comment on or make changes to this bug.