Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes names collisions in content.js #5314

Merged
merged 1 commit into from
Sep 23, 2014

Conversation

yurydelendik
Copy link
Contributor

Fixes #5313

That is one bizarre issue. http://mxr.mozilla.org/mozilla-central/source/browser/components/sessionstore/content/content-sessionStore.js#11 breaks with "Cu is read-only" because we define Cu as const Cu = Components.utils;

@Rob--W
Copy link
Member

Rob--W commented Sep 19, 2014

Why don't you put the code in a closure instead (in an immediately self-invoked function)? The revised code still leaks unnecessary globals, such as the isRemote variable (which appears to be used only once in the file, so it could also directly be inlined in the if condition).

@yurydelendik
Copy link
Contributor Author

Why don't you put the code in a closure instead

Let's do that

/botio-windows preview

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

Command cmd_preview from @yurydelendik received. Current queue size: 0

Live output at: http://107.22.172.223:8877/464390c44358891/output.txt

@timvandermeij
Copy link
Contributor

Fixes #5322

brendandahl added a commit that referenced this pull request Sep 23, 2014
Fixes names collisions in content.js
@brendandahl brendandahl merged commit 678fb0e into mozilla:master Sep 23, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

version 1.0.794 appears to break session restore on Firefox desktop 32.0.2 for Mac
5 participants