Closed
Bug 989025
Opened 11 years ago
Closed 11 years ago
WebConsole breaks when trying to autocomplete in objects from different domains
Categories
(DevTools :: Console, defect)
DevTools
Console
Tracking
(firefox30 fixed, firefox31 fixed)
RESOLVED
FIXED
Firefox 31
People
(Reporter: kats, Assigned: msucan)
References
()
Details
(Keywords: regression)
Attachments
(1 file)
5.05 KB,
patch
|
past
:
review+
lsblakk
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
Latest Aurora (30) build on OS X.
STR:
1. Load the test case URL
2. Open the web console
3. Evaluate "window.document". Verify this outputs something like "HTMLDocument"
4. Evaluate "window[0].document". Observe this outputs nothing, presumably because it's a cross-origin iframe and access is not allowed
5. Try evaluating "window.document" again. Observe this outputs nothing.
Expected:
In step 4 some sane output should be displayed. Step 5 should be identical to step 3.
Reporter | ||
Updated•11 years ago
|
Comment 1•11 years ago
|
||
FWIW, works fine on Nightly.
Reporter | ||
Comment 2•11 years ago
|
||
I have a Nightly build from Feb 12 and yeah it works fine there. Presumably this broke and was fixed but the fix missed the 30 train?
Reporter | ||
Comment 3•11 years ago
|
||
Actually I can reproduce this in the latest nightly as well. Exact same steps on a new tab in a fresh profile. The nightly in comment 2 was just really old, probably before this broke, so the regression window is somewhere between Feb 2 and today.
Keywords: regression
Comment 4•11 years ago
|
||
(In reply to Kartikaya Gupta (email:kats@mozilla.com) from comment #3)
> Actually I can reproduce this in the latest nightly as well. Exact same
> steps on a new tab in a fresh profile. The nightly in comment 2 was just
> really old, probably before this broke, so the regression window is
> somewhere between Feb 2 and today.
Ahh. So autocomplete suggestions are breaking it :
error occurred while processing 'autocomplete: Error: Permission denied to access objectLine: 1063, column: 4 main.js:1007
onPacket threw an exception: Error: Server did not specify an actor, dropping packet: {"error":"unknownError","message":"error occurred while processing 'autocomplete: Error: Permission denied to access objectLine: 1063, column: 4"}
Stack: DebuggerClient.prototype.onPacket/<@resource://gre/modules/devtools/dbg-client.jsm:683:1
resolve@resource://gre/modules/commonjs/sdk/core/promise.js:118:11
then@resource://gre/modules/commonjs/sdk/core/promise.js:43:43
then@resource://gre/modules/commonjs/sdk/core/promise.js:153:9
DebuggerClient.prototype.onPacket@resource://gre/modules/devtools/dbg-client.jsm:733:1
LDT_send/<@resource://gre/modules/devtools/dbg-client.jsm -> resource://gre/modules/devtools/server/transport.js:258:11
makeInfallible/<@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/DevToolsUtils.js:80:7
Line: 683, column: 0
The way I was able to get it work in my last comment was to :
- type "window.document" and evaluate .
- Press up to get "window.document", press Right multiple times and add "[0]" after window
:D That did not trigger autocomplete suggestions and thus worked fine.
And yeah, the whole devtools for that tab messes up as server thinks that the tab is still connected. [Devtools still work on other tabs]
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → mihai.sucan
Status: NEW → ASSIGNED
OS: Mac OS X → All
Hardware: x86 → All
Summary: Devtools console stops working after some commands → WebConsole breaks when trying to autocomplete in objects from different domains
Assignee | ||
Comment 6•11 years ago
|
||
This patch fixes the problem reported.
I'm using makeInfaillable() because it is looking to me less than ideal to wrap more completion code in try-catches.
Try push: https://tbpl.mozilla.org/?tree=Try&rev=5f44f303c910
This is probably a regression caused by bug 842682, made more obvious by bug 943586. We should get this patch landed in aurora as well.
Attachment #8398126 -
Flags: review?(past)
Comment 7•11 years ago
|
||
Comment on attachment 8398126 [details] [diff] [review]
bug989025-1.diff
Review of attachment 8398126 [details] [diff] [review]:
-----------------------------------------------------------------
Looks fine.
Attachment #8398126 -
Flags: review?(past) → review+
Keywords: checkin-needed
Whiteboard: [fixed-in-fx-team]
Comment 11•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 31
Assignee | ||
Comment 12•11 years ago
|
||
Comment on attachment 8398126 [details] [diff] [review]
bug989025-1.diff
[Approval Request Comment]
Bug caused by (feature/regressing bug #): probably caused by bug 842682, made more obvious by bug 943586.
User impact if declined: the webconsole breaks if the user tries to type a JS string that points to an object from a different domain. it seems the breakage is pretty bad - devtools stop working.
Testing completed (on m-c, etc.): green try push, landed in fx-team and m-c.
Risk to taking this patch (and alternatives if risky): minimal - the patch makes any error in autocomplete code to be non-fatal.
String or IDL/UUID changes made by this patch: none.
Attachment #8398126 -
Flags: approval-mozilla-aurora?
Updated•11 years ago
|
Attachment #8398126 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment 13•11 years ago
|
||
status-firefox30:
--- → fixed
status-firefox31:
--- → fixed
Updated•11 years ago
|
QA Whiteboard: [good first verify]
Comment 14•11 years ago
|
||
Flagging in-testsuite+ since this landed with tests.
QA Whiteboard: [good first verify]
Flags: in-testsuite+
Reporter | ||
Updated•8 years ago
|
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•