File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -276,7 +276,12 @@ function ExportDriverApi(actor) {
276276 function securityCheck ( method ) {
277277 return function ( options ) {
278278 if ( options . token != actor . token ) {
279- return win . Promise . reject ( new win . Error ( "Wrong token" ) ) ;
279+ let pref = "devtools.netmonitor.har.contentAPIToken" ;
280+ let msg = "Security check didn't pass. You need to set '" +
281+ pref + "' pref to match the string token passed into " +
282+ "HAR object API call (browser restart is required)" ;
283+ Cu . reportError ( msg ) ;
284+ return win . Promise . reject ( new win . Error ( msg ) ) ;
280285 }
281286
282287 try {
Original file line number Diff line number Diff line change @@ -139,7 +139,8 @@ const TriggerToolboxOverlay = Class(
139139 // Platform support is needed here.
140140 // See: https://bugzilla.mozilla.org/show_bug.cgi?id=1184889
141141 if ( typeof getHarOverlay != "function" ) {
142- Cu . reportError ( "Platform support needed, see Bug 1184889" ) ;
142+ Cu . reportError ( "Platform support needed, see Bug: " +
143+ "https://bugzilla.mozilla.org/show_bug.cgi?id=1184889" ) ;
143144 return ;
144145 }
145146
You can’t perform that action at this time.
0 commit comments