Open Bug 1686712 Opened 3 years ago Updated 3 years ago

Snippets are not ran in Web Console while using x32 OS architure

Categories

(DevTools :: Console, defect)

x86
All
defect

Tracking

(firefox84 affected, firefox85 affected)

Tracking Status
firefox84 --- affected
firefox85 --- affected

People

(Reporter: obotisan, Unassigned)

Details

Attachments

(1 file)

Affected versions

  • Firefox 84.0.2
  • Firefox 85.0b8

Affected platforms

  • Windows 7 x32
  • Windows 8.1 x32
  • Ubuntu 16.04 x32

Steps to reproduce

  1. Open Firefox
  2. Open Web Console.
  3. Write anything (e.g.: allow pasting) and push enter.

Expected result

  • The snippet is ran correctly.

Actual result

  • Different errors are displayed.

Regression range

  • If this is a regression I wil try to find it asap.

Additional notes

  • This only happens on X32 architecture.
  • If you use a x64 architecture and a x32 Firefox build, the issue is not reproducing.

Oana, could you paste the errors you see here?

Flags: needinfo?(oana.botisan)

I can reproduce the issue using other snippets, but it seems that for the other snippets the issue is intermittent.
This one I can reproduce all the time

Flags: needinfo?(oana.botisan)

This is not a regression. I can reproduce the issue using an older version of Nightly from 2014-01-03.

Has STR: --- → yes

mh, typing allow pasting is only asked for users that never opened the console, and you're not supposed to evaluate it, it's only a way for us to get the approval from the user.
Then they can evaluate whatever they want (e.g. 1 + 1)

But maybe we could make that clearer / clear the input once we have all the later + print a message saying that pasting is now allowed

The problem here is that while testing we need to paste snippets into the web Console and we are not allowed to do it because 'allow pasting' doesn't work. I had a lot of troubles with some tests yesterday because of that.
Couldn't this issue be solved some other way? Maybe change a pref or something so we are allowed to paste snippets in web console as well?

Also.. sometimes even if I write another snippet (e.g. Notification.requestPermission) doesn't work. It throws the error that "Notification" is unidentified. And even if I try to write it as <foo="Notification"; foo.requestPermission> it still doesn't work.

so if you type allow pasting (without entering), then clear the input, then paste, it doesn't work?

(In reply to Oana Botisan, Desktop Release QA from comment #5)

Couldn't this issue be solved some other way? Maybe change a pref or something so we are allowed to paste snippets in web console as well?
You can set the devtools.selfxss.count pref to 5, which shouldn't prevent you from pasting.

(In reply to Oana Botisan, Desktop Release QA from comment #6)

Also.. sometimes even if I write another snippet (e.g. Notification.requestPermission) doesn't work. It throws the error that "Notification" is unidentified.

Would you have a case I could reproduce? On which page was that?

And even if I try to write it as <foo="Notification"; foo.requestPermission> it still doesn't work.

that's expected, you're creating a foo variable which is a string. And string don't have a requestPermission property. You need to use Notification.requestPermission (or foo = Notification; foo.requestPermission, but if Notification is undefined, foo will be too, and you'll still have the same error)

Would you have a case I could reproduce? On which page was that?

This was the page we used: https://senglehardt.com/test/dfpi/storage_access_api.html.

(In reply to Oana Botisan, Desktop Release QA from comment #9)

Would you have a case I could reproduce? On which page was that?

This was the page we used: https://senglehardt.com/test/dfpi/storage_access_api.html.

this seems to work fine with me. Were you using the regular web console? Maybe you were using the Browser Console or the Browser Toolbox Console? Anyway, if you reproduce that again can you file a specific bug for it? Thanks

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: