Skip to content

Commit 3aadf59

Browse files
committed
Bug 1532362 - Lookup sources by actor URL instead of source URL, r=lsmyth.
UltraBlame original commit: a52dffe6d7beee0a0ad9dca59ab504593018d00d
1 parent 198d236 commit 3aadf59

File tree

4 files changed

+186
-2
lines changed

4 files changed

+186
-2
lines changed

devtools/client/debugger/new/test/mochitest/browser.ini

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10088,6 +10088,15 @@ eval
1008810088
throw
1008910089
.
1009010090
html
10091+
examples
10092+
/
10093+
doc
10094+
-
10095+
sourceURL
10096+
-
10097+
breakpoint
10098+
.
10099+
html
1009110100
[
1009210101
browser_dbg
1009310102
-
@@ -11280,3 +11289,12 @@ throw
1128011289
.
1128111290
js
1128211291
]
11292+
[
11293+
browser_dbg
11294+
-
11295+
sourceURL
11296+
-
11297+
breakpoint
11298+
.
11299+
js
11300+
]
Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
/
2+
*
3+
Any
4+
copyright
5+
is
6+
dedicated
7+
to
8+
the
9+
Public
10+
Domain
11+
.
12+
*
13+
http
14+
:
15+
/
16+
/
17+
creativecommons
18+
.
19+
org
20+
/
21+
publicdomain
22+
/
23+
zero
24+
/
25+
1
26+
.
27+
0
28+
/
29+
*
30+
/
31+
/
32+
/
33+
Test
34+
that
35+
breakpoints
36+
are
37+
hit
38+
in
39+
eval
40+
'
41+
ed
42+
sources
43+
with
44+
a
45+
sourceURL
46+
property
47+
.
48+
add_task
49+
(
50+
async
51+
function
52+
(
53+
)
54+
{
55+
const
56+
dbg
57+
=
58+
await
59+
initDebugger
60+
(
61+
"
62+
doc
63+
-
64+
sourceURL
65+
-
66+
breakpoint
67+
.
68+
html
69+
"
70+
"
71+
my
72+
-
73+
foo
74+
.
75+
js
76+
"
77+
)
78+
;
79+
await
80+
addBreakpoint
81+
(
82+
dbg
83+
"
84+
my
85+
-
86+
foo
87+
.
88+
js
89+
"
90+
2
91+
)
92+
;
93+
invokeInTab
94+
(
95+
"
96+
foo
97+
"
98+
)
99+
;
100+
await
101+
waitForPaused
102+
(
103+
dbg
104+
)
105+
;
106+
ok
107+
(
108+
true
109+
"
110+
paused
111+
at
112+
breakpoint
113+
"
114+
)
115+
;
116+
}
117+
)
118+
;
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<
2+
body
3+
>
4+
<
5+
script
6+
>
7+
var
8+
script
9+
=
10+
function
11+
foo
12+
(
13+
)
14+
{
15+
console
16+
.
17+
log
18+
(
19+
'
20+
called
21+
foo
22+
'
23+
)
24+
;
25+
}
26+
/
27+
/
28+
#
29+
sourceURL
30+
=
31+
my
32+
-
33+
foo
34+
.
35+
js
36+
;
37+
eval
38+
(
39+
script
40+
)
41+
;
42+
<
43+
/
44+
script
45+
>
46+
<
47+
/
48+
body
49+
>

devtools/server/actors/utils/TabSources.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1082,7 +1082,6 @@ for
10821082
(
10831083
const
10841084
[
1085-
source
10861085
actor
10871086
]
10881087
of
@@ -1093,7 +1092,7 @@ _sourceActors
10931092
{
10941093
if
10951094
(
1096-
source
1095+
actor
10971096
.
10981097
url
10991098
=

0 commit comments

Comments
 (0)